From 0d05c0d214ffd326e531bea58f3c971bb9a58252 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Tue, 9 Nov 2021 17:44:10 +0000 Subject: interface: add multi tx-queues support for new tx infra Type: feature Change-Id: I231f782b3c56dc2b10321e4569ac7acdad1c11da Signed-off-by: Mohsin Kazmi --- src/vnet/interface.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/vnet/interface.c') diff --git a/src/vnet/interface.c b/src/vnet/interface.c index ce024993826..982abbd0199 100644 --- a/src/vnet/interface.c +++ b/src/vnet/interface.c @@ -863,6 +863,10 @@ vnet_register_interface (vnet_main_t * vnm, hw->hw_if_index = hw_index; hw->default_rx_mode = VNET_HW_IF_RX_MODE_POLLING; + if (hw_class->tx_hash_fn_type == VNET_HASH_FN_TYPE_ETHERNET || + hw_class->tx_hash_fn_type == VNET_HASH_FN_TYPE_IP) + hw->hf = vnet_hash_default_function (hw_class->tx_hash_fn_type); + if (dev_class->format_device_name) hw->name = format (0, "%U", dev_class->format_device_name, dev_instance); else if (hw_class->format_interface_name) @@ -1020,6 +1024,7 @@ vnet_register_interface (vnet_main_t * vnm, static char *e[] = { "interface is down", "interface is deleted", + "no tx queue available", }; r.n_errors = ARRAY_LEN (e); -- cgit 1.2.3-korg