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)
commitd351c90ce248601ce34fbc5ac817e3362b441b55
treed14f44701ad50b7bcbb219d7e522d2449845f530
parent5ec9c514d4a0e1749781c4c61485f9a69c212716
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: 1d4d9e42c240 ("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