diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2019-12-18 17:08:54 +0100 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-01-08 17:09:15 +0000 |
commit | ba0061feba13a11fc1c1af551bc4c26eccbd2f2c (patch) | |
tree | b67fbf3b967f729bcc65104530f56a39bc33cecc /src/vnet/devices/tap/tap.h | |
parent | 6d4af8918c8d14aa609d6488f0793152f9ed1927 (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/vnet/devices/tap/tap.h')
-rw-r--r-- | src/vnet/devices/tap/tap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/devices/tap/tap.h b/src/vnet/devices/tap/tap.h index 6eba7affa35..fd4006b5d52 100644 --- a/src/vnet/devices/tap/tap.h +++ b/src/vnet/devices/tap/tap.h @@ -32,6 +32,7 @@ typedef struct u16 tx_ring_sz; u32 tap_flags; #define TAP_FLAG_GSO (1 << 0) +#define TAP_FLAG_CSUM_OFFLOAD (1 << 1) u8 *host_namespace; u8 *host_if_name; mac_address_t host_mac_addr; @@ -88,6 +89,9 @@ void tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args); int tap_delete_if (vlib_main_t * vm, u32 sw_if_index); int tap_gso_enable_disable (vlib_main_t * vm, u32 sw_if_index, int enable_disable); +int +tap_csum_offload_enable_disable (vlib_main_t * vm, u32 sw_if_index, + int enable_disable); int tap_dump_ifs (tap_interface_details_t ** out_tapids); #endif /* _VNET_DEVICES_VIRTIO_TAP_H_ */ |