[ovs-discuss] New action type is not decoded correctly.
Haosen Wen
wenhaosen at gmail.com
Thu May 5 08:48:05 UTC 2016
Sorry for the delayed response.
I attached the patch file for ovs-2.3.2 of my version.
As you can see I defined a new enumeration type for "flat" action, and try
to decode it from the flowmod message.
In the code I outputed the result right after the type of action was
decoded, where I marked "test here" in ofp-actions.c
And the result turned out to be 16 rather than 4096.
Can you figure out what I missed?
Thanks,
Hs
Haosen Wen
Beijing Foreign Studies University
Addr: 2nd Xisanhuan North Ave., Haidian Dist., Beijing, China
E-Mail: wenhaosen at gmail.com
Tel: 86-183-1003-2269
Site: http://www.hensen-wen.cn
2016-04-28 22:03 GMT+08:00 Ben Pfaff <blp at ovn.org>:
> On Thu, Apr 28, 2016 at 07:08:08PM +0800, Haosen Wen wrote:
> > I defined a new action with type=0x1000(4096) in loxigen through
> floodlight
> > controller. But the decode result in ovs is type=0x10(16).
>
> What do you mean, "the decode result in ovs is type=0x10(16)." OVS
> doesn't decode actions to a raw integer, it has enumeration types for
> that purpose.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160505/4a70d2b2/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ovs+flat3.patch
Type: text/x-patch
Size: 6912 bytes
Desc: not available
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160505/4a70d2b2/attachment-0002.bin>
More information about the discuss
mailing list