Skip to contentSkip to conversation

non-OVS based vxlan config broken on 3.19-rc ?!

DISCUSSION Or Gerlitz 4 participants 6 messages Jan 14, 2015 – Jan 15, 2015

Subsystems (2)
lore
Share & tools
lore

Or Gerlitz

author
#0 lore raw

Guys, just realized that non-OVS based vxlan config is broken with 3.19-rc... I see that it works for me on 3.18.2 and breaks on 3.19-rc3 (Linus tree). Tested over mlx4 (both offloaded and non offloaded modes) and igb, see below the simplest form I can see it breaks on 3.19-rcand works on 3.18

Looking on tcpdump and stats, the arp reply arrives to the 3.19-rc host NIC driver but is dropped along the stack beforehanded to the vxlan driver, not sure where and why...

Or.

Quoted 65 lines
$ tcpdump -nni vxlan42 -e
16:48:40.961852 8e:c2:13:4f:97:6e > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 192.168.92.18 tell 192.168.92.17, length 28
16:48:41.961864 8e:c2:13:4f:97:6e > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 192.168.92.18 tell 192.168.92.17, length 28
16:48:42.979948 8e:c2:13:4f:97:6e > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 192.168.92.18 tell 192.168.92.17, length 28
$ tcpdump -nni eth3 -e
16:48:46.993870 00:02:c9:e9:bf:32 > 01:00:5e:00:00:2a, ethertype IPv4 (0x0800), length 92: 192.168.31.17.33434 > 239.0.0.42.4789: UDP, length 50
16:48:46.993905 f4:52:14:01:da:82 > 00:02:c9:e9:bf:32, ethertype IPv4 (0x0800), length 92: 192.168.31.18.39155 > 192.168.31.17.4789: UDP, length 50
16:48:47.993855 00:02:c9:e9:bf:32 > 01:00:5e:00:00:2a, ethertype IPv4 (0x0800), length 92: 192.168.31.17.33434 > 239.0.0.42.4789: UDP, length 50
16:48:47.993881 f4:52:14:01:da:82 > 00:02:c9:e9:bf:32, ethertype IPv4 (0x0800), length 92: 192.168.31.18.39155 > 192.168.31.17.4789: UDP, length 50
$ nstat
Wed Jan 14 16:54:04 2015

#kernel

IpInReceives                    2                  0.0
IpInDelivers                    2                  0.0
IpOutRequests                   4                  0.0
IcmpOutErrors                   2                  0.0
IcmpOutEchoReps                 2                  0.0
IcmpMsgOutType8                 2                  0.0
TcpInSegs                       1                  0.0
TcpOutSegs                      1                  0.0
UdpInDatagrams                  1                  0.0
TcpExtTCPPureAcks               1                  0.0
TcpExtTCPOrigDataSent           1                  0.0
IpExtOutMcastPkts               1                  0.0
IpExtInOctets                   124                0.0
IpExtOutOctets                  670                0.0
IpExtOutMcastOctets             78                 0.0
IpExtInNoECTPkts                2                  0.0

Every 1.0s: netstat -s -w
Wed Jan 14 16:54:56 2015

Ip:

    1077125083 total packets received
    182 with invalid addresses
    0 forwarded
    0 incoming packets discarded
    1077124621 incoming packets delivered
    545614475 requests sent out

Icmp:
67936 ICMP messages received
60 input ICMP message failed.
ICMP input histogram:
destination unreachable: 3319
echo requests: 528
echo replies: 64089
71890 ICMP messages sent
0 ICMP messages failed
ICMP output histogram:
destination unreachable: 3542
echo request: 67821
echo replies: 527
IcmpMsg:

        InType0: 64089
        InType3: 3319
        InType8: 528
        OutType0: 527
        OutType3: 3542
        OutType8: 67821
UdpLite:
IpExt:
    InMcastPkts: 827
Quoted 8 lines
    OutMcastPkts: 2993
    InBcastPkts: 1424
    InOctets: 2102729994314
    OutOctets: 35397269627
    InMcastOctets: 31854
    OutMcastOctets: 237154
    InBcastOctets: 453473
    InNoECTPkts: 1440876685
# host A with IP address 192.168.31.17

IP=ip

# mlx4
ETH=eth0

$IP link del vxlan42
$IP link add vxlan42 type vxlan id 42 group 239.0.0.42 ttl 10 dstport 4789 dev $ETH $IP link set vxlan42 up
ifconfig vxlan42 192.168.92.17/24
ifconfig vxlan42 mtu 1450

# plain ping
ping 192.168.31.18 -c 2
# encaped  ping <-- BREAKS
ping 192.168.92.18 -c 2
# host B with IP address 192.168.31.18

IP=ip

# mlx4
ETH=eth0

$IP link del vxlan42
$IP link add vxlan42 type vxlan id 42 group 239.0.0.42 ttl 10 dstport 4789 dev $ETH $IP link set vxlan42 up
ifconfig vxlan42 192.168.92.18/24
ifconfig vxlan42 mtu 1450

ping 192.168.31.17 -c 2
ping 192.168.92.17 -c 2

#1 lore raw
Quoted 9 lines · Or Gerlitz

Guys, just realized that non-OVS based vxlan config is broken with 3.19-rc... I see that it works for me on 3.18.2 and breaks on 3.19-rc3 (Linus tree). Tested over mlx4 (both offloaded and non offloaded modes) and igb, see below the simplest form I can see it breaks on 3.19-rcand works on 3.18

Looking on tcpdump and stats, the arp reply arrives to the 3.19-rc host NIC driver but is dropped along the stack beforehanded to the vxlan driver, not sure where and why...

As additional data point: I tested the VXLAN-GBP with iproute2 based tunnels on net-next and that works fine. Driver used was a e1000 in KVM.

#2 lore raw
Quoted 7 lines · thomas Graf
Quoted 6 lines · Or Gerlitz

Guys, just realized that non-OVS based vxlan config is broken with 3.19-rc... I see that it works for me on 3.18.2 and breaks on 3.19-rc3 (Linus tree). Tested over mlx4 (both offloaded and non offloaded modes) and igb, see below the simplest form I can see it breaks on 3.19-rcand works on 3.18

Quoted 6 lines
Quoted 3 lines

Looking on tcpdump and stats, the arp reply arrives to the 3.19-rc host NIC driver but is dropped along the stack beforehanded to the vxlan driver, not sure where and why...

As additional data point: I tested the VXLAN-GBP with iproute2 based tunnels on net-next and that works fine. Driver used was a e1000 in KVM.

mm, so net-next.git (3.20 candidate code) and 3.18 works, but @ least for me 3.19-rc doesn't - could you check if net.git works for you on iproute2 based tunnels in that env? just vxlan is enough.

#3 lore raw
Quoted 12 lines · Or Gerlitz
Quoted 11 lines · thomas Graf
Quoted 9 lines · Or Gerlitz

Guys, just realized that non-OVS based vxlan config is broken with 3.19-rc... I see that it works for me on 3.18.2 and breaks on 3.19-rc3 (Linus tree). Tested over mlx4 (both offloaded and non offloaded modes) and igb, see below the simplest form I can see it breaks on 3.19-rcand works on 3.18

Looking on tcpdump and stats, the arp reply arrives to the 3.19-rc host NIC driver but is dropped along the stack beforehanded to the vxlan driver, not sure where and why...

Quoted 8 lines
Quoted 2 lines

As additional data point: I tested the VXLAN-GBP with iproute2 based tunnels on net-next and that works fine. Driver used was a e1000 in KVM.

mm, so net-next.git (3.20 candidate code) and 3.18 works, but @ least for me 3.19-rc doesn't - could you check if net.git works for you on iproute2 based tunnels in that env? just vxlan is enough.

Hi,

Just tested your commands on two virtual machines running virtio (same host), Linus' commit fb005c47f7b72edac50342b6af490af09854381b (which is 3.19.0-rc4+) and it worked just fine for me. That is, ping went through both ways without issues.

I'll still try with net.git..

Did you try dropwatch? If you add a neigh entry for the remote peer and ping flood it, you may spot it on dropwatch.

Marcelo

author
#4 lore raw
Quoted 1 line · Marcelo Ricardo Leitner

Just tested your commands on two virtual machines running virtio (same host), Linus' commit fb005c47f7b72edac50342b6af490af09854381b (which is 3.19.0-rc4+) and it worked just fine for me. That is, ping went through both ways without issues. I'll still try with net.git..

thanks for looking on that.

Quoted 1 line

Did you try dropwatch? If you add a neigh entry for the remote peer and ping flood it, you may spot it on dropwatch.

Will try it out, for the time being I managed to have an environment to test that fix I was working on recently...

Or.

#5 lore raw
Quoted 7 lines · Or Gerlitz
Quoted 4 lines · Marcelo Ricardo Leitner

Just tested your commands on two virtual machines running virtio (same host), Linus' commit fb005c47f7b72edac50342b6af490af09854381b (which is 3.19.0-rc4+) and it worked just fine for me. That is, ping went through both ways without issues. I'll still try with net.git..

thanks for looking on that.

np. Test based on 4ccce02eb31b847dd6bf8486f037ba1db39403c5 (net.git from a few hours..) also worked.

Quoted 5 lines
Quoted 2 lines

Did you try dropwatch? If you add a neigh entry for the remote peer and ping flood it, you may spot it on dropwatch.

Will try it out, for the time being I managed to have an environment to test that fix I was working on recently...

Cool

Marcelo