From: Andrew Rybchenko Date: Thu, 19 Apr 2018 11:36:53 +0000 (+0100) Subject: net/sfc: allow one Rx queue entry carry many packet buffers X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d3ab4fd9bdf7b0e92eef51f28f901361572354a8;p=dpdk.git 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 --- 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);