mbox

[v7,0/5] drivers/net: release port upon close

Message ID 20190927090948.32909-1-chenxux.di@intel.com (mailing list archive)
Headers

Message

Chenxu Di Sept. 27, 2019, 9:09 a.m. UTC
  Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so all the private resources
 for the port can be freed by rte_eth_dev_close().
This patch cover all the intel drivers.

---
V7 changes:
  Modified code on the last commit.
V6 changes:
  Fixed check error.
V5 changes:
  Added code in em_ethdev.c.
  Separated the release note, each patch has its own note. 
V4 changes:
  Removed adaper stopped flag in function ice_dev_init.
V3 changes:
  Removed adapter closed flag in driver e1000, fm10k, ice, ixgbe.
V2 changes:
  Separated to 5 patches, each patch only change one driver.
  Added resource release in dev_close.

Acked-by: Qiming Yang <qiming.yang@intel.com>
Series Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>

Di ChenxuX (5):
  net/e1000: release port upon close
  net/fm10k: release port upon close
  net/i40e: release port upon close
  net/ice: release port upon close
  net/ixgbe: release port upon close

 doc/guides/rel_notes/release_19_11.rst |  18 +++
 drivers/net/e1000/em_ethdev.c          |  33 ++---
 drivers/net/e1000/igb_ethdev.c         | 144 ++++++++++-----------
 drivers/net/fm10k/fm10k_ethdev.c       | 100 ++++++++-------
 drivers/net/i40e/i40e_ethdev.c         | 128 +++++++++----------
 drivers/net/i40e/i40e_ethdev_vf.c      |  25 ++--
 drivers/net/ice/ice_ethdev.c           |  30 +++--
 drivers/net/ixgbe/ixgbe_ethdev.c       | 167 +++++++++++++------------
 8 files changed, 335 insertions(+), 310 deletions(-)