aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWayne Morrison <wmorrison@netgate.com>2022-08-05 09:47:24 -0400
committerWayne Morrison <wmorrison@netgate.com>2022-08-05 10:54:44 -0400
commit389aae573fb4baba278c033cb019201e246942ab (patch)
treed78dd72a3f84d01f959aac0d2f3c4b783a78ac2f
parent09ef592a32ae37030cea616ea106da6c86cf106d (diff)
vnet: On rx-mode set, return error for an actual error.
In set_hw_interface_change_rx_mode(), when vnet_hw_if_set_rx_queue_mode() returns an error it actually returns success. This has been changed to return a clib_error_return() value. Type: fix Change-Id: Iba39c875d9e15463cb6492d8a966234560a1f522 Signed-off-by: Wayne Morrison <wmorrison@netgate.com>
-rw-r--r--src/vnet/interface_cli.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vnet/interface_cli.c b/src/vnet/interface_cli.c
index 4de908f88f0..ce36e3d27fd 100644
--- a/src/vnet/interface_cli.c
+++ b/src/vnet/interface_cli.c
@@ -1534,7 +1534,12 @@ set_hw_interface_change_rx_mode (vnet_main_t * vnm, u32 hw_if_index,
{
int rv = vnet_hw_if_set_rx_queue_mode (vnm, queue_indices[i], mode);
if (rv)
- goto done;
+ {
+ error = clib_error_return (
+ 0, "unable to set rx-mode on interface %v queue-id %u.\n",
+ hw->name, queue_id);
+ goto done;
+ }
}
done: