Re: [PATCH net-next 08/12] r8152: support TSO

From: Eric Dumazet
Date: Tue Mar 04 2014 - 11:52:53 EST


On Tue, 2014-03-04 at 20:01 +0800, Hayes Wang wrote:
> Support scatter gather and TSO.

>
> - netdev->features |= NETIF_F_RXCSUM | NETIF_F_IP_CSUM;
> - netdev->hw_features = NETIF_F_RXCSUM | NETIF_F_IP_CSUM;
> + netdev->features |= NETIF_F_RXCSUM | NETIF_F_IP_CSUM | NETIF_F_SG |
> + NETIF_F_TSO;
> + netdev->hw_features = NETIF_F_RXCSUM | NETIF_F_IP_CSUM | NETIF_F_SG |
> + NETIF_F_TSO;
>

Minor nit :

If you use skb_copy_bits(), then you also can add NETIF_F_FRAGLIST here.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/