add bsn_tcp_flags extension
This extension adds an OXM to support matching on TCP flags.
diff --git a/c_gen/match.py b/c_gen/match.py
index 59653a0..a7da751 100644
--- a/c_gen/match.py
+++ b/c_gen/match.py
@@ -540,6 +540,15 @@
takes_mask_in_spec=True,
order=1010,
),
+
+ bsn_tcp_flags = dict(
+ name="bsn_tcp_flags",
+ m_type="uint16_t",
+ print_type="PRIx16",
+ conditions="",
+ takes_mask_in_spec=True,
+ order=1010,
+ ),
)
match_keys_sorted = of_match_members.keys()
diff --git a/c_gen/templates/loci_show.h b/c_gen/templates/loci_show.h
index 909df71..c10b08f 100644
--- a/c_gen/templates/loci_show.h
+++ b/c_gen/templates/loci_show.h
@@ -409,5 +409,6 @@
#define LOCI_SHOW_u32_flags(writer, cookie, val) LOCI_SHOW_u32(writer, cookie, val)
#define LOCI_SHOW_desc_str_image_checksum(write, cookie, val) LOCI_SHOW_desc_str(writer, cookie, val)
#define LOCI_SHOW_desc_str_startup_config_checksum(write, cookie, val) LOCI_SHOW_desc_str(writer, cookie, val)
+#define LOCI_SHOW_u16_bsn_tcp_flags(write, cookie, val) LOCI_SHOW_x16(writer, cookie, val)
#endif /* _LOCI_SHOW_H_ */