On 04.04.2017 11:29, Nadathur, Sundar wrote: >> -----Original Message----- >> From: Ilya Maximets [mailto:i.maxim...@samsung.com] >> Sent: Tuesday, April 4, 2017 12:07 AM >> To: ovs-dev@openvswitch.org; Nadathur, Sundar >> <sundar.nadat...@intel.com> >> Subject: [ovs-dev] Traffic fails in vhost user port >> >> Hi Sundar. > >>> The flows are configured as below: >>> # ovs-ofctl dump-flows br0 >>> NXST_FLOW reply (xid=0x4): >>> cookie=0x0, duration=2833.612s, table=0, n_packets=0, n_bytes=0, >>> idle_age=2833, in_port=1 actions=output:5 cookie=0x2, >>> duration=2819.820s, table=0, n_packets=0, n_bytes=0, idle_age=2819, >>> in_port=5 actions=output:1 >> >> I guess, your flow table configured in a wrong way. >> OpenFlow port of br0 is LOCAL, not 1. >> Try this: >> >> # ovs-ofctl del-flows br0 >> >> # ovs-ofctl add-flow br0 in_port=5,actions=output:LOCAL # ovs-ofctl add-flow >> br0 in_port=LOCAL,actions=output:5 > > Thank you, Ilya. I did as you suggested, but the ping traffic from br0 > (LOCAL) is dropped by the output port 5: > # ovs-ofctl dump-flows br0 > NXST_FLOW reply (xid=0x4): > cookie=0x0, duration=1922.876s, table=0, n_packets=0, n_bytes=0, > idle_age=1922, in_port=5 actions=LOCAL > cookie=0x0, duration=1915.458s, table=0, n_packets=6, n_bytes=252, > idle_age=116, in_port=LOCAL actions=output:5 > > # ovs-ofctl dump-ports br0 # <-- Drops in port 5 > OFPST_PORT reply (xid=0x2): 2 ports > port 5: rx pkts=?, bytes=0, drop=0, errs=0, frame=?, over=?, crc=? > tx pkts=?, bytes=0, drop=5, errs=?, coll=? > port LOCAL: rx pkts=43, bytes=2118, drop=0, errs=0, frame=0, over=0, crc=0 > tx pkts=0, bytes=0, drop=0, errs=0, coll=0 > > Wireshark shows that br0 sends out 3 ARP requests but there is no response. > >> or >> >> # ovs-ofctl add-flow br0 actions=NORMAL > I tried this too after doing del-flows. The LOCAL port's MAC is learnt, > wireshark still shows br0 sending out ARP requests with no response. > > BTW, 'ovs-vsctl list Interface' shows the vi1 (VM port, #5) is up (most > fields are blank): > _uuid : 30d1600a-ff7d-4bf5-9fdb-b0767af3611c > admin_state : up > . . . > link_speed : [] > link_state : up > . . . > mac_in_use : "00:00:00:00:00:00" > mtu : 1500 > mtu_request : [] > name : "vi1" > . . . > statistics : {"rx_1024_to_1518_packets"=0, > "rx_128_to_255_packets"=0, "rx_1523_to_max_packets"=0, > "rx_1_to_64_packets"=0, "rx_256_to_511_packets"=0, > "rx_512_to_1023_packets"=0, "rx_65_to_127_packets"=0, rx_bytes=0, > rx_dropped=0, rx_errors=0, tx_bytes=0, tx_dropped=8} > status : {} > type : dpdkvhostuser > > Is there any way to do the equivalent of a tcpdump or wireshark on a vhost > user port? > > Thanks, > Sundar > Blanc fields in 'list interface' is normal for vhostuser.
Looks like something wrong with VM. Please, provide the output of 'ip a' or 'ifconfig -a' from VM and full output of 'ovs-vsctl list Interface vi1'. Also, qemu cmdline or libvirt xml can be helpful. Best regards, Ilya Maximets. _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev