[ovs-dev] [PATCH] openflow: Add OFPC_PORT_BLOCKED to ofp_capabilities

Ajinkya D Kadam ajinkya.kadam at nyu.edu
Thu Nov 24 10:35:29 UTC 2016


This patch adds OFPC_PORT_BLOCKED capability to switch features which
indicates that protocols outside of OpenFLow, such as Spanning Tree (802.1D)
will detect topology loops and block ports to prevent packet loops.

If this bit is not set, then its the responsibility of the controller to
implement a
mechanism to prevent packet loops.

CC: Ben Pfaff blp at ovn.org
Signed-off-by: Ajinkya Kadam <ajinkya.kadam at nyu.edu>

---
 include/openflow/openflow-common.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/openflow/openflow-common.h
b/include/openflow/openflow-common.h
index 7b619a9..492bd65 100644
--- a/include/openflow/openflow-common.h
+++ b/include/openflow/openflow-common.h
@@ -276,8 +276,9 @@ enum ofp_capabilities {
     OFPC_PORT_STATS     = 1 << 2,  /* Port statistics. */
     OFPC_IP_REASM       = 1 << 5,  /* Can reassemble IP fragments. */
     OFPC_QUEUE_STATS    = 1 << 6,  /* Queue statistics. */
-    OFPC_ARP_MATCH_IP   = 1 << 7   /* Match IP addresses in ARP
+    OFPC_ARP_MATCH_IP   = 1 << 7,  /* Match IP addresses in ARP
                                       pkts. */
+    OFPC_PORT_BLOCKED   = 1 << 8   /* Switch will block looping ports. */
 };

 /* Why is this packet being sent to the controller? */
-- 
2.5.0


ᐧ


More information about the dev mailing list