]> git.baikalelectronics.ru Git - 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)
commita6f71af37640b544e0efa8ea50e1a583cd37c6c8
tree9c50f34747b46d94165da8e1dc3f551a231816a9
parentb87cb4d51b72eb8c691ad44e5a78d6aab53d3742
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: 6881d0c5ac7a ("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