numam-dpdk/drivers/net/af_xdp
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
..
af_xdp_deps.h net/af_xdp: introduce AF_XDP PMD 2019-04-05 17:45:22 +02:00
Makefile net/af_xdp: introduce AF_XDP PMD 2019-04-05 17:45:22 +02:00
meson.build net/af_xdp: introduce AF_XDP PMD 2019-04-05 17:45:22 +02:00
rte_eth_af_xdp.c net/af_xdp: remove resources when port is closed 2019-05-03 18:45:23 +02:00
rte_pmd_af_xdp_version.map net/af_xdp: introduce AF_XDP PMD 2019-04-05 17:45:22 +02:00