numam-dpdk/drivers/net/mlx5
Olivier Matz b37b528d95 mbuf: add new Rx flags for stripped VLAN
The behavior of PKT_RX_VLAN_PKT was not very well defined, resulting in
PMDs not advertising the same flags in similar conditions.

Following discussion in [1], introduce 2 new flags PKT_RX_VLAN_STRIPPED
and PKT_RX_QINQ_STRIPPED that are better defined:

  PKT_RX_VLAN_STRIPPED: a vlan has been stripped by the hardware and its
  tci is saved in mbuf->vlan_tci. This can only happen if vlan stripping
  is enabled in the RX configuration of the PMD.

For now, the old flag PKT_RX_VLAN_PKT is kept but marked as deprecated.
It should be removed from applications and PMDs in a future revision.

This patch also updates the drivers. For PKT_RX_VLAN_PKT:

- e1000, enic, i40e, mlx5, nfp, vmxnet3: done, PKT_RX_VLAN_PKT already
  had the same meaning than PKT_RX_VLAN_STRIPPED, minor update is
  required.
- fm10k: done, PKT_RX_VLAN_PKT already had the same meaning than
  PKT_RX_VLAN_STRIPPED, and vlan stripping is always enabled on fm10k.
- ixgbe: modification done (vector and normal), the old flag was set
  when a vlan was recognized, even if vlan stripping was disabled.
- the other drivers do not support vlan stripping.

For PKT_RX_QINQ_PKT, it was only supported on i40e, and the behavior was
already correct, so we can reuse the same bit value for
PKT_RX_QINQ_STRIPPED.

[1] http://dpdk.org/ml/archives/dev/2016-April/037837.html,

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2016-06-15 17:18:57 +02:00
..
Makefile mlx5: add VLAN insertion offload 2016-03-25 18:56:44 +01:00
mlx5_defs.h mlx5: fix RETA table size 2016-03-31 15:15:10 +02:00
mlx5_ethdev.c ethdev: add 100G link speed 2016-04-01 21:38:34 +02:00
mlx5_fdir.c mlx5: support flow director 2016-03-16 18:52:17 +01:00
mlx5_mac.c mlx5: allow operation in secondary processes 2016-03-25 18:56:44 +01:00
mlx5_rss.c mlx5: fix null RSS key handling 2016-03-25 19:01:37 +01:00
mlx5_rxmode.c mlx5: allow operation in secondary processes 2016-03-25 18:56:44 +01:00
mlx5_rxq.c mlx5: fix overwritten RSS configuration 2016-03-25 19:01:37 +01:00
mlx5_rxtx.c mbuf: add new Rx flags for stripped VLAN 2016-06-15 17:18:57 +02:00
mlx5_rxtx.h mempool: allocate in several memory chunks by default 2016-05-19 14:40:13 +02:00
mlx5_stats.c mlx5: allow operation in secondary processes 2016-03-25 18:56:44 +01:00
mlx5_trigger.c mlx5: allow operation in secondary processes 2016-03-25 18:56:44 +01:00
mlx5_txq.c mlx: fix double mbuf free in Tx queue clean up 2016-03-31 15:15:10 +02:00
mlx5_utils.h remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
mlx5_vlan.c mlx5: add VLAN filtering for broadcast and IPv6 multicast 2016-03-16 18:52:18 +01:00
mlx5.c mlx5: add VLAN insertion offload 2016-03-25 18:56:44 +01:00
mlx5.h mlx5: fix overwritten RSS configuration 2016-03-25 19:01:37 +01:00
rte_pmd_mlx5_version.map mlx5: introduce new driver for Mellanox ConnectX-4 adapters 2015-10-30 22:03:42 +01:00