Re: [dpdk-dev] [PATCH v1] net/mlx5: fix VLAN PCP item calculation

2020-03-01 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Ophir Munk > Sent: Wednesday, February 26, 2020 10:28 AM > To: dev@dpdk.org > Cc: Thomas Monjalon ; Raslan Darawsheh > ; Ophir Munk > Subject: [PATCH v1] net/mlx5: fix VLAN PCP item calculation > > The VLAN 16 bits tci field contains both values of PCP a

Re: [dpdk-dev] [PATCH v1] net/mlx5: fix VLAN PCP item calculation

2020-02-26 Thread Slava Ovsiienko
> -Original Message- > From: dev On Behalf Of Ophir Munk > Sent: Wednesday, February 26, 2020 10:28 > To: dev@dpdk.org > Cc: Thomas Monjalon ; Raslan Darawsheh > ; Ophir Munk > Subject: [dpdk-dev] [PATCH v1] net/mlx5: fix VLAN PCP item calculation > > The VLAN

[dpdk-dev] [PATCH v1] net/mlx5: fix VLAN PCP item calculation

2020-02-26 Thread Ophir Munk
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 calcualted the PCP as follows: (1) vlan->vlan_tci &= MLX5DV_FLOW_VLAN_PCP_MASK;