Hi, I am running openvswitch-2.5.0 with dpdk-2.2.0 on DUT. I have followed the instructions in INSTALL.DPDK.md.
Also, I have installed below flow on DUT to simply switch packets coming on Port-1 and send them back out from Port-2: ----------------- ovs-ofctl del-flows br0 ovs-ofctl add-flow br0 in_port=1,dl_type=0x800,nw_proto=6,nw_src=192.168.0.1,nw_dst=192.168.1.1,tcp_src=1234,tcp_dst=5678,action=output:2 ------------------ Dumping the flow with ofctl shows below: ------------------- #ovs-ofctl dump-flows br0 NXST_FLOW reply (xid=0x4): cookie=0x0, duration=16.514s, table=0, n_packets=0, n_bytes=0, idle_age=16, tcp,in_port=1,nw_src=192.168.0.1,nw_dst=192.168.1.1,tp_src=1234,tp_dst=5678 actions=output:2 ------------------- DUT and Peer are connected in below manner:- Port-0 of DUT is connected back-to-back with Port-0 of Peer Port-1 of DUT is connected back-to-back with Port-1 of Peer. >From Peer, I am sending TCP packets from Port-0 towards DUT with below details: IP src=192.168.0.1, IP dst=192.168.1.1 TCP src-port=1234, TCP dst-port=5678 After starting traffic from Peer, dumping the flow for dpctl on DUT shows below: -------------------- # ovs-appctl dpctl/dump-flows flow-dump from pmd on cpu core: 0 recirc_id(0),in_port(2),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.1.1,proto=6,frag=no),tcp(src=1234,dst=5678), packets:124085983, bytes:7445158980, used:0.001s, flags:., actions:3 -------------------- As can be seen above in dpctl output, in_port is 2 - although traffic is received on Port-1. And the action values is 3 instead of value 2 - since OVS is sending packets back out via Port-2. dump-flows from ofctl shows correct values for in_port and action output port. ----------------- # ovs-ofctl dump-flows br0 NXST_FLOW reply (xid=0x4): cookie=0x0, duration=166.104s, table=0, n_packets=132363488, n_bytes=7941809280, idle_age=0, tcp,in_port=1,nw_src=192.168.0.1,nw_dst=192.168.1.1,tp_src=1234,tp_dst=5678 actions=output:2 ------------------- Any idea why this difference in dump-flows output between dpctl and ofctl with regards to in_port and actions-output-port ? Or, is this expected ? I am new to OVS so, pardon my ignorance. Thanks, Kumar.
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss