@@ -106,7 +106,12 @@ For complete description, see comments near the top of include/linux/skbuff.h.
Note: NETIF_F_HW_CSUM is a superset of NETIF_F_IP_CSUM + NETIF_F_IPV6_CSUM.
It means that device can fill TCP/UDP-like checksum anywhere in the packets
-whatever headers there might be.
+whatever headers there might be. NETIF_F_IP_CSUM and NETIF_F_IPV6_CSUM are
+deprecated in favor of NETIF_F_HW_CSUM. Legacy drivers can be converted
+by advertising NETIF_F_HW_CSUM and checking skb->protocol for ETH_P_IP or
+ETH_P_IPV6, if the device does not support checksum offload for the protocol
+in skb->protocol then it can call skb_checksum_help to perform the checksum
+on the host.
* Transmit TCP segmentation offload
Add text in netdev-features.txt documenting that NETIF_F_IP_CSUM and NETIF_F_IPV6_CSUM are being deprecated in favor of NETIF_F_HW_CSUM. Suggest that legacy drivers can be fixed by advertising NETIF_F_HW_CSUM and checking skb->protocol. Signed-off-by: Tom Herbert <tom@herbertland.com> --- Documentation/networking/netdev-features.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)