From d1eb1b7523cc1378f7caef93966420f67a5ddc69 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 7 Dec 2023 16:40:02 +0100 Subject: dev: caps and rx/tx offload support Type: improvement Change-Id: I7972f595444eacdb020f3fa2a60331c40766fc0b Signed-off-by: Damjan Marion --- src/plugins/dev_iavf/iavf.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/plugins') 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, -- cgit 1.2.3-korg