summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/dpdk.h
diff options
context:
space:
mode:
authorChenmin Sun <chenmin.sun@intel.com>2019-07-17 22:29:44 +0800
committerDamjan Marion <dmarion@me.com>2019-08-19 09:41:08 +0000
commitde5ed58fdb72536ed928e12990a08104e1f89f51 (patch)
treee3eca3ec5afb52b613896cb2f1c52a89417230e2 /src/plugins/dpdk/device/dpdk.h
parent4d843b9940a8fbcd0b54c8a66916b9ba66e4f2c9 (diff)
dpdk: add TSO support in dpdk plugin.
Type: feature You can enable tso in starup.conf like this: dev 0000:86:00.0{ tso on } TSO is disabled by default. Change-Id: Ifdbaf5322f768c384aa54e532d7bf45e810ca01c Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
Diffstat (limited to 'src/plugins/dpdk/device/dpdk.h')
-rw-r--r--src/plugins/dpdk/device/dpdk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h
index 0ec4ec3f28b..07c333d4781 100644
--- a/src/plugins/dpdk/device/dpdk.h
+++ b/src/plugins/dpdk/device/dpdk.h
@@ -334,6 +334,10 @@ typedef struct
clib_bitmap_t * workers;
u32 hqos_enabled;
dpdk_device_config_hqos_t hqos;
+ u8 tso;
+#define DPDK_DEVICE_TSO_DEFAULT 0
+#define DPDK_DEVICE_TSO_OFF 1
+#define DPDK_DEVICE_TSO_ON 2
} dpdk_device_config_t;
typedef struct