bnxt_en: Refactor bnxt_init_one_rx_ring().
authorMichael Chan <michael.chan@broadcom.com>
Sun, 4 Oct 2020 19:22:57 +0000 (15:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 21:41:05 +0000 (14:41 -0700)
commit7737d325f867faa5e809c607699d2253dfb6ab09
treeb16e3a83fcfdb672798af194492cfe1e28e6bd40
parent975bc99a4a397d1b1584a99b4adb7948b6e6944b
bnxt_en: Refactor bnxt_init_one_rx_ring().

bnxt_init_one_rx_ring() includes logic to initialize the BDs for one RX
ring and to allocate the buffers.  Separate the allocation logic into a
new bnxt_alloc_one_rx_ring() function.  The allocation function will be
used later to allocate new buffers for one specified RX ring when we
reset that RX ring.

Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c