aboutsummaryrefslogtreecommitdiffstats
path: root/src/vat
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-12-18 17:08:54 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-01-08 17:09:15 +0000
commitba0061feba13a11fc1c1af551bc4c26eccbd2f2c (patch)
treeb67fbf3b967f729bcc65104530f56a39bc33cecc /src/vat
parent6d4af8918c8d14aa609d6488f0793152f9ed1927 (diff)
tap: split gso and checksum offload functionality
Type: refactor Change-Id: I0d4b79ef384c11c841576d264bfd8ccb21783e10 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vat')
-rw-r--r--src/vat/api_format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index 2f8218e590f..690a15fd97e 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -7341,6 +7341,8 @@ api_tap_create_v2 (vat_main_t * vam)
tap_flags &= ~TAP_FLAG_GSO;
else if (unformat (i, "gso"))
tap_flags |= TAP_FLAG_GSO;
+ else if (unformat (i, "csum-offload"))
+ tap_flags |= TAP_FLAG_CSUM_OFFLOAD;
else
break;
}