]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bnxt_en: correct offset handling for IPv6 destination address
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Sat, 20 Sep 2025 12:11:17 +0000 (05:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2025 11:40:39 +0000 (13:40 +0200)
commit6d422469a5e62016930fb2857909b14520605459
tree73907b6e591595b5f767891abbb7963d2d3b9d11
parent6243bda271a628c48875e3e473206e7f584892ce
bnxt_en: correct offset handling for IPv6 destination address

[ Upstream commit 3d3aa9472c6dd0704e9961ed4769caac5b1c8d52 ]

In bnxt_tc_parse_pedit(), the code incorrectly writes IPv6
destination values to the source address field (saddr) when
processing pedit offsets within the destination address range.

This patch corrects the assignment to use daddr instead of saddr,
ensuring that pedit operations on IPv6 destination addresses are
applied correctly.

Fixes: 9b9eb518e338 ("bnxt_en: Add support for NAT(L3/L4 rewrite)")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Link: https://patch.msgid.link/20250920121157.351921-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c