summaryrefslogtreecommitdiffstats
path: root/src/plugins/dev_iavf/port.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2023-12-05 13:23:31 +0100
committerDamjan Marion <damarion@cisco.com>2023-12-05 13:28:24 +0100
commit4cdf30dcece276d6754a71b307da5cef09eac16f (patch)
tree95efaef244964eeb6445a417f2d4686f1c4609d3 /src/plugins/dev_iavf/port.c
parent7fa1674c1973fb924422f676e20d5b7a19907340 (diff)
iavf: set max_pkt_size even for disabled queues to make i40e PF driver happy
Type: improvement Change-Id: I3daf6c32888a15c7ef1f32e729c1e23765d14dc6 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dev_iavf/port.c')
-rw-r--r--src/plugins/dev_iavf/port.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/dev_iavf/port.c b/src/plugins/dev_iavf/port.c
index c2dd13b476e..982436d9b45 100644
--- a/src/plugins/dev_iavf/port.c
+++ b/src/plugins/dev_iavf/port.c
@@ -145,7 +145,9 @@ iavf_port_init_vsi_queues (vlib_main_t *vm, vnet_dev_port_t *port)
for (u16 i = 0; i < ap->num_qp; i++)
ci->qpair[i] = (virtchnl_queue_pair_info_t){
- .rxq = { .vsi_id = vsi_id, .queue_id = i },
+ .rxq = { .vsi_id = vsi_id,
+ .queue_id = i,
+ .max_pkt_size = ETHERNET_MIN_PACKET_BYTES },
.txq = { .vsi_id = vsi_id, .queue_id = i },
};