[LEDE-DEV] Generic way to disable Generic Receive Offload (GRO)

Florian Fainelli f.fainelli at gmail.com
Tue May 30 11:20:23 PDT 2017


On 05/29/2017 04:17 PM, rosenp at gmail.com wrote:
> Hmm how about driver side? looking at the source code,
> register_netdevice enables GSO and GRO by default. Any way to
> explicitly disable it?

On the driver side you should mask NETIF_F_GRO and NETIF_F_GSO in
netdev->features and netdev->hw_features.

> 
> On Mon, 2017-05-29 at 14:34 -0700, Florian Fainelli wrote:
>> Le 05/29/17 à 13:55, rosenp at gmail.com a écrit :
>>> So LEDE is using fq_codel by default. On the cake homepage is this
>>> little sentence:
>>>
>>> "Preliminary indications are that not doing GRO “peeling” is where
>>> the
>>> first generation of fq_codel enabled 802.11ac routers went wrong in
>>> their QoS systems."
>>>
>>> On my Archer C7v2, I've been able to observe that by disabling GRO
>>> using ethtool, I've been able to get a 1-2ms reduction in my
>>> overall
>>> latency when browsing the internet.
>>>
>>> Anyone know if there is a way to disable GRO without having to
>>> install
>>> ethtool?
>>
>> ethtool just send an ioctl so you can write a few lines of C code
>> that
>> would do the same thing.
>>
>>>
>>> On a side note, the ethernet driver for the Archer needs some love.
>>> It's not using the correct API for GRO (using netif_receive_skb
>>> instead
>>> of napi_gro_receive).
>>>
>>> _______________________________________________
>>> Lede-dev mailing list
>>> Lede-dev at lists.infradead.org
>>> http://lists.infradead.org/mailman/listinfo/lede-dev
>>>
>>
>>


-- 
Florian



More information about the Lede-dev mailing list