app/testpmd: check vlan filter configuration
authorMichal Jastrzebski <michalx.k.jastrzebski@intel.com>
Fri, 20 Feb 2015 10:26:12 +0000 (11:26 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 9 Mar 2015 11:47:26 +0000 (12:47 +0100)
commit64b01ee0b22d1f99dbba564580af922af9cd7aad
tree58952fda4a69700c81dea27683bfcafbb7bfebff
parenta7dde4ff0dcdf382bc2a5fc86c40106a8f43e1f3
app/testpmd: check vlan filter configuration

This patch modifies testpmd behavior when setting:
rx_vlan add all vf_port (enabling all vlanids
to be passed thru rx filter on VF).
Rx_vlan_all_filter_set() function,
checks if the next vlanid can be enabled by the driver.
Number of vlanids is limited by the NIC and thus the NIC
do not allow to enable more vlanids than it can allocate
in VFTA table.

Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-pmd/config.c
app/test-pmd/testpmd.h
lib/librte_ether/rte_ethdev.c