numam-dpdk/drivers/net/mlx5
Ophir Munk 3c3f27e905 net/mlx5: fix VLAN PCP item calculation
The VLAN 16 bits tci field contains both values of PCP and VID. When
extracting any one of them - it is required not to affect the other one.
Previous to this commit in routine flow_dev_get_vlan_info_from_items()
we calculated the PCP as follows:
    (1) vlan->vlan_tci &= MLX5DV_FLOW_VLAN_PCP_MASK;
    (2) vlan->vlan_tci |= <3 bits value of PCP>
In line (1) we should have used the negated mask ('~' operator) such
that only the PCP bits will be nullified before ORing them with the
updated PCP value.

Fixes: 9aee7a8418 ("net/mlx5: support push flow action on VLAN header")
Cc: stable@dpdk.org

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
2020-03-18 10:21:41 +01:00
..
Makefile common/mlx5: remove NDEBUG 2020-02-05 09:51:21 +01:00
meson.build common/mlx5: remove NDEBUG 2020-02-05 09:51:21 +01:00
mlx5_defs.h net/mlx5: fix hairpin queue capacity 2020-02-19 18:09:28 +01:00
mlx5_ethdev.c net/mlx: replace hardcoded value with macro 2020-02-14 12:42:12 +01:00
mlx5_flow_dv.c net/mlx5: fix VLAN PCP item calculation 2020-03-18 10:21:41 +01:00
mlx5_flow_meter.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_flow_verbs.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_flow.c net/mlx5: fix metadata split with encap action 2020-02-21 11:41:21 +01:00
mlx5_flow.h net/mlx5: fix VLAN actions in meter 2020-02-21 11:41:21 +01:00
mlx5_mac.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mp.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mr.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mr.h remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
mlx5_rss.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxmode.c net/mlx5: reduce Netlink commands dependencies 2020-02-05 09:51:20 +01:00
mlx5_rxq.c net/mlx5: fix hairpin queue capacity 2020-02-19 18:09:28 +01:00
mlx5_rxtx_vec_altivec.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec_neon.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec_sse.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx.c doc: fix naming of Mellanox devices 2020-02-25 15:55:54 +01:00
mlx5_rxtx.h net/mlx5: add Rx/Tx burst mode info 2020-02-05 09:51:21 +01:00
mlx5_socket.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_stats.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_trigger.c net/mlx5: fix running without Rx queue 2020-02-21 11:41:21 +01:00
mlx5_txq.c doc: fix naming of Mellanox devices 2020-02-25 15:55:54 +01:00
mlx5_utils.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_utils.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_vlan.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5.c doc: fix naming of Mellanox devices 2020-02-25 15:55:54 +01:00
mlx5.h net/mlx5: make FDB default rule optional 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5_version.map net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5.h net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00