summaryrefslogtreecommitdiffstats
path: root/src/vnet/interface.c
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-11-09 15:23:52 +0100
committerDamjan Marion <dmarion@me.com>2020-11-13 11:46:41 +0000
commit7d2094c12b01ac1f902755157361bd0eb547abac (patch)
treedd4273728be71effa6c6857a6203e25682a3a05b /src/vnet/interface.c
parent6807b77f24cf95e432ccdffef07d81d4a989beb9 (diff)
interface: add multiarch support for per-interface tx node
Type: improvement Change-Id: Ia4ce47c0f727cf7b02294f05b94f14e788f52f30 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vnet/interface.c')
-rw-r--r--src/vnet/interface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/interface.c b/src/vnet/interface.c
index f0ac40df4a8..5bc1a6eae23 100644
--- a/src/vnet/interface.c
+++ b/src/vnet/interface.c
@@ -769,6 +769,7 @@ vnet_register_interface (vnet_main_t * vnm,
vnet_config_main_t *cm;
u32 hw_index, i;
char *tx_node_name = NULL, *output_node_name = NULL;
+ vlib_node_function_t *output_node = vnet_interface_output_node_get ();
pool_get (im->hw_interfaces, hw);
clib_memset (hw, 0, sizeof (*hw));
@@ -854,7 +855,7 @@ vnet_register_interface (vnet_main_t * vnm,
/* The new class may differ from the old one.
* Functions have to be updated. */
node = vlib_get_node (vm, hw->output_node_index);
- node->function = vnet_interface_output_node;
+ node->function = output_node;
node->format_trace = format_vnet_interface_output_trace;
/* *INDENT-OFF* */
foreach_vlib_main ({
@@ -908,7 +909,7 @@ vnet_register_interface (vnet_main_t * vnm,
r.flags = 0;
r.name = output_node_name;
- r.function = vnet_interface_output_node;
+ r.function = output_node;
r.format_trace = format_vnet_interface_output_trace;
{