diff options
author | Mohammed Hawari <mohammed@hawari.fr> | 2021-05-12 12:31:01 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-09-07 17:13:45 +0000 |
commit | 0b42ac565b970c186a9ad734f980b440f56fb25b (patch) | |
tree | 9fc28056012f7c05f9dac0cc76c239da5cd4580f /src/plugins/dpdk/device/dpdk.h | |
parent | 5b22339973feaa3eba48ead1e9fb428b1816c0cc (diff) |
dpdk: lro support
Change-Id: Ifa09dcdfd567ac3c2afab4bd3bd468260f766e1d
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Type: improvement
Diffstat (limited to 'src/plugins/dpdk/device/dpdk.h')
-rw-r--r-- | src/plugins/dpdk/device/dpdk.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h index 9df7f398ee6..dd43137aebe 100644 --- a/src/plugins/dpdk/device/dpdk.h +++ b/src/plugins/dpdk/device/dpdk.h @@ -251,11 +251,12 @@ typedef struct #define DPDK_LINK_POLL_INTERVAL (3.0) #define DPDK_MIN_LINK_POLL_INTERVAL (0.001) /* 1msec */ -#define foreach_dpdk_device_config_item \ - _ (num_rx_queues) \ - _ (num_tx_queues) \ - _ (num_rx_desc) \ - _ (num_tx_desc) \ +#define foreach_dpdk_device_config_item \ + _ (num_rx_queues) \ + _ (num_tx_queues) \ + _ (num_rx_desc) \ + _ (num_tx_desc) \ + _ (max_lro_pkt_size) \ _ (rss_fn) typedef enum @@ -301,6 +302,7 @@ typedef struct u8 *eal_init_args_str; u8 *uio_driver_name; u8 no_multi_seg; + u8 enable_lro; u8 enable_tcp_udp_checksum; u8 no_tx_checksum_offload; u8 enable_telemetry; @@ -347,7 +349,7 @@ typedef struct u32 buffers[DPDK_RX_BURST_SZ]; u16 next[DPDK_RX_BURST_SZ]; u16 etype[DPDK_RX_BURST_SZ]; - u16 flags[DPDK_RX_BURST_SZ]; + u32 flags[DPDK_RX_BURST_SZ]; vlib_buffer_t buffer_template; } dpdk_per_thread_data_t; |