[ovs-dev] data path flow addition error in ovs 2.5

Prasannaa Vengatesan tsprasannaa83 at gmail.com
Mon Sep 18 08:21:58 UTC 2017


Hi,

I am using the following version of OVS (2.5.1) with datapath in kernel
mode.

root at localhost:~# ovs-vsctl --version
ovs-vsctl (Open vSwitch) 2.5.1


When I try to add a flow in the data path I get error.

root at localhost:~# ovs-appctl dpctl/add-flow ovs-system "in_port(2)" 3
ovs-vswitchd: updating flow table (Invalid argument)
ovs-appctl: ovs-vswitchd: server returned an error


root at localhost:~# ovs-dpctl add-flow ovs-system "in_port(2)" 3
2017-09-18T13:51:51Z|00001|dpif|WARN|system at ovs-system: failed to
put[create] (Invalid argument) in_port(2), actions:3
ovs-dpctl: updating flow table (Invalid argument)


The corresponding error logged in dmesg is
[420714.893276] openvswitch: netlink: Missing key (keys=8, expected=10)



root at localhost:~# ovs-dpctl show
system at ovs-system:
        lookups: hit:15 missed:9 lost:0
        flows: 0
        masks: hit:32 total:1 hit/pkt:1.33
        port 0: ovs-system (internal)
        port 1: ovs-sys-br (internal)
        port 2: veth01
        port 3: veth11

Can you please let me know if I am using correct command to add flows in
datapath.


Thanks,
Prasannaa.


More information about the dev mailing list