Skip to content

Commit

Permalink
octeontx2-pf: send correct vlan priority mask to npc_install_flow_req
Browse files Browse the repository at this point in the history
[ Upstream commit 10df5a1 ]

This patch corrects the erroneous vlan priority mask field that was
send to npc_install_flow_req.

Fixes: 1d4d9e4 ("octeontx2-pf: Add tc flower hardware offload on ingress traffic")
Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Naveen Mamindlapalli authored and gregkh committed Sep 15, 2021
1 parent 869b01f commit 5e0f8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
Expand Up @@ -485,8 +485,8 @@ static int otx2_tc_prepare_flow(struct otx2_nic *nic, struct otx2_tc_flow *node,
match.key->vlan_priority << 13;

vlan_tci_mask = match.mask->vlan_id |
match.key->vlan_dei << 12 |
match.key->vlan_priority << 13;
match.mask->vlan_dei << 12 |
match.mask->vlan_priority << 13;

flow_spec->vlan_tci = htons(vlan_tci);
flow_mask->vlan_tci = htons(vlan_tci_mask);
Expand Down

0 comments on commit 5e0f8ea

Please sign in to comment.