[PATCH v1 2/2] drivers: net: xgene: Adding support for TSO

David Miller davem at davemloft.net
Mon Aug 17 17:27:11 PDT 2015


From: Iyappan Subramanian <isubramanian at apm.com>
Date: Mon, 17 Aug 2015 14:33:05 -0700

> +			/* HW requires all header resides in the first buffer */
> +			if (skb_is_nonlinear(skb) &&
> +			    (skb_headlen(skb) < hdr_len)) {
> +				netdev_warn(ndev, "Headers are required to reside in header buffer\n");
> +				dev_kfree_skb(skb);
> +				return 0;
> +			}

You can't just drop the packet in this situation.

Instead, you must at least try to linearize the header to fit your
needs.



More information about the linux-arm-kernel mailing list