diff options
author | Damjan Marion <damjan.marion@gmail.com> | 2024-10-23 20:56:27 +0200 |
---|---|---|
committer | Damjan Marion <damjan.marion@gmail.com> | 2024-10-23 21:03:30 +0200 |
commit | 8cbf565e065e397f5b03f19fb4222d9f576d4c20 (patch) | |
tree | 1ff4bbb00fea6af633b1c1d89e145a3889e70890 /src/vnet/dev/api.c | |
parent | b87e7ba1e582ea6f8d066ee236ca0ae991a1af56 (diff) |
dev: keep dev_instance data in struct
Type: refactor
Change-Id: I05d04e2e9872d025384524b1bc133d909581e18a
Signed-off-by: Damjan Marion <damjan.marion@gmail.com>
Diffstat (limited to 'src/vnet/dev/api.c')
-rw-r--r-- | src/vnet/dev/api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/dev/api.c b/src/vnet/dev/api.c index 114b63d6662..0f4bd0b653e 100644 --- a/src/vnet/dev/api.c +++ b/src/vnet/dev/api.c @@ -263,7 +263,7 @@ vnet_dev_api_remove_port_if (vlib_main_t *vm, if (!hi) return VNET_DEV_ERR_UNKNOWN_INTERFACE; - if (pool_is_free_index (dm->ports_by_dev_instance, hi->dev_instance)) + if (pool_is_free_index (dm->dev_instances, hi->dev_instance)) return VNET_DEV_ERR_UNKNOWN_INTERFACE; port = vnet_dev_get_port_from_dev_instance (hi->dev_instance); |