]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: Fix UDP/TCP src and dst port tc filters
authorSubbaraya Sundeep <sbhatta@marvell.com>
Sun, 24 Jul 2022 08:21:14 +0000 (13:51 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 Jul 2022 10:51:52 +0000 (12:51 +0200)
commitc1e5584c118d6a95cc3354fb58f539ebf6dc8bc1
treed14f44701ad50b7bcbb219d7e522d2449845f530
parentb5fb112a9c6c5ac0308a665f968836e4325622ab
octeontx2-pf: Fix UDP/TCP src and dst port tc filters

Check the mask for non-zero value before installing tc filters
for L4 source and destination ports. Otherwise installing a
filter for source port installs destination port too and
vice-versa.

Fixes: b7e353b2b37f ("octeontx2-pf: Add tc flower hardware offload on ingress traffic")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c