[ovs-discuss] OVS 2.4 with DPDK 2.0
A, Sarada (HP Networking)
sarada.a at hpe.com
Fri Nov 20 05:14:10 UTC 2015
Thanks Cascadro. I could successfully add the dpdk0 port to the bridge. Need further help .
In my case, eth1 interface is in 192.11.0.0/16 subnet & I configured the eth1 as dpdk interface
$DPDK_DIR/tools/dpdk_nic_bind.py --force --bind=igb_uio eth1
After this, I added the dpdk port with the command provided & I could see that the port successfully got added.
root at ubuntu1404:~# ovs-vsctl show
b8eed221-6710-4b51-a852-a47039dcf316
Bridge "br0"
Port "br0"
Interface "br0"
type: internal
Port "dpdk0"
Interface "dpdk0"
type: dpdk
root at ubuntu1404:~# ovs-ofctl show br0
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000005056a206fd
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
4(dpdk0): addr:00:50:56:a2:06:fd
config: 0
state: 0
current: 10GB-FD
supported: 100MB-FD 1GB-HD 1GB-FD AUTO_NEG AUTO_PAUSE
speed: 10000 Mbps now, 1000 Mbps max
LOCAL(br0): addr:00:50:56:a2:06:fd
config: 0
state: 0
current: 10MB-FD COPPER
speed: 10 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
I have configured the ip address in the same subnet to br0 & made it up. But I cant reach the other devices which are part of 192.11.0.0/16 subnet. Whenever I tried to ping any device in this subnet, the default NORMAL flow is hit but the ping fails for the device.
root at ubuntu1404:~# ifconfig br0
br0 Link encap:Ethernet HWaddr 00:50:56:a2:06:fd
inet addr:192.11.7.3 Bcast:100.21.255.255 Mask:255.255.0.0
inet6 addr: fe80::250:56ff:fea2:6fd/64 Scope:Link
UP BROADCAST RUNNING PROMISC MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:4122 (4.1 KB)
root at ubuntu1404:~# ovs-ofctl dump-flows br0
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=77525.109s, table=0, n_packets=0, n_bytes=0, idle_age=65534, hard_age=65534, in_port=4 actions=NORMAL
cookie=0x0, duration=251863.952s, table=0, n_packets=61, n_bytes=4500, idle_age=65534, hard_age=65534, priority=0 actions=NORMAL
root at ubuntu14
root at ubuntu1404:~# ping 192.11.7.4
PING 192.11.7.4 (192.11.7.4) 56(84) bytes of data.
^C
--- 192.11.7.4 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1008ms
Is there something wrong I am doing?
Thanks,
Sarada
-----Original Message-----
From: Thadeu Lima de Souza Cascardo [mailto:cascardo at redhat.com]
Sent: Wednesday, November 18, 2015 11:34 PM
To: A, Sarada (HP Networking)
Cc: discuss at openvswitch.org
Subject: Re: [ovs-discuss] OVS 2.4 with DPDK 2.0
On Tue, Nov 17, 2015 at 07:14:11AM +0000, A, Sarada (HP Networking) wrote:
> Hi All,
>
> I am running the OpenvSwitch 2.4 version with DPDK 2.0 on Ubuntu 14.04 Virtual machine. I could successfully build both Open vswitch 2.4 & DPDK 2.0, I am unable to figure out how to add the dpdk interface to the bridge.
>
> Here are the steps I have followed.
>
[...]
You didn't seem to have added any port to the bridge. Try the following command.
It is described at INSTALL.DPDK.md. Also, I guess you may need to restart ovs-vswitchd after you bind ports to igb_uio, vfio or other drivers DPDK supports.
ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk
Regards.
Cascardo.
>
> Kindly help me to identify the dpdk port & add the eth interface/dpdk port to the Bridge?
>
> Thanks,
> Sarada
More information about the discuss
mailing list