Skip to contentSkip to conversation

RDMA/nes: Fix for crash when tx chksum offload is off

PATCH New Tatyana Nikolova 1 participant 1 message Sep 20, 2012 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 RDMA/nes: Fix for crash when tx chksum offload is off

When tx checksum offload is disabled for iWarp connection, skb->ip_summed needs to be set to CHECKSUM_NONE

---
 drivers/infiniband/hw/nes/nes_cm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/infiniband/hw/nes/nes_cm.c +2 -0
index 49a9383..f843bb0 100644
@@ -430,6 +430,8 @@ static void form_cm_frame(struct sk_buff *skb,
 	buf += sizeof(*tcph);
 
 	skb->ip_summed = CHECKSUM_PARTIAL;
+	if (!(cm_node->netdev->features & NETIF_F_IP_CSUM))
+		skb->ip_summed = CHECKSUM_NONE;
 	skb->protocol = htons(0x800);
 	skb->data_len = 0;
 	skb->mac_len = ETH_HLEN;
Signature · 6 lines
1.7.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html