From: Mohsin Kazmi Date: Thu, 10 Mar 2022 16:44:06 +0000 (+0100) Subject: devices: remove the unused code from af_packet X-Git-Tag: v22.10-rc0~293 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=2d194a02a60361020e3b8096958a6c963d0c2807;p=vpp.git devices: remove the unused code from af_packet Type: refactor Change-Id: If180816303909b92c9aa4ff9fd70dc7938a6cfbe Signed-off-by: Mohsin Kazmi --- 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;