summaryrefslogtreecommitdiff
path: root/drivers/net/sfc/sfc_rx.c
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchenko@solarflare.com>2018-04-19 12:36:53 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-04-27 18:00:58 +0100
commitd3ab4fd9bdf7b0e92eef51f28f901361572354a8 (patch)
treeda41f8add160537ef214112862d9deb1e7494ce4 /drivers/net/sfc/sfc_rx.c
parent7ee7e57c345d9e563b87e1645ecce5a1f1e4500f (diff)
downloaddpdk-d3ab4fd9bdf7b0e92eef51f28f901361572354a8.zip
dpdk-d3ab4fd9bdf7b0e92eef51f28f901361572354a8.tar.gz
dpdk-d3ab4fd9bdf7b0e92eef51f28f901361572354a8.tar.xz
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 <arybchenko@solarflare.com> Reviewed-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Diffstat (limited to 'drivers/net/sfc/sfc_rx.c')
-rw-r--r--drivers/net/sfc/sfc_rx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/sfc/sfc_rx.c b/drivers/net/sfc/sfc_rx.c
index a4aae1b..e24a6ef 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);