summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeetha sowjanya <gakula@marvell.com>2020-09-30 21:38:52 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-14 11:55:55 +0200
commit7778b88602289d26c8ec61f01abea34f2504c283 (patch)
tree2a0391a22298913dc0eb953de1e4ededa3d6b10e
parent921dfb5fec6bf8687aadf069f9481af130f2f1b2 (diff)
downloadlinux-stable-7778b88602289d26c8ec61f01abea34f2504c283.tar.gz
linux-stable-7778b88602289d26c8ec61f01abea34f2504c283.tar.bz2
linux-stable-7778b88602289d26c8ec61f01abea34f2504c283.zip
octeontx2-pf: Fix TCP/UDP checksum offload for IPv6 frames
[ Upstream commit 89eae5e87b4fa799726a3e8911c90d418cb5d2b1 ] For TCP/UDP checksum offload feature in Octeontx2 expects L3TYPE to be set irrespective of IP header checksum is being offloaded or not. Currently for IPv6 frames L3TYPE is not being set resulting in packet drop with checksum error. This patch fixes this issue. Fixes: 3ca6c4c88 ("octeontx2-pf: Add packet transmission support") Signed-off-by: Geetha sowjanya <gakula@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
index b04f5429d72d..334eab976ee4 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
@@ -524,6 +524,7 @@ static void otx2_sqe_add_hdr(struct otx2_nic *pfvf, struct otx2_snd_queue *sq,
sqe_hdr->ol3type = NIX_SENDL3TYPE_IP4_CKSUM;
} else if (skb->protocol == htons(ETH_P_IPV6)) {
proto = ipv6_hdr(skb)->nexthdr;
+ sqe_hdr->ol3type = NIX_SENDL3TYPE_IP6;
}
if (proto == IPPROTO_TCP)