summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/ofproto/nx_match.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ryu/ofproto/nx_match.py b/ryu/ofproto/nx_match.py
index 13296cb1..5cfeb874 100644
--- a/ryu/ofproto/nx_match.py
+++ b/ryu/ofproto/nx_match.py
@@ -308,6 +308,9 @@ class ClsRule(object):
if not self.wc.wildcards & FWW_NW_ECN:
return ofproto_v1_0.NXFF_NXM
+ if self.wc.regs_bits > 0:
+ return ofproto_v1_0.NXFF_NXM
+
return ofproto_v1_0.NXFF_OPENFLOW10
def match_tuple(self):