ethdev: add switch identifier parameter to port
authorDeclan Doherty <declan.doherty@intel.com>
Thu, 26 Apr 2018 10:40:58 +0000 (11:40 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 17:00:56 +0000 (18:00 +0100)
commit0804dfc209b1f1396b049ade9256afe4188d50fc
tree729fbb8b8a6ef0bea8c6e2dfbda025f50be81e09
parentb7f859c9a9a5146e495e09ae2b311259a94095e1
ethdev: add switch identifier parameter to port

Introduces a new port attribute to ethdev port's which denotes the
switch domain a port belongs to. By default all port's switch
identifiers are set to RTE_ETH_DEV_SWITCH_DOMAIN_ID_INVALID. Ports
which supported the concept of switch domains can be configured with
the same switch domain id.

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
app/test-pmd/config.c
doc/guides/rel_notes/deprecation.rst
lib/librte_ether/rte_ethdev.h