[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190128193828.GA32464@felix-thinkpad.marvell.com>
Date: Mon, 28 Jan 2019 19:38:31 +0000
From: Felix Manlunas <fmanlunas@...vell.com>
To: "davem@...emloft.net" <davem@...emloft.net>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Derek Chickles <dchickles@...vell.com>,
Satananda Burla <sburla@...vell.com>,
Felix Manlunas <fmanlunas@...vell.com>,
Veerasenareddy Burru <vburru@...vell.com>
Subject: [PATCH net-next] liquidio: fix the validation of rx checksum status
from NIC hardware
From: Veerasenareddy Burru <vburru@...vell.com>
Fixed the code that was incorrectly interpreting the rx checksum validation
status from hardware, and updating kernel that the packet arrived with
correct checksum though the packet arrived with incorrect checksum and
hardware also indicated checksum is not correct.
Signed-off-by: Veerasenareddy Burru <vburru@...vell.com>
Acked-by: Derek Chickles <dchickles@...vell.com>
Signed-off-by: Felix Manlunas <fmanlunas@...vell.com>
---
drivers/net/ethernet/cavium/liquidio/lio_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c
b/drivers/net/ethernet/cavium/liquidio/lio_core.c
index 825a28e..e21bf37 100644
--- a/drivers/net/ethernet/cavium/liquidio/lio_core.c
+++ b/drivers/net/ethernet/cavium/liquidio/lio_core.c
@@ -661,7 +661,8 @@ static int octeon_setup_droq(struct octeon_device *oct, int q_no, int num_descs,
(((rh->r_dh.encap_on) &&
(rh->r_dh.csum_verified & CNNIC_TUN_CSUM_VERIFIED)) ||
(!(rh->r_dh.encap_on) &&
- (rh->r_dh.csum_verified & CNNIC_CSUM_VERIFIED))))
+ ((rh->r_dh.csum_verified & CNNIC_CSUM_VERIFIED) ==
+ CNNIC_CSUM_VERIFIED))))
/* checksum has already been verified */
skb->ip_summed = CHECKSUM_UNNECESSARY;
else
--
1.8.3.1
Powered by blists - more mailing lists