From d3ab4fd9bdf7b0e92eef51f28f901361572354a8 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Thu, 19 Apr 2018 12:36:53 +0100 Subject: [PATCH] net/sfc: allow one Rx queue entry carry many packet buffers One HW Rx descriptor has many packet buffers in the case of equal stride super-buffer Rx modes. Each packet buffer is still treated as separate SW Rx descriptor. rxq_entries is the size of HW Rx ring whereas nb_rx_desc is the number of SW Rx descriptors. Signed-off-by: Andrew Rybchenko Reviewed-by: Ivan Malov --- drivers/net/sfc/sfc_rx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/sfc/sfc_rx.c b/drivers/net/sfc/sfc_rx.c index a4aae1bab6..e24a6ef3a1 100644 --- a/drivers/net/sfc/sfc_rx.c +++ b/drivers/net/sfc/sfc_rx.c @@ -988,7 +988,6 @@ sfc_rx_qinit(struct sfc_adapter *sa, unsigned int sw_index, goto fail_size_up_rings; SFC_ASSERT(rxq_entries >= EFX_RXQ_MINNDESCS); SFC_ASSERT(rxq_entries <= EFX_RXQ_MAXNDESCS); - SFC_ASSERT(rxq_entries >= nb_rx_desc); SFC_ASSERT(rxq_max_fill_level <= nb_rx_desc); rc = sfc_rx_qcheck_conf(sa, rxq_max_fill_level, rx_conf); -- 2.20.1