[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1398190933-8990-1-git-send-email-kys@microsoft.com>
Date: Tue, 22 Apr 2014 11:22:13 -0700
From: "K. Y. Srinivasan" <kys@...rosoft.com>
To: davem@...emloft.net, netdev@...r.kernel.org, olaf@...fle.de,
jasowang@...hat.com
Subject: Drivers: net: Hyperv
I am trying to port the various offloads (checksum, TSO etc.) that I recently
implemented for the Hyper-V network driver to a 2.6.32 kernel and while this
code works on the upstream bits, TCP checksum offload does not seem to work
on the 2.6.32 kernel. Would you know if there is a different way to turn on
checksum offload on 2.6.32 kernels? I am setting the relevant feature flags:
net->features = NETIF_F_SG | NETIF_F_RXCSUM |
NETIF_F_IP_CSUM | NETIF_F_TSO;
What I am observing is that when the skb is presented to the driver for transmission,
The ip_summed field in the skb is set to 0.
On the kernel tip, I see this value set to CHECKSUM_PARTIAL and the offloads
work correctly on the kernel tip. The other difference I see is that on entry into the driver,
the eth_hdr state is not correctly set in the skb.
I need to invoke skb_reset_mac_header() to get this state correctly set.
Any help would be greatly appreciated.
Regards,
K. Y
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists