]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bnxt_en: Fix DMA unmapping of the RX buffers in XDP mode during shutdown.
authorMichael Chan <michael.chan@broadcom.com>
Tue, 28 Mar 2017 23:47:31 +0000 (19:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Mar 2017 21:05:34 +0000 (14:05 -0700)
commit3ed3a83e3f3871c57b18cef09b148e96921236ed
tree9c50f34747b46d94165da8e1dc3f551a231816a9
parent23e12c893489ed12ecfccbf866fc62af1bead4b0
bnxt_en: Fix DMA unmapping of the RX buffers in XDP mode during shutdown.

In bnxt_free_rx_skbs(), which is called to free up all RX buffers during
shutdown, we need to unmap the page if we are running in XDP mode.

Fixes: c61fb99cae51 ("bnxt_en: Add RX page mode support.")
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