Re: [ovs-discuss] ovs-dpctl problem
Ben Pfaff writes: > On Mon, Nov 13, 2017 at 11:21:38AM -0500, Aaron Conole wrote: >> "焦利涛" <309569...@qq.com> writes: >> >> > Hi : >> > I have a problem that when i use the ovs-dpctl to add a flow into >> > datapath, it occurs "ovs-dpctl: >> > parsing flow key (Invalid argument)" >> > >> > example: >> >root@jlt:~# ovs-dpctl add-flow system@myDP >> > "in_port(1),eth_type(0x800),ipv4 >> > (src=172.31.110.4,dst=172.31.110.5)" 2 >> > ovs-dpctl: parsing flow key (Invalid argument) >> >> You may be able to use 'dmesg' to see which key is missing. > > I believe that this particular error comes from the userspace parser, > not the kernel. Seems you're correct. Even more, using the supplied command: 11:45:39 aconole {master} ~/git/ovs/lib$ sudo ovs-dpctl add-flow myDP "in_port(1),eth_type(0x800),ipv4(src=172.31.110.4,dst=172.31.110.5)" 2 11:45:57 aconole {master} ~/git/ovs/lib$ sudo ovs-dpctl dump-flows in_port(1),eth_type(0x0800),ipv4(src=172.31.110.4,dst=172.31.110.5), packets:0, bytes:0, used:never, actions:2 Maybe there's an issue with whatever OvS version is being used (although I don't know of any such issues). ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] ovs-dpctl problem
On Mon, Nov 13, 2017 at 11:21:38AM -0500, Aaron Conole wrote: > "焦利涛" <309569...@qq.com> writes: > > > Hi : > > I have a problem that when i use the ovs-dpctl to add a flow into > > datapath, it occurs "ovs-dpctl: > > parsing flow key (Invalid argument)" > > > > example: > >root@jlt:~# ovs-dpctl add-flow system@myDP > > "in_port(1),eth_type(0x800),ipv4 > > (src=172.31.110.4,dst=172.31.110.5)" 2 > > ovs-dpctl: parsing flow key (Invalid argument) > > You may be able to use 'dmesg' to see which key is missing. I believe that this particular error comes from the userspace parser, not the kernel. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] ovs-dpctl problem
"焦利涛" <309569...@qq.com> writes: > Hi : > I have a problem that when i use the ovs-dpctl to add a flow into > datapath, it occurs "ovs-dpctl: > parsing flow key (Invalid argument)" > > example: >root@jlt:~# ovs-dpctl add-flow system@myDP "in_port(1),eth_type(0x800),ipv4 > (src=172.31.110.4,dst=172.31.110.5)" 2 > ovs-dpctl: parsing flow key (Invalid argument) You may be able to use 'dmesg' to see which key is missing. See the talk by Joe Stringer: https://www.youtube.com/watch?v=8ieoUQI7X88 And the blogpost (shameless plug for myself): https://developers.redhat.com/blog/2017/04/06/direct-kernel-open-vswitch-flow-programming/ -Aaron ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] ovs-dpctl problem
On Fri, Nov 10, 2017 at 07:44:23PM +0800, 焦利涛 wrote: > Hi : > I have a problem that when i use the ovs-dpctl to add a flow into > datapath, it occurs "ovs-dpctl: parsing flow key (Invalid argument)" > > example: > root@jlt:~# ovs-dpctl add-flow system@myDP > "in_port(1),eth_type(0x800),ipv4(src=172.31.110.4,dst=172.31.110.5)" 2 > ovs-dpctl: parsing flow key (Invalid argument) The syntax understood by ovs-dpctl is very restrictive. I suggest looking at the output of "ovs-dpctl dump-flows", then imitating it carefully. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss