numam-dpdk/doc/guides/testpmd_app_ug
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
..
build_app.rst doc: fix path to testpmd app 2016-07-28 18:11:56 +02:00
index.rst doc: clean up index files 2015-12-15 13:50:42 +01:00
intro.rst doc: fix syntax in testpmd user guide 2015-10-26 15:35:17 +01:00
run_app.rst app/testpmd: configure flowgen packet size with --txpkts 2016-10-13 17:21:06 +02:00
testpmd_funcs.rst net/ixgbe: fix VF VLAN insert API 2016-10-26 19:42:23 +02:00