summaryrefslogtreecommitdiffstats
path: root/src/plugins/dev_iavf/iavf.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2023-12-07 16:40:02 +0100
committerDamjan Marion <damarion@cisco.com>2023-12-08 16:02:36 +0100
commitd1eb1b7523cc1378f7caef93966420f67a5ddc69 (patch)
tree9c8bd125496cf132fb1fb064cf2fc413848a8a6b /src/plugins/dev_iavf/iavf.c
parent31d4891cfe9451fecce1e26e51153d608c76a4f8 (diff)
dev: caps and rx/tx offload support
Type: improvement Change-Id: I7972f595444eacdb020f3fa2a60331c40766fc0b Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dev_iavf/iavf.c')
-rw-r--r--src/plugins/dev_iavf/iavf.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/plugins/dev_iavf/iavf.c b/src/plugins/dev_iavf/iavf.c
index ffb18c7cc94..d1c2b9edc63 100644
--- a/src/plugins/dev_iavf/iavf.c
+++ b/src/plugins/dev_iavf/iavf.c
@@ -175,7 +175,19 @@ iavf_init (vlib_main_t *vm, vnet_dev_t *dev)
.max_rx_queues = clib_min (IAVF_MAX_QPAIRS, res.num_queue_pairs),
.max_tx_queues = clib_min (IAVF_MAX_QPAIRS, res.num_queue_pairs),
.max_supported_rx_frame_size = max_frame_sz,
- .caps.change_max_rx_frame_size = 1,
+ .caps = {
+ .change_max_rx_frame_size = 1,
+ .interrupt_mode = 1,
+ .rss = 1,
+ .mac_filter = 1,
+ },
+ .rx_offloads = {
+ .ip4_cksum = 1,
+ },
+ .tx_offloads = {
+ .ip4_cksum = 1,
+ .tcp_gso = 1,
+ },
},
.ops = {
.init = iavf_port_init,