via-rhine -- VT6105M and checksum offloading
Subsystems (2)
Hi folks,
I've recently noticed that one of the embedded systems I'm using (the PCEngines ALIXes) is becoming CPU bound under heavy network traffic. Upon investigation, it looks like the VT6105M isn't actually using the hardware checksum offloading support of the hardware. Are there any known reasons why this isn't enabled (hardware bugs?)? I'll test enabling it in the driver, but I figured it would be worth asking if this path has been explored already. Cheers,
-ben
David Miller
maintainerFrom: Benjamin LaHaise <[email protected]>
Date: Thu, 24 Feb 2011 13:58:05 -0500
Quoted 7 lines
I've recently noticed that one of the embedded systems I'm using (the PCEngines ALIXes) is becoming CPU bound under heavy network traffic. Upon investigation, it looks like the VT6105M isn't actually using the hardware checksum offloading support of the hardware. Are there any known reasons why this isn't enabled (hardware bugs?)? I'll test enabling it in the driver, but I figured it would be worth asking if this path has been explored already. Cheers,
As far as I can tell it was never attempted. So it should work.
If you do that, while you're here, you can make rhine_rx() take a "napi" arg and make this driver use netif_gso_receive() too. Don't forget to set NETIF_F_GRO or similar in netdev->flags during probe, and also hookup the necessary ethtool hooks.
Quoted 7 lines · David Miller
From: Benjamin LaHaise <[email protected]>
Date: Thu, 24 Feb 2011 13:58:05 -0500Quoted 3 lines
Upon investigation, it looks like the VT6105M isn't actually using the hardware checksum offloading support of the hardware. Are there any known reasons why this isn't enabled (hardware bugs?)? I'll test enabling
Quoted 6 lines
As far as I can tell it was never attempted. So it should work.
If you do that, while you're here, you can make
rhine_rx()take a "napi" arg and make this driver usenetif_gso_receive()too. Don't forget to setNETIF_F_GROor similar innetdev->flagsduring probe, and also hookup the necessary ethtool hooks.
I have a patch to enable hw checksumming (the ethtool hooks are done, but I somehow missed the NETIF_F_GRO bit). Care to give it a whirl?
Roger
Quoted 2 lines · Roger Luethi
I have a patch to enable hw checksumming (the ethtool hooks are done, but I somehow missed the
NETIF_F_GRObit). Care to give it a whirl?
Can you post that, preferably rebased to net-next? Even if Benjamin doesn't get 'round to implementing all of the improvements Dave proposes perhaps Dave will be clement enough to apply it as-is if it proves to be a net positive?
Thanks, Jan