ethdev: allow event registration for all ports
authorMatan Azrad <matan@mellanox.com>
Thu, 4 Jan 2018 16:01:09 +0000 (17:01 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit9ec0b3869d8dc50e56170dcaed3b9fe184f2fcd0
tree0d464cfc9c79da004492e3381bcdb2e90c6d7ab9
parentcebe3d7b3d2066981d9179b52b79966e69e68fd7
ethdev: allow event registration for all ports

Add option to register event callback for all ports by one call to
rte_eth_dev_callback_register using port_id=RTE_ETH_ALL.

In this case the callback is also registered to invalid ports.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h