提交 ac93e2fa 编写于 作者: V Veerasenareddy Burru 提交者: David S. Miller

liquidio: fix the validation of rx checksum status from NIC hardware

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: NVeerasenareddy Burru <vburru@marvell.com>
Acked-by: NDerek Chickles <dchickles@marvell.com>
Signed-off-by: NFelix Manlunas <fmanlunas@marvell.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 bbcbf2ee
......@@ -661,7 +661,8 @@ liquidio_push_packet(u32 octeon_id __attribute__((unused)),
(((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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册