]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-af: Update correct mask to filter IPv4 fragments
authorSuman Ghosh <sumang@marvell.com>
Wed, 3 May 2023 07:09:39 +0000 (12:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 11:58:48 +0000 (13:58 +0200)
commita50f71b06f2ebf8a9da72fc59d8867ed3828a6f8
tree39f3b78983fe7b7429bfbfa1cca713656b9df1b6
parentafd7660c766c4d317feae004e5cd829390bbc4b0
octeontx2-af: Update correct mask to filter IPv4 fragments

[ Upstream commit 2075bf150ddf320df02c05e242774dc0f73be1a1 ]

During the initial design, the IPv4 ip_flag mask was set to 0xff.
Which results to filter only fragmets with (fragment_offset == 0).
As part of the fix, updated the mask to 0x20 to filter all the
fragmented packets irrespective of the fragment_offset value.

Fixes: c672e3727989 ("octeontx2-pf: Add support to filter packet based on IP fragment")
Signed-off-by: Suman Ghosh <sumang@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Sai Krishna <saikrishnag@marvell.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c