Re: [dpdk-dev] [PATCH v7 2/9] ethdev: add switch identifier parameter to port

2018-04-24 Thread Thomas Monjalon
16/04/2018 15:05, Declan Doherty: > --- a/lib/librte_ether/rte_ethdev.h > +++ b/lib/librte_ether/rte_ethdev.h > +/** > + * Default values for switch domain id when ethdev does not support switch > + * domain definitions. values -> value > + */ > +#define RTE_ETH_DEV_SWITCH_DOMAIN_ID_INVALID (0) >

[dpdk-dev] [PATCH v7 2/9] ethdev: add switch identifier parameter to port

2018-04-16 Thread Declan Doherty
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. Signe