af_packet: make the device detachable
authorWojciech Zmuda <woz@semihalf.com>
Wed, 2 Mar 2016 11:55:41 +0000 (12:55 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 18:05:47 +0000 (19:05 +0100)
commite6ee4db01b4d2a4f9a52a3d9297912f6c6e946d0
tree85b00ee342591fb274b29f9c606091eaee3f191f
parent139f39a9785910d4ee7be233011b995be01f3353
af_packet: make the device detachable

Allow dynamic deallocation of af_packet device through proper
API functions. To achieve this:
* set device flag to RTE_ETH_DEV_DETACHABLE
* implement rte_pmd_af_packet_devuninit() and expose it
  through rte_driver.uninit()
* copy device name to ethdev->data to make discoverable with
  rte_eth_dev_allocated()
Moreover, make af_packet init function static, as there is no
reason to keep it public.

Signed-off-by: Wojciech Zmuda <woz@semihalf.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
doc/guides/rel_notes/release_16_04.rst
drivers/net/af_packet/Makefile
drivers/net/af_packet/rte_eth_af_packet.c
drivers/net/af_packet/rte_eth_af_packet.h [deleted file]
drivers/net/af_packet/rte_pmd_af_packet_version.map