[dpdk-dev] [PATCH 1/5] ethdev: add multicast address filtering

2015-05-29 Thread Ivan Boule
On 05/28/2015 06:22 PM, Stephen Hemminger wrote: > On Thu, 28 May 2015 17:05:19 +0200 > Ivan Boule wrote: > >> +if (port_id >= nb_ports) { >> +PMD_DEBUG_TRACE("Invalid port_id=%d\n", port_id); >> +return -ENODEV; >> +} >> + > > Use rte_eth_dev_is_valid_port()

[dpdk-dev] [PATCH 1/5] ethdev: add multicast address filtering

2015-05-28 Thread Ivan Boule
With the current PMD API, the receipt of multicast packets on a given port can only be enabled by invoking the "rte_eth_allmulticast_enable" function. This method may not work on Virtual Functions in SR-IOV architectures when the host PF driver does not allow such operation on VFs. In such cases,

[dpdk-dev] [PATCH 1/5] ethdev: add multicast address filtering

2015-05-28 Thread Stephen Hemminger
On Thu, 28 May 2015 17:05:19 +0200 Ivan Boule wrote: > + if (port_id >= nb_ports) { > + PMD_DEBUG_TRACE("Invalid port_id=%d\n", port_id); > + return -ENODEV; > + } > + Use rte_eth_dev_is_valid_port() function instead.