mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
lib: Unify flags parsing and formatting.
Use the "+-" syntax more uniformly when printing masked flags, and use the syntax of delimited 1-flags also for formatting fully masked TCP flags. The "+-" syntax only deals with masked flags, but if there are many of those, the printout becomes long and confusing. Typically there are many flags only when flags are fully masked, but even then most of them are zeros, so it makes sense to print the flags that are set (ones) and omit the zero flags. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -67,6 +67,8 @@ BUILD_ASSERT_DECL(FLOW_NW_FRAG_LATER == NX_IP_FRAG_LATER);
|
||||
#define FLOW_TNL_F_KEY (1 << 2)
|
||||
#define FLOW_TNL_F_OAM (1 << 3)
|
||||
|
||||
#define FLOW_TNL_F_MASK ((1 << 4) - 1)
|
||||
|
||||
const char *flow_tun_flag_to_string(uint32_t flags);
|
||||
|
||||
/* Maximum number of supported MPLS labels. */
|
||||
|
Reference in New Issue
Block a user