devices: remove the unused code from af_packet 21/35621/3
authorMohsin Kazmi <sykazmi@cisco.com>
Thu, 10 Mar 2022 16:44:06 +0000 (17:44 +0100)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 10 Mar 2022 19:44:24 +0000 (19:44 +0000)
Type: refactor

Change-Id: If180816303909b92c9aa4ff9fd70dc7938a6cfbe
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
src/vnet/devices/af_packet/af_packet.c
src/vnet/devices/af_packet/af_packet.h

index 2085379..bc9caac 100644 (file)
@@ -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;
index 652e173..d7d16b9 100644 (file)
@@ -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;