Skip to contentSkip to conversation

doubt about qla3xxx checksum "fix"

DISCUSSION David Miller 2 participants 3 messages Jun 4, 2007

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

I don't think it's %100 right, I'm referring specifically to

e68a8c10c4c5daf363e946d10c1a5cba77d7f92c

Sure, qla3xxx is only handling ipv4 in that ql_hw_csum_setup() function, but if you check the call site it really wants CHECKSUM_PARTIAL skb's to work on. And CHECKSUM_PARTIAL skbs are only setup for paths that advertise the NETIF_F_HW_CSUM capability.

With Stephen's change it now won't checksum offload anything at all.

#1 lore raw
Quoted 9 lines · On Sun, 03 Jun 2007 18:00:51 -0700 (PDT) David Miller <[email protected]>…

I don't think it's %100 right, I'm referring specifically to

e68a8c10c4c5daf363e946d10c1a5cba77d7f92c

Sure, qla3xxx is only handling ipv4 in that ql_hw_csum_setup() function, but if you check the call site it really wants CHECKSUM_PARTIAL skb's to work on. And CHECKSUM_PARTIAL skbs are only setup for paths that advertise the NETIF_F_HW_CSUM capability.

CHECKSUM_PARTIAL is used on xmit for both NETIF_F_HWCSUM and NETIF_F_IPCSUM See acenic, 3c59x, ...

Signature · 1 line
Stephen Hemminger <[email protected]>
author maintainer
#2 lore raw

From: Stephen Hemminger <[email protected]>
Date: Sun, 3 Jun 2007 18:50:59 -0700

Quoted 8 lines
Quoted 5 lines · On Sun, 03 Jun 2007 18:00:51 -0700 (PDT) David Miller <[email protected]>…

I don't think it's %100 right, I'm referring specifically to

e68a8c10c4c5daf363e946d10c1a5cba77d7f92c

Quoted 7 lines
Quoted 4 lines

Sure, qla3xxx is only handling ipv4 in that ql_hw_csum_setup() function, but if you check the call site it really wants CHECKSUM_PARTIAL skb's to work on. And CHECKSUM_PARTIAL skbs are only setup for paths that advertise the NETIF_F_HW_CSUM capability.

CHECKSUM_PARTIAL is used on xmit for both NETIF_F_HWCSUM and NETIF_F_IPCSUM See acenic, 3c59x, ...

I missed that, thanks a lot Stephen.