tap: fix flags in custom-dump
Type: fix
@@ -579,17 +579,17 @@ static void *vl_api_tap_create_v2_t_print
s = format (s, "rx-ring-size %u ", (mp->rx_ring_sz));
if (mp->host_mtu_set)
s = format (s, "host-mtu-size %u ", (mp->host_mtu_size));
- if ((mp->tap_flags) & 0x1)
+ if ((mp->tap_flags) & TAP_API_FLAG_GSO)
s = format (s, "gso-enabled ");
- if ((mp->tap_flags) & 0x2)
+ if ((mp->tap_flags) & TAP_API_FLAG_CSUM_OFFLOAD)
s = format (s, "csum-offload-enabled ");
- if ((mp->tap_flags) & 0x4)
+ if ((mp->tap_flags) & TAP_API_FLAG_PERSIST)
s = format (s, "persist ");
- if ((mp->tap_flags) & 0x8)
+ if ((mp->tap_flags) & TAP_API_FLAG_ATTACH)
s = format (s, "attach ");
- if ((mp->tap_flags) & 0x16)
+ if ((mp->tap_flags) & TAP_API_FLAG_TUN)
s = format (s, "tun ");
- if ((mp->tap_flags) & 0x32)
+ if ((mp->tap_flags) & TAP_API_FLAG_GRO_COALESCE)
s = format (s, "gro-coalesce-enabled ");
FINISH;
}
