numam-dpdk/app
E. Scott Daniels aaffc740ec net/ixgbe: fix VF VLAN insert API
The final parameter to rte_pmd_ixgbe_set_vf_vlan_insert is uint8_t
and treated as a binary flag when it needs to be a uint16_t
and treated as a VLAN id.  The data sheet (sect 8.2.3.27.13) describes
the right most 16 bits as the VLAN id that is to be inserted; the
16.11  code is accepting only a 1 or 0 thus effectively only
allowing the VLAN id 1 to be inserted (0 disables the insertion
setting).

This patch changes the final parm name to represent the data that
is being accepted (vlan_id), changes the type to permit all valid
VLAN ids, and validates the parameter based on the range of 0 to
4095. Corresponding changes to prototype and documentation in the
.h file.

Fixes: 49e248223e ("net/ixgbe: add API for VF management")

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
2016-10-26 19:42:23 +02:00
..
cmdline_test app/cmdline_test: add missing dependencies 2015-12-03 00:02:26 +01:00
pdump drivers: make driver names consistent 2016-09-16 11:55:59 +02:00
proc_info app/procinfo: free xstats memory upon failure 2016-10-12 18:40:50 +02:00
test app/test: store digest/IV at a DMA able address 2016-10-13 21:58:44 +02:00
test-acl acl: add AltiVec for ppc64 2016-09-09 17:56:14 +02:00
test-pipeline app/test-pipeline: add cuckoo hash 2016-10-12 22:09:46 +02:00
test-pmd net/ixgbe: fix VF VLAN insert API 2016-10-26 19:42:23 +02:00
Makefile app/pdump: add tool for packet capturing 2016-06-16 23:40:21 +02:00