Drivers: net: Hyperv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Discussion]     [TCP Instrumentation]     [Ethernet Bridging]     [Linux Wireless Networking]     [Linux WPAN Networking]     [Linux Host AP]     [Linux WPAN Networking]     [Linux Bluetooth Networking]     [Linux ATH6KL Networking]     [Linux Networking Users]     [Linux Coverity]     [VLAN]     [Git]     [IETF Annouce]     [Linux Assembly]     [Security]     [Bugtraq]     [Yosemite Information]     [MIPS Linux]     [ARM Linux Kernel]     [ARM Linux]     [Linux Virtualization]     [Linux IDE]     [Linux RAID]     [Linux SCSI]