numam-dpdk/drivers
Xiaolong Ye f0ce7af0e1 net/af_xdp: remove resources when port is closed
Since 18.11, it is suggested that driver should release all its private
resources at the dev_close routine. So all resources previously released
in remove routine are now released at the dev_close routine, and the
dev_close routine will be called in driver remove routine in order to
support removing a device without closing its ports.

Above behavior changes are supported by setting RTE_ETH_DEV_CLOSE_REMOVE
flag during probe stage.

Also as af_xdp pmd doesn't allocate MAC addresses dynamically, it needs
to be set as NULL, so it won't be released by rte_eth_dev_release_port()
otherwise, there would be "EAL: Error: Invalid memory" error.

Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2019-05-03 18:45:23 +02:00
..
baseband bb/turbo_sw: update for FlexRAN 18.09 2018-12-19 11:19:10 +01:00
bus bus/fslmc: fix warning with GCC 9 2019-05-02 14:17:26 +02:00
common doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
compress compress/qat: fix dataplane return 2019-04-18 16:01:28 +02:00
crypto crypto/zuc: fix dependency check 2019-05-02 10:34:05 +02:00
event event/dsw: fix capability flags 2019-05-03 22:52:37 +02:00
mempool build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00
net net/af_xdp: remove resources when port is closed 2019-05-03 18:45:23 +02:00
raw doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
Makefile drivers: add common as dependency for bus 2018-10-16 14:54:25 +02:00
meson.build build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00