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
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-09-21 08:25:35 +0000
commit5564db85327fc1778152d00b159efd57784d357b (patch)
tree5e7570760d69e166d3b50c7fb616cf655887f9b4 /src/plugins/dpdk/device/dpdk.h
parentf5d6c80acc5e1fbdaf3a891e010a7e653733c851 (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> (cherry picked from commit de5ed58fdb72536ed928e12990a08104e1f89f51)
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