Hi Stijn,

> On Mar 1, 2017, at 21:28, Stijn Segers <francesco.borrom...@inventati.org> 
> wrote:
> 
> Op wo, 1 mrt 2017 om 10:59 , schreef Sebastian Moeller <moell...@gmx.de>:
>> Hi Stijn,
>>> On Mar 1, 2017, at 10:46, Stijn Segers <francesco.borrom...@inventati.org> 
>>> wrote:
>>> Hi Baptiste,
>>> Thanks for your input. I found this thread [1] however which suggests 
>>> offloading capabilities:
>>> "The GSW is found in all of the 1000mbit SoCs. it has 5 external ports,
>>> 1-2 cpu ports and 1 further port that the internal HW offloading engine
>>> connects to. The switch core used is a MT7530, which also exists as a
>>> standalone chip. [...]"
>>> Johh, is there a way to disable offloading on MT7530?
>> If you run “ethtool -k $IFACE” ethtool should show you which offloads the 
>> device supports and which can be toggled. Here is an example from a 
>> wndr3700v2 (eth1 being the dedicated WAN interface not connected to a switch)
>> root@router:~# ethtool -k eth1
>> Features for eth1:
>> rx-checksumming: off [fixed]
>> tx-checksumming: off
>>      tx-checksum-ipv4: off [fixed]
>>      tx-checksum-ip-generic: off [fixed]
>>      tx-checksum-ipv6: off [fixed]
>>      tx-checksum-fcoe-crc: off [fixed]
>>      tx-checksum-sctp: off [fixed]
>> scatter-gather: off
>>      tx-scatter-gather: off [fixed]
>>      tx-scatter-gather-fraglist: off [fixed]
>> tcp-segmentation-offload: off
>>      tx-tcp-segmentation: off [fixed]
>>      tx-tcp-ecn-segmentation: off [fixed]
>>      tx-tcp6-segmentation: off [fixed]
>> udp-fragmentation-offload: off [fixed]
>> generic-segmentation-offload: off [requested on]
>> generic-receive-offload: on
>> large-receive-offload: off [fixed]
>> rx-vlan-offload: off [fixed]
>> tx-vlan-offload: off [fixed]
>> ntuple-filters: off [fixed]
>> receive-hashing: off [fixed]
>> highdma: off [fixed]
>> rx-vlan-filter: off [fixed]
>> vlan-challenged: off [fixed]
>> tx-lockless: off [fixed]
>> netns-local: off [fixed]
>> tx-gso-robust: off [fixed]
>> tx-fcoe-segmentation: off [fixed]
>> tx-gre-segmentation: off [fixed]
>> tx-ipip-segmentation: off [fixed]
>> tx-sit-segmentation: off [fixed]
>> tx-udp_tnl-segmentation: off [fixed]
>> fcoe-mtu: off [fixed]
>> tx-nocache-copy: off
>> loopback: off [fixed]
>> rx-fcs: off [fixed]
>> rx-all: off [fixed]
>> tx-vlan-stag-hw-insert: off [fixed]
>> rx-vlan-stag-hw-parse: off [fixed]
>> rx-vlan-stag-filter: off [fixed]
>> l2-fwd-offload: off [fixed]
>> busy-poll: off [fixed]
>> Best Regards
>>      Sebastian
>>> Thanks!
>>> Stijn
>>> [1] https://lkml.org/lkml/2016/2/26/527
>>> _______________________________________________
>>> Lede-dev mailing list
>>> Lede-dev@lists.infradead.org
>>> http://lists.infradead.org/mailman/listinfo/lede-dev
> 
> Hi Sebastian,
> 
> That does indeed return a long list, but it looks like the things that Dave 
> Taht suggested I disable are already disabled?
> 
> ethtool -K tso off gso off gro off
> 
> Of those, only gso shows as tx-gso-robust [off]: fixed...
> 
> # ethtool -k eth0
> Features for eth0:
> rx-checksumming: on
> tx-checksumming: on
> tx-checksum-ipv4: on
> tx-checksum-ip-generic: off [fixed]
> tx-checksum-ipv6: on
> tx-checksum-fcoe-crc: off [fixed]
> tx-checksum-sctp: off [fixed]
> scatter-gather: on
> tx-scatter-gather: on
> tx-scatter-gather-fraglist: off [fixed]
> tcp-segmentation-offload: on
> tx-tcp-segmentation: on
> tx-tcp-ecn-segmentation: off [fixed]
> tx-tcp6-segmentation: on
> udp-fragmentation-offload: off [fixed]
> generic-segmentation-offload: on

        This is GSO

> generic-receive-offload: on

        And this GRO

so both seem to be still on, I do seem to remember that Linux will keep giant 
packets intact once assembled, so for testing you might want to disable GRO for 
all interfaces, to make sure no large meta-packet ever reaches cake… I also 
recall being flummoxed by the fact that the output of ethtool -k is not 
identical with what to give to ethtool -K...

Best Regards

> large-receive-offload: off [fixed]
> rx-vlan-offload: off [fixed]
> tx-vlan-offload: on
> ntuple-filters: off [fixed]
> receive-hashing: off [fixed]
> highdma: off [fixed]
> rx-vlan-filter: off [fixed]
> vlan-challenged: off [fixed]
> tx-lockless: off [fixed]
> netns-local: off [fixed]
> tx-gso-robust: off [fixed]
> tx-fcoe-segmentation: off [fixed]
> tx-gre-segmentation: off [fixed]
> tx-ipip-segmentation: off [fixed]
> tx-sit-segmentation: off [fixed]
> tx-udp_tnl-segmentation: off [fixed]
> fcoe-mtu: off [fixed]
> tx-nocache-copy: off
> loopback: off [fixed]
> rx-fcs: off [fixed]
> rx-all: off [fixed]
> tx-vlan-stag-hw-insert: off [fixed]
> rx-vlan-stag-hw-parse: off [fixed]
> rx-vlan-stag-filter: off [fixed]
> l2-fwd-offload: off [fixed]
> busy-poll: off [fixed]
> 


_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to