From ad1e455f4d27624f79ca441114932e274cda8ab1 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Thu, 20 Aug 2020 14:54:07 +0200 Subject: tap: fix flags in custom-dump Type: fix Change-Id: I4cd0b1855eab05344897686dc17b7df44de6c786 Signed-off-by: Mohsin Kazmi --- src/vpp/api/custom_dump.c | 12 ++++++------ 1 file 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; } -- cgit 1.2.3-korg