X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Finterface.c;fp=src%2Fvnet%2Finterface.c;h=982abbd0199dfe402bfe54b81d201a27f5ef7851;hb=0d05c0d214ffd326e531bea58f3c971bb9a58252;hp=ce024993826b57c4659f5eb2632aff5fe3a4f361;hpb=5d5f85f5e4003476fb6d9a0ccd6ad58ad90e5138;p=vpp.git 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);