net/ice: support DCF device reset
authorDapeng Yu <dapengx.yu@intel.com>
Wed, 1 Sep 2021 05:26:04 +0000 (13:26 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 6 Sep 2021 01:17:29 +0000 (03:17 +0200)
commit1a86f4dbdf42792c639ecd5124b4c5f96232769f
treea520415c28e47f6a9760ec5e91801505db6c3d54
parent142dd26a2fbd909f8d10ca25b1e698cd41a2667f
net/ice: support DCF device reset

DCF PMD needs to support rte_eth_dev_reset, the reason is when a DCF
instance is killed, all the flow rules still exists in hardware, when
DCF gets to reconnect, it already lost the flow context, and if the
application wants to create new rules, it may fail due to firmware
reports rules already exist.

The rte_eth_dev_reset API provides a more elegant way for the
application to reset DCF when reconnect happens.

Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_dcf.c
drivers/net/ice/ice_dcf.h
drivers/net/ice/ice_dcf_ethdev.c
drivers/net/ice/ice_dcf_parent.c