DomU routed traffic disappearing in vif.]
Quoted 42 lines · Matej Zary
Quoted 23 lines
Hello,
XEN 4.0 with pvops 2.6.32.11 Dom0 kernel. Configured PV DomU with the same pvops Xen kernel on top of it.
Physical computers has 3 NICs - every NIC in own bridge (first one created by Xen).
eth0 8000.00138fe78f1b no peth0
mst1 8000.0040f4b5286e no eth1vif5.0 mst2 8000.000e2e68db10 no eth2 vif5.1Attached 2 virtual NICs to the PV DomU and bridges - I want to use that DomU as router between that two bridges (enabled
ip_forwardingin DomU) - mst1 and mst2.I can ping from netwok on eth1 the vif5.0 interface.
I can ping from network on eth2 the vif5.1 interface.
I can see with tcpdump, that the DomU routes the traffic between its eth0 and eth1 interfaces (tcpdump inside the domu).
I can see with tcpdump the incoming traffic in mst1 and vif5.0.
But there's nothing on the vif5.1and mst2 bridge - even when tcpdump on the eth1 in that PV DomU shows the routed traffic ("works" the same in opposite direction too).Looks like all traffic routed by that PV DomU cant't get from DomU eth interface to the vif interface. Ping from the DomU works (non routed traffic), but no routed traffic can get thu this Dom0.
Quoted 7 lines
IPltables flushed with -F
Thanks for every idea, i'm clueless right now. :(
Regars
Matej
Well, it's the dreaded cksum incorrect error (and Real(BAD)tek PCI NICs). Tried to set off the tx check-summing on all interfaces (eth interfaces in DomU, eth and bridge interfaces in Dom0) with ethtool -K iface tx off, and it changed the situation a little bit - now are these packets with incorrect checksum visible on the outgoing eth2 physical NIC in the mst2 bridge and also on physical host in the physical network connected to mst2 bridge via the eth2 NIC. Final result ist still the same, physical hosts routed via the DomU can't communicate (now they are getting packets with wrong checksum at least :D).
Quoted 3 lines
Any chances that newer
pv_opskernel that the 2.6.32.11 (git stable) version will solve this issue? Or I have to switch to the 2.6.18 and the forwardported oldstyle kernels?
Ian had a patch that he backported from XCP that might fix this, not sure thought. Jeremy is trying it out but he ran in some other issues (pvgrub messing up UDP checksums). Stay tuned.
Quoted 2 lines · Konrad Rzeszutek Wilk
Ian had a patch that he backported from XCP that might fix this, not sure thought.
If possible can someone who is seeing this issue try this patch:
---
xen/netback: correctly setup skb->ip_summed on receive
In 2.6.18 CHECKSUM_PARTIAL and CHECKSUM_UNNECESSARY were both synonyms for CHECKSUM_HW. This is no longer the case and we need to select the correct one.
data_validated csum_blank -> ip_summed
0 0 CHECKSUM_NONE 0 1 CHECKSUM_PARTIAL 1 0 CHECKSUM_UNNECESSARY 1 1 CHECKSUM_PARTIAL
drivers/xen/netback/netback.c +3 -7
@@ -1384,14 +1384,10 @@netif_idx_release (pending_idx); } -/* -* Old frontends do not assert data_validated but we -* can infer it from csum_blank so test both flags. -*/ -if (txp->flags & (NETTXF_data_validated|NETTXF_csum_blank)) +if (txp->flags & NETTXF_csum_blank) skb->ip_summed =CHECKSUM_PARTIAL ; -else - skb->ip_summed =CHECKSUM_NONE ; +else if (txp->flags & NETTXF_data_validated) + skb->ip_summed =CHECKSUM_UNNECESSARY ;netbk_fill_frags (skb);
[email protected] wrote on 05/10/2010 11:32:33 AM:
Quoted 7 lines
Ian Campbell <[email protected]>
Sent by: [email protected]05/10/2010 11:32 AM
To
Quoted 7 lines
Konrad Rzeszutek Wilk <[email protected]>
cc
"[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]"
Quoted 12 lines
Subject
Re: [[email protected]: [Xen-devel] Re: Re: [Xen-users] DomU routed traffic disappearing in vif.]
Quoted 2 lines · Konrad Rzeszutek Wilk
Ian had a patch that he backported from XCP that might fix this, not sure thought.
If possible can someone who is seeing this issue try this patch:
I'll go patch my tree right now.
---
Michael D Labriola
Electric Boat
[email protected]
401-848-8871 (desk)
401-848-8513 (lab)
401-316-9844 (cell)
[email protected] wrote on 05/10/2010 01:17:26 PM:
Quoted 46 lines
Michael D Labriola <[email protected]>
Sent by: [email protected]05/10/2010 01:17 PM
To
Ian Campbell <[email protected]>
cc
"[email protected]" <[email protected]>, "[email protected]" <[email protected]>, xen-users- [email protected], Konrad Rzeszutek Wilk <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <xen- [email protected]>
Subject
Re: [[email protected]: [Xen-devel] Re: Re: [Xen-users] DomU routed traffic disappearing in vif.]
[email protected] wrote on 05/10/2010 11:32:33 AM:
Quoted 7 lines
Ian Campbell <[email protected]>
Sent by: [email protected]05/10/2010 11:32 AM
To
Quoted 7 lines
Konrad Rzeszutek Wilk <[email protected]>
cc
"[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]"
Quoted 6 lines
Subject
Re: [[email protected]: [Xen-devel] Re: Re: [Xen-users] DomU routed traffic disappearing in vif.]
Quoted 8 lines
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 2 lines
Ian had a patch that he backported from XCP that might fix this, not sure thought.
If possible can someone who is seeing this issue try this patch:
I'll go patch my tree right now.
Ok, that seems to fix my vanishing routed domU VLAN traffic issue. :-)
I've got some other problems that I was hoping would also get fixed... On just one of my boxes, only in Xen, my kernel Oopses when I receive multicast traffic. Also, on this same box, I have a couple different X crashes that only happen when XDMCP'd into a domU hosted by that dom0 (so logged in over the eth0 bridge). Guess I'll start new threads for those with more details, unless anyone happens to have had similar problems and fixed it.
---
Michael D Labriola
Electric Boat
[email protected]
401-848-8871 (desk)
401-848-8513 (lab)
401-316-9844 (cell)
Quoted 34 lines · Ian Campbell
Quoted 2 lines · Konrad Rzeszutek Wilk
Ian had a patch that he backported from XCP that might fix this, not sure thought.
If possible can someone who is seeing this issue try this patch:
---
xen/netback: correctly setup
skb->ip_summedon receiveIn 2.6.18
CHECKSUM_PARTIALandCHECKSUM_UNNECESSARYwere both synonyms forCHECKSUM_HW. This is no longer the case and we need to select the correct one.
data_validatedcsum_blank->ip_summed0 0 CHECKSUM_NONE 0 1 CHECKSUM_PARTIAL 1 0 CHECKSUM_UNNECESSARY 1 1 CHECKSUM_PARTIALSigned-off-by Ian Campbell <[email protected]>diff -r
3a1424756f50drivers/xen/netback/netback.cdrivers/xen/netback/netback.c +0
-4@@ -1384,14 +1384,10 @@netif_idx_release (pending_idx); } -/* -* Old frontends do not assert data_validated but we -* can infer it from csum_blank so test both flags. -*/
drivers/xen/netback/netback.c line 1393
Quoted 10 lines
drivers/xen/netback/netback.c +3
-3-if (txp->flags & (NETTXF_data_validated|NETTXF_csum_blank)) +if (txp->flags & NETTXF_csum_blank) skb->ip_summed =CHECKSUM_PARTIAL ; -else - skb->ip_summed =CHECKSUM_NONE ; +else if (txp->flags & NETTXF_data_validated) + skb->ip_summed =CHECKSUM_UNNECESSARY ;netbk_fill_frags (skb);
Works for me!
The DomU router now works like charm. Thanks! :) Also the problem with ICMP traffic disappeared (non UDP/TCP packet dropped in syslog).
Patched the 2.6.32.11 kernel, performance wise, the 2.6.18.8 had bit better some numbers (~ 60 Mbit difference with Iperf), will have some more numbers later.
Regards
Matej
_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users
Quoted 41 lines · Matej Zary
Quoted 40 lines · Ian Campbell
Quoted 2 lines · Konrad Rzeszutek Wilk
Ian had a patch that he backported from XCP that might fix this, not sure thought.
If possible can someone who is seeing this issue try this patch:
---
xen/netback: correctly setup
skb->ip_summedon receiveIn 2.6.18
CHECKSUM_PARTIALandCHECKSUM_UNNECESSARYwere both synonyms forCHECKSUM_HW. This is no longer the case and we need to select the correct one.
data_validatedcsum_blank->ip_summed0 0 CHECKSUM_NONE 0 1 CHECKSUM_PARTIAL 1 0 CHECKSUM_UNNECESSARY 1 1 CHECKSUM_PARTIALSigned-off-by Ian Campbell <[email protected]>diff -r
3a1424756f50drivers/xen/netback/netback.cdrivers/xen/netback/netback.c Fri May 07 14:40:31 2010 +0100 renamed from drivers/xen/netback/netback.c Fri May 07 14:38:37 2010 +0100 +3
-7@@ -1384,14 +1384,10 @@ netif_idx_release(pending_idx); } - /* - * Old frontends do not assert data_validated but we - * can infer it from csum_blank so test both flags. - */ - if (txp->flags & (NETTXF_data_validated|NETTXF_csum_blank)) + if (txp->flags & NETTXF_csum_blank) skb->ip_summed = CHECKSUM_PARTIAL; - else - skb->ip_summed = CHECKSUM_NONE; + else if (txp->flags & NETTXF_data_validated) + skb->ip_summed = CHECKSUM_UNNECESSARY;
Quoted 5 lines
drivers/xen/netback/netback.c Fri May 07 14:40:31 2010 +0100 line 1393
Quoted 4 lines
drivers/xen/netback/netback.c Fri May 07 14:40:31 2010 +0100 renamed from drivers/xen/netback/netback.c Fri May 07 14:38:37 2010 +0100 +0
-0netbk_fill_frags(skb);Works for me!
Thanks everyone who tested.
Jeremy/Konrad,
The following changes since commit 7ec9d1e805338fd18bbce73e8c72e4d09da8f2d5:
Ian Campbell (1):
xen/netback: correctly setup skb->ip_summed on receive
are available in the git repository at:
git://xenbits.xensource.com/people/ianc/linux-2.6.git for-jeremy/netback
Quoted 1 line
Works for me!
Awesome.
Quoted 7 lines
The DomU router now works like charm. Thanks! :) Also the problem with ICMP traffic disappeared (non UDP/TCP packet dropped in syslog).
Patched the 2.6.32.11 kernel, performance wise, the 2.6.18.8 had bit better some numbers (~ 60 Mbit difference with Iperf), will have some more numbers later.
Somebody pointed out that when they disabled most of the debug options (don't know which ones), the performance was on par with 2.6.18.