From b87e7ba1e582ea6f8d066ee236ca0ae991a1af56 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 23 Oct 2024 18:46:51 +0200 Subject: dev: fix typo in function name vnet_dev_get_port_rx_node_idex -> vnet_dev_get_port_rx_node_index Type: fix Change-Id: I9a90e5822cbc93bcf2f91244b4eb4e5fff53c212 Signed-off-by: Damjan Marion --- src/plugins/dev_iavf/port.c | 2 +- src/vnet/dev/dev_funcs.h | 2 +- src/vnet/dev/format.c | 3 ++- src/vnet/dev/queue.c | 2 +- src/vnet/dev/runtime.c | 4 ++-- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/plugins/dev_iavf/port.c b/src/plugins/dev_iavf/port.c index 54f5f1d1515..a0530822688 100644 --- a/src/plugins/dev_iavf/port.c +++ b/src/plugins/dev_iavf/port.c @@ -263,7 +263,7 @@ avf_msix_n_handler (vlib_main_t *vm, vnet_dev_t *dev, u16 line) iavf_reg_write (ad, IAVF_VFINT_DYN_CTLN (line), dyn_ctln_enabled.as_u32); vlib_node_set_interrupt_pending (vlib_get_main_by_index (line), - vnet_dev_get_port_rx_node_idex (port)); + vnet_dev_get_port_rx_node_index (port)); } vnet_dev_rv_t diff --git a/src/vnet/dev/dev_funcs.h b/src/vnet/dev/dev_funcs.h index 5a3cd00ec88..b805698ea3c 100644 --- a/src/vnet/dev/dev_funcs.h +++ b/src/vnet/dev/dev_funcs.h @@ -87,7 +87,7 @@ vnet_dev_get_rx_queue_if_hw_if_index (vnet_dev_rx_queue_t *rxq) } static_always_inline u32 -vnet_dev_get_port_rx_node_idex (vnet_dev_port_t *port) +vnet_dev_get_port_rx_node_index (vnet_dev_port_t *port) { return port->intf.rx_node_index; } diff --git a/src/vnet/dev/format.c b/src/vnet/dev/format.c index f599c0f8b85..bde245cafee 100644 --- a/src/vnet/dev/format.c +++ b/src/vnet/dev/format.c @@ -142,7 +142,8 @@ format_vnet_dev_port_info (u8 *s, va_list *args) { s = format (s, "assigned, interface name is '%U', RX node is '%U'", format_vnet_sw_if_index_name, vnm, port->intf.sw_if_index, - format_vlib_node_name, vm, port->intf.rx_node_index); + format_vlib_node_name, vm, + vnet_dev_get_port_rx_node_index (port)); } else s = format (s, "not assigned"); diff --git a/src/vnet/dev/queue.c b/src/vnet/dev/queue.c index 9a016a626fb..7efea5f14bd 100644 --- a/src/vnet/dev/queue.c +++ b/src/vnet/dev/queue.c @@ -107,7 +107,7 @@ vnet_dev_rx_queue_stop (vlib_main_t *vm, vnet_dev_rx_queue_t *rxq) { if (rxq->port->rx_queue_ops.stop) rxq->port->rx_queue_ops.stop (vm, rxq); - vlib_node_set_state (vm, rxq->port->intf.rx_node_index, + vlib_node_set_state (vm, vnet_dev_get_port_rx_node_index (rxq->port), VLIB_NODE_STATE_DISABLED); rxq->started = 0; } diff --git a/src/vnet/dev/runtime.c b/src/vnet/dev/runtime.c index 79c55cfbd53..944c3ef32fa 100644 --- a/src/vnet/dev/runtime.c +++ b/src/vnet/dev/runtime.c @@ -23,7 +23,7 @@ _vnet_dev_rt_exec_op (vlib_main_t *vm, vnet_dev_rt_op_t *op) vnet_dev_rx_queue_t *previous = 0, *first = 0; vnet_dev_rx_node_runtime_t *rtd; vlib_node_state_t state = VLIB_NODE_STATE_DISABLED; - u32 node_index = port->intf.rx_node_index; + u32 node_index = vnet_dev_get_port_rx_node_index (port); rtd = vlib_node_get_runtime_data (vm, node_index); @@ -47,7 +47,7 @@ _vnet_dev_rt_exec_op (vlib_main_t *vm, vnet_dev_rt_op_t *op) } rtd->first_rx_queue = first; - vlib_node_set_state (vm, port->intf.rx_node_index, state); + vlib_node_set_state (vm, node_index, state); __atomic_store_n (&op->completed, 1, __ATOMIC_RELEASE); } -- cgit 1.2.3-korg