summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2022-03-10 17:44:06 +0100
committerMatthew Smith <mgsmith@netgate.com>2022-03-10 19:44:24 +0000
commit2d194a02a60361020e3b8096958a6c963d0c2807 (patch)
treedc83cd93b027fa3a6f97141fd61c45e27243e5ba /src
parentab5a124b1dca6080c4a3a8c241ec9b8d12c24fb9 (diff)
devices: remove the unused code from af_packet
Type: refactor Change-Id: If180816303909b92c9aa4ff9fd70dc7938a6cfbe Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/devices/af_packet/af_packet.c3
-rw-r--r--src/vnet/devices/af_packet/af_packet.h3
2 files changed, 0 insertions, 6 deletions
diff --git a/src/vnet/devices/af_packet/af_packet.c b/src/vnet/devices/af_packet/af_packet.c
index 208537996e3..bc9caac82f2 100644
--- a/src/vnet/devices/af_packet/af_packet.c
+++ b/src/vnet/devices/af_packet/af_packet.c
@@ -105,9 +105,6 @@ af_packet_fd_read_ready (clib_file_t * uf)
u32 idx = uf->private_data;
af_packet_if_t *apif = pool_elt_at_index (apm->interfaces, idx);
- apm->pending_input_bitmap =
- clib_bitmap_set (apm->pending_input_bitmap, idx, 1);
-
/* Schedule the rx node */
vnet_hw_if_rx_queue_set_int_pending (vnm, apif->queue_index);
return 0;
diff --git a/src/vnet/devices/af_packet/af_packet.h b/src/vnet/devices/af_packet/af_packet.h
index 652e173fd2a..d7d16b91c8c 100644
--- a/src/vnet/devices/af_packet/af_packet.h
+++ b/src/vnet/devices/af_packet/af_packet.h
@@ -62,9 +62,6 @@ typedef struct
CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
af_packet_if_t *interfaces;
- /* bitmap of pending rx interfaces */
- uword *pending_input_bitmap;
-
/* rx buffer cache */
u32 **rx_buffers;