You need to fix your word wrap.
For transmit, NETIF_F_SG asks for scattered buffers, yes. BUT. You
need one of NETIF_F_HW_CSUM or NETIF_F_IP_CSUM along with it. Otherwise
NETIF_F_SG is useless. NETIF_F_HW_CSUM is for hardware that can
checksum a region of data. NETIF_F_IP_CSUM is for lesser hardware that
can only perform IP checksum on a pre-specified region of data.
NETIF_F_IP_CSUM doesn't support IPv6 checksums for example, while
NETIF_F_HW_CSUM supports any protocol checksum.
For receive, you enable IP checksumming in a NIC-specific manner. See
the long comment at the beginning of include/linux/skbuff.h. If you
have lesser hardware that simply verifies the checksum, then you set
skb->ip_summed = CHECKSUM_UNNECESSARY, and value of skb->csum is
undefined. If you have good network hardware, that supports checksum of
any region, then set skb->ip_summed = CHECKSUM_HW, and store the value
of the checksum in skb->csum.
Buffer chaining on Rx is possible. Most people do not bother to
implement it, though, and instead ensure that the NIC always delivers
one packet in one buffer. You have two options for Rx buffer chaining:
store in skb_shinfo(skb)->frag_list, or skb_shinfo(skb)->frags array.
-- Jeff Garzik | Only so many songs can be sung Building 1024 | with two lips, two lungs, and one tongue. MandrakeSoft | - nomeansno
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/