net/sfc: allow one Rx queue entry carry many packet buffers
authorAndrew Rybchenko <arybchenko@solarflare.com>
Thu, 19 Apr 2018 11:36:53 +0000 (12:36 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 17:00:58 +0000 (18:00 +0100)
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 <arybchenko@solarflare.com>
Reviewed-by: Ivan Malov <ivan.malov@oktetlabs.ru>
drivers/net/sfc/sfc_rx.c

index a4aae1b..e24a6ef 100644 (file)
@@ -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);