Skip to contentSkip to conversation

via-rhine -- VT6105M and checksum offloading

DISCUSSION Benjamin LaHaise 4 participants 4 messages Feb 24, 2011 – Feb 25, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

maintainer
#1 lore raw

From: 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.

#2 lore raw
Quoted 7 lines · David Miller

From: Benjamin LaHaise <[email protected]>
Date: Thu, 24 Feb 2011 13:58:05 -0500

Quoted 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 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.

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

#3 lore raw
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_GRO bit). 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