aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-08-20 14:54:07 +0200
committerMohsin Kazmi <sykazmi@cisco.com>2020-08-20 16:26:29 +0200
commitad1e455f4d27624f79ca441114932e274cda8ab1 (patch)
treeca78b9fd075f25ab21c1ec8446a9727e3ff94123 /src
parent379aac395a2cc78847d8f14264a22a3ee99fc1c2 (diff)
tap: fix flags in custom-dump
Type: fix Change-Id: I4cd0b1855eab05344897686dc17b7df44de6c786 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vpp/api/custom_dump.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c
index 27d1c0c8500..1928e42eec3 100644
--- a/src/vpp/api/custom_dump.c
+++ b/src/vpp/api/custom_dump.c
@@ -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;
}