[ovs-dev] [PATCH 16/34] ofp-util: Allow encoding of Open Flow 1.2 Port Mod Messages
Simon Horman
horms at verge.net.au
Tue Jun 19 07:48:54 UTC 2012
Signed-off-by: Simon Horman <horms at verge.net.au>
---
v3
* No change
v2
* No change
---
lib/ofp-util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index dcd19a1..ddd51c6 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -3178,7 +3178,7 @@ ofputil_encode_port_mod(const struct ofputil_port_mod *pm,
opm->config = htonl(pm->config & OFPPC10_ALL);
opm->mask = htonl(pm->mask & OFPPC10_ALL);
opm->advertise = netdev_port_features_to_ofp10(pm->advertise);
- } else if (ofp_version == OFP11_VERSION) {
+ } else if (ofp_version == OFP11_VERSION || ofp_version == OFP12_VERSION) {
struct ofp11_port_mod *opm;
opm = make_openflow(sizeof *opm, OFPT11_PORT_MOD, &b);
--
1.7.10.2.484.gcd07cc5
More information about the dev
mailing list