Skip to contentSkip to conversation

Checksumming problem in pv_ops dom0 kernel / netback

DISCUSSION S.H. Verbrugge 6 participants 12 messages Mar 17, 2010 – May 22, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

I seem to be having some troubles regarding the latest 2.6.31.6 and 2.6.32.9 Xen dom0 pv_ops trees.

Our platform:

-Xen 3.4.3-rc3 (also tried 3.4.2 on 2.6.31.6 pv_ops dom0)
-2.6.32.9 pv_ops dom0 kernel, perhaps a week old checkout from xen/stable git (can provide changeset if requested). -100+ domU's, all PV.

Ever since we switched to a pv_ops dom0 kernel (we were using 2.6.26 xenkernel from Debian repo before, with Xen 3.2), we started to have some problems when attempting to route packets on a domU.

The following message appears in dmesg on the dom0:

"Attempting to checksum a non-TCP/UDP packet, dropping a protocol 1 packet"

We can actually sniff both the virtual interface on the dom0 (nothing ever leaves the domU) and
we do see the ICMP echo requests inside the domU. The reply, however, never gets to the destination or outside the domU for that matter.

It seems that for some reason, as soon as the packet leaves the domU, the dom0 kernel drops the packet, as shown in the dmesg log.

Some background info:

We're using normal virtual interfaces, on a named bridge, br-internet. This bridge contains the hardware interface 'eth0'. This is a tg3 interface, we already tried turning off both RX and TX checksumming for this interface. Setting �'ethtool tx off' in the domU itself, doesn't help, either.

The different interfaces are vlan'ed through a Cisco 2927 switch.

Since this problem did not occur in xenkernels before, it is most likely related to a netback patch in pv_ops dom0. Perhaps somebody could provide me with some more info, or insights.

Signature · 3 lines
 /\/\  Hostingvereniging Soleus              |  Community-driven
< ** > http://soleus.nu                      |  Virtual Private Servers
 \/\/  Sen (IEF) Verbrugge (CT ProLead)      |  & more ...
#1 lore raw

Am 17.03.2010 13:34, schrieb S.H. Verbrugge:

Hello,

Quoted 7 lines

Ever since we switched to a pv_ops dom0 kernel (we were using 2.6.26 xenkernel from Debian repo before, with Xen 3.2), we started to have some problems when attempting to route packets on a domU.

The following message appears in dmesg on the dom0:

"Attempting to checksum a non-TCP/UDP packet, dropping a protocol 1 packet"

I know one how has same problem.
I've a similar Problem.

I can ping from routing DomU and Dom0 to Internet, but no one else can.

See also:
Post "2.6.31.6 pv_ops and routing DomU" from 10/03/09 on Xen-Devel

Regards,
Stefan Kuhne

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 14 lines · Stefan Kuhne

Am 17.03.2010 13:34, schrieb S.H. Verbrugge:

Hello,

Quoted 7 lines

Ever since we switched to a pv_ops dom0 kernel (we were using 2.6.26 xenkernel from Debian repo before, with Xen 3.2), we started to have some problems when attempting to route packets on a domU.

The following message appears in dmesg on the dom0:

"Attempting to checksum a non-TCP/UDP packet, dropping a protocol 1 packet"

I know one how has same problem.
I've a similar Problem.

Quoted 9 lines

I can ping from routing DomU and Dom0 to Internet, but no one else can.

See also:
Post "2.6.31.6 pv_ops and routing DomU" from 10/03/09 on Xen-Devel

Regards,
Stefan Kuhne

Yeah, I've seen that. It does not give that much information however.

More specifically, I've tested with two dom0 pv_ops kernels now, and since it's still reproducable on the latest xen/stable platform, I'm guessing it either has to do with vlan'ing or the tg3 driver , in combination with netback.

I was hoping some Xen developers could shed some light on this.
I already conversed with Jeremy about this, and he pointed me to this mailing list.

Signature · 3 lines
 /\/\  Hostingvereniging Soleus              |  Community-driven
< ** > http://soleus.nu                      |  Virtual Private Servers
 \/\/  Sen (IEF) Verbrugge (CT ProLead)      |  & more ...
#3 lore raw
Quoted 4 lines

Yeah, I've seen that. It does not give that much information however.

More specifically, I've tested with two dom0 pv_ops kernels now, and

since

Quoted 2 lines

it's still
reproducable on the latest xen/stable platform, I'm guessing it either

has to

Quoted 5 lines

do with vlan'ing or
the tg3 driver , in combination with netback.

I was hoping some Xen developers could shed some light on this. I already conversed with Jeremy about this, and he pointed me to this

mailing

Quoted 2 lines

list.

This may not be relavant, but I have seen problems with the following combination:

br0:
eth0
<netback devices>

br1:
eth0.2
<netback devices>

Some (most?) network hardware cannot provide checksum/large send offload functions for packets that use vlan tagging, but Linux doesn't quite understand that and gets confused, so when such a packet comes off of netback and is sent to eth0.2, the LSO/checksum function should be performed in software but isn't.

I haven't yet figured out of the problem is that the driver is incorrectly reporting that offload is supported on the vlan device or if the rest of Linux isn't taking the appropriate action...

James

#4 lore raw

Am 18.03.2010 00:25, schrieb James Harper:
Hello,

Quoted 11 lines

This may not be relavant, but I have seen problems with the following combination:

br0:
eth0
<netback devices>

br1:
eth0.2
<netback devices>

Quoted 6 lines

Some (most?) network hardware cannot provide checksum/large send offload functions for packets that use vlan tagging, but Linux doesn't quite understand that and gets confused, so when such a packet comes off of netback and is sent to eth0.2, the LSO/checksum function should be performed in software but isn't.

I've no VLAN running.
But i've only a similar problem.

Regards,
Stefan Kuhne

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw
In reply to James Harper
Quoted 34 lines · James Harper
Quoted 4 lines

Yeah, I've seen that. It does not give that much information however.

More specifically, I've tested with two dom0 pv_ops kernels now, and

since

Quoted 2 lines

it's still
reproducable on the latest xen/stable platform, I'm guessing it either

has to

Quoted 5 lines

do with vlan'ing or
the tg3 driver , in combination with netback.

I was hoping some Xen developers could shed some light on this. I already conversed with Jeremy about this, and he pointed me to this

mailing

Quoted 2 lines

list.

This may not be relavant, but I have seen problems with the following combination:

br0:
eth0
<netback devices>

br1:
eth0.2
<netback devices>

Some (most?) network hardware cannot provide checksum/large send offload functions for packets that use vlan tagging, but Linux doesn't quite understand that and gets confused, so when such a packet comes off of netback and is sent to eth0.2, the LSO/checksum function should be performed in software but isn't.

Quoted 3 lines

I haven't yet figured out of the problem is that the driver is incorrectly reporting that offload is supported on the vlan device or if the rest of Linux isn't taking the appropriate action...

Hmm, just to set the record straight, there's vlan'ing on the switch (containing several ports in a single physical network), but no tagging as far as I know.

However, I've read some previous problems using checksum offloading in the TG3 driver. Perhaps the two are related (netback / tg3 checksums), but I have no way of determining that.

Isn't there some way of patching the netback driver, so it does not support checksumming? Maybe I'm way off base here..

Signature · 3 lines
 /\/\  Hostingvereniging Soleus              |  Community-driven
< ** > http://soleus.nu                      |  Virtual Private Servers
 \/\/  Sen (IEF) Verbrugge (CT ProLead)      |  & more ...
#6 lore raw
Quoted 3 lines

Isn't there some way of patching the netback driver, so it does not

support

Quoted 3 lines

checksumming?
Maybe I'm way off base here..

Yes, use ethtool on the DomU interface, the bridge, and the Dom0 physical interface.

James

#7 lore raw
Quoted 4 lines · James Harper
Quoted 3 lines

Isn't there some way of patching the netback driver, so it does not

support

Quoted 8 lines
Quoted 3 lines

checksumming?
Maybe I'm way off base here..

Yes, use ethtool on the DomU interface, the bridge, and the Dom0 physical interface.

James

Yeah, I already tried that.

I did that in the domU on eth0 and any other interfaces, as well as the dom0 phys. intf, the bridge and the virtual vif for the domU.

No luck, unfortunately.

Signature · 3 lines
 /\/\  Hostingvereniging Soleus              |  Community-driven
< ** > http://soleus.nu                      |  Virtual Private Servers
 \/\/  Sen (IEF) Verbrugge (CT ProLead)      |  & more ...
#8 lore raw
In reply to S.H. Verbrugge
Quoted 1 line · S.H. Verbrugge

Ever since we switched to a pv_ops dom0 kernel (we were using 2.6.26 xenkernel from Debian repo before, with Xen 3.2), we started to have some problems when attempting to route packets on a domU.

I'm having the same problem. All TCP packets that are forwarded
through a domU are somehow getting a static checksum (0x9e85) just as they're being put out on the wire. ICMP is dropped by the dom0, as you describe, with the "Attempting to checksum a non UDP/TCP packet" message in dmesg. More detail about my situation is in my post to xen-users, here:

http://lists.xensource.com/archives/html/xen-users/2010-03/msg00846.html

It doesn't include a solution, though.

Quoted 1 line

This is a tg3 interface

I'm also running the tg3 ethernet driver, which may be of
significance.

Signature · 1 line
Scott Garron
#9 lore raw
Quoted 11 lines · Scott Garron
Quoted 3 lines · S.H. Verbrugge

Ever since we switched to a pv_ops dom0 kernel (we were using 2.6.26 xenkernel from Debian repo before, with Xen 3.2), we started to have some problems when attempting to route packets on a domU.

I'm having the same problem. All TCP packets that are forwarded
through a domU are somehow getting a static checksum (0x9e85) just as they're being put out on the wire. ICMP is dropped by the dom0, as you describe, with the "Attempting to checksum a non UDP/TCP packet" message in dmesg. More detail about my situation is in my post to xen-users, here:

Quoted 9 lines

http://lists.xensource.com/archives/html/xen-users/2010-03/msg00846.html

It doesn't include a solution, though.

Quoted 1 line

This is a tg3 interface

I'm also running the tg3 ethernet driver, which may be of
significance.

I CCd some else having the same problem.. did you guys ever resolve this problem?

For him the problem got solved when he replaced the pvops _domU_ kernel with 2.6.18.8.. (Still running pvops in dom0).

-- Pasi

#10 lore raw
In reply to Scott Garron
Quoted 11 lines · Scott Garron
Quoted 3 lines · S.H. Verbrugge

Ever since we switched to a pv_ops dom0 kernel (we were using 2.6.26 xenkernel from Debian repo before, with Xen 3.2), we started to have some problems when attempting to route packets on a domU.

I'm having the same problem. All TCP packets that are forwarded
through a domU are somehow getting a static checksum (0x9e85) just as they're being put out on the wire. ICMP is dropped by the dom0, as you describe, with the "Attempting to checksum a non UDP/TCP packet" message in dmesg. More detail about my situation is in my post to xen-users, here:

Quoted 8 lines

http://lists.xensource.com/archives/html/xen-users/2010-03/msg00846.html

It doesn't include a solution, though.

Quoted 1 line

This is a tg3 interface

I'm also running the tg3 ethernet driver, which may be of
significance.

According to the driver source some tg3 chipsets are known to have broken checksumming hardware, in particular 5700 B0 silicon. The workaround seems to have been present in the driver forever though so that may be a red-herring.

Ian.

#11 lore raw
Quoted 18 lines · Ian Campbell
Quoted 17 lines · Scott Garron
Quoted 3 lines · S.H. Verbrugge

Ever since we switched to a pv_ops dom0 kernel (we were using 2.6.26 xenkernel from Debian repo before, with Xen 3.2), we started to have some problems when attempting to route packets on a domU.

I'm having the same problem. All TCP packets that are forwarded
through a domU are somehow getting a static checksum (0x9e85) just as they're being put out on the wire. ICMP is dropped by the dom0, as you describe, with the "Attempting to checksum a non UDP/TCP packet" message in dmesg. More detail about my situation is in my post to xen-users, here:

http://lists.xensource.com/archives/html/xen-users/2010-03/msg00846.html

It doesn't include a solution, though.

Quoted 1 line

This is a tg3 interface

Quoted 8 lines
Quoted 2 lines

I'm also running the tg3 ethernet driver, which may be of
significance.

According to the driver source some tg3 chipsets are known to have broken checksumming hardware, in particular 5700 B0 silicon. The workaround seems to have been present in the driver forever though so that may be a red-herring.

Recently there was a fix for a bug in netback.. so you might want to update to latest pvops dom0 kernel from xen/stable-2.6.32.x branch and see if that fixes the problem.

-- Pasi