diff options
author | Neale Ranns <nranns@cisco.com> | 2018-04-27 04:42:47 -0700 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-04-27 13:15:55 +0000 |
commit | cbe8d65068c9c39ca6b1f7e116dac2744835f18c (patch) | |
tree | ccb3000db4278ef3ecba65af72fc8aea69b22ce4 /src/vnet/devices/tap/tap.h | |
parent | 164e5f8c63652028ecb9c3570e1ea8618b163071 (diff) |
TAP memory leaks:
1 - use bit-map to re-use ID values and thus VLIB nodes
2 - free vrings
3 - free hw_address on HW interface delete (a HW * struct is memset on pool_get)
4 - free temporary node names during TX node setup
Change-Id: Id114c8bb9c844fd4ceb02fbbeb4b511ecfeb61ce
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/devices/tap/tap.h')
-rw-r--r-- | src/vnet/devices/tap/tap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/devices/tap/tap.h b/src/vnet/devices/tap/tap.h index 6e46302770d..7aebade59c7 100644 --- a/src/vnet/devices/tap/tap.h +++ b/src/vnet/devices/tap/tap.h @@ -67,11 +67,11 @@ typedef struct typedef struct { - u32 last_used_interface_id; - uword *dev_instance_by_interface_id; - /* logging */ vlib_log_class_t log_default; + + /* bit-map of in-use IDs */ + uword *tap_ids; } tap_main_t; void tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args); |