]> 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 11:05:44 +0000 (13:05 +0200)
commit3226b092612320b79e42c50ded5a577c0ab20cfa
tree24991ed1a66df00db2a1e277aa3ac0f2ee8ad504
parent6019746c7dc11191dc102d9e0a9aabe818335a94
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: f5f1176ce016 ("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