[ovs-dev] [PATCH 14/25] ofp-util: Allow encoding of Open Flow 1.2 Port Mod Messages

Simon Horman horms at verge.net.au
Thu Jun 14 10:43:26 UTC 2012


Signed-off-by: Simon Horman <horms at verge.net.au>

---

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 be9a67a..b18a7bc 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -3147,7 +3147,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