bnxt_en: Refactor bnxt_free_rx_skbs().
authorMichael Chan <michael.chan@broadcom.com>
Sun, 4 Oct 2020 19:22:56 +0000 (15:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 21:41:05 +0000 (14:41 -0700)
commit975bc99a4a397d1b1584a99b4adb7948b6e6944b
tree8f44965a4d6433ed04be966edf366dac4d5306f1
parentfc8864e0b6ee2120d9b438f411159afe99348ff0
bnxt_en: Refactor bnxt_free_rx_skbs().

bnxt_free_rx_skbs() frees all the allocated buffers and SKBs for
every RX ring.  Refactor this function by calling a new function
bnxt_free_one_rx_ring_skbs() to free these buffers on one specified
RX ring at a time.  This is preparation work for resetting one RX
ring during run-time.

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