[ovs-dev] Could you give me some help about how to add new match field in ovs?

kylin 940886286 at qq.com
Mon Jul 16 12:47:53 UTC 2018


Hi, I'm recently study openflow, I want to add a new match field, and add this new flow only from ofctl command, rather than through the controller, but when I add the code according to this page: http://docs.openvswitch.org/en/latest/faq/contributing/, I'm not sure if ovs switch could match the new field, when I add nxm_put_32(b, mf_oxm_header(MFF_IP_HACKED, oxm),flow->nw_hacked); to nx_put_raw() inlib/nx-match.c, the switch print:OFPT_ERROR (OF1.3) (xid=0x2): OFPBMC_BAD_FIELD
OFPT_FLOW_MOD (OF1.3) (xid=0x2):
(***truncated to 64 bytes from 72***)
00000000  04 0e 00 48 00 00 00 02-00 00 00 00 00 00 00 00 |...H............|
00000010  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 64 |...............d|
00000020  ff ff ff ff ff ff ff ff-ff ff ff ff 00 00 00 00 |................|
00000030  00 01 00 12 80 00 0a 02-08 00 80 00 48 04 00 00 |............H...|
My ovs version is 2.3.2, I really have no idea how to add my new field, could you please give me some help?


More information about the dev mailing list