[ovs-dev] Why "ovs-appctl dpif/dump-flows br-int" can't show match fields I add?

Yang, Yi Y yi.y.yang at intel.com
Thu Mar 9 12:23:02 UTC 2017


Hi, all

I'm testing GTP-U header parsing by adding pure userspace support code, now I can "ovs-ofctl -Oopenflow13 add-flows" and "ovs-ofctl -Oopenflow13 dump-flows"

$ sudo ovs-ofctl -Oopenflow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=2930.079s, table=0, n_packets=4, n_bytes=432, udp,gtp_teid=1234 actions=drop
cookie=0x0, duration=3028.156s, table=0, n_packets=22, n_bytes=2376, priority=0 actions=NORMAL

I can see some packets matched and dropped, but when I use "ovs-appctl dpif/dump-flows br-int" to check this, I can't see key gtp_teid.

$sudo ovs-appctl dpif/dump-flows br-int
recirc_id(0),in_port(2),eth_type(0x0800),ipv4(proto=17,frag=no), packets:1, bytes:108, used:4.137s, actions:drop

Anyboby knows how I add a new key/match field in order that "ovs-appctl dpif/dump-flows" can show it correctly, I don't think I need to add netlink key for this because this is pure userspace code, I don't use kernel datapath. It'll be great if you can point out an existing match field example which is just for pure userspace.


More information about the dev mailing list