aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/rdma/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/rdma/cli.c')
-rw-r--r--src/plugins/rdma/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/rdma/cli.c b/src/plugins/rdma/cli.c
index 1f377a738fc..d4ef17d020c 100644
--- a/src/plugins/rdma/cli.c
+++ b/src/plugins/rdma/cli.c
@@ -107,7 +107,7 @@ rdma_delete_command_fn (vlib_main_t * vm, unformat_input_t * input,
return clib_error_return (0,
"please specify interface name or sw_if_index");
- hw = vnet_get_sup_hw_interface (vnm, sw_if_index);
+ hw = vnet_get_sup_hw_interface_api_visible_or_null (vnm, sw_if_index);
if (hw == NULL || rdma_device_class.index != hw->dev_class_index)
return clib_error_return (0, "not a RDMA interface");