bnxt_en: rename some xdp functions
authorAndy Gospodarek <gospo@broadcom.com>
Mon, 8 Jul 2019 21:53:01 +0000 (17:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jul 2019 22:15:24 +0000 (15:15 -0700)
Renaming bnxt_xmit_xdp to __bnxt_xmit_xdp to get ready for XDP_REDIRECT
support and reduce confusion/namespace collision.

Signed-off-by: Andy Gospodarek <gospo@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_ethtool.c
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h

index a6c7baf38036a27fdb2335b64bc07adcdffb280a..21a043112d4edfe710b61055fed846d9d2da8e81 100644 (file)
@@ -2799,7 +2799,7 @@ static int bnxt_run_loopback(struct bnxt *bp)
                dev_kfree_skb(skb);
                return -EIO;
        }
-       bnxt_xmit_xdp(bp, txr, map, pkt_size, 0);
+       __bnxt_xmit_xdp(bp, txr, map, pkt_size, 0);
 
        /* Sync BD data before updating doorbell */
        wmb();
index 0184ef6f05a7440068952ee9b196f6943a716cbe..4bc95950ea1bf98494790a6cf3f66c446a0d9020 100644 (file)
@@ -19,8 +19,8 @@
 #include "bnxt.h"
 #include "bnxt_xdp.h"
 
-void bnxt_xmit_xdp(struct bnxt *bp, struct bnxt_tx_ring_info *txr,
-                  dma_addr_t mapping, u32 len, u16 rx_prod)
+void __bnxt_xmit_xdp(struct bnxt *bp, struct bnxt_tx_ring_info *txr,
+                    dma_addr_t mapping, u32 len, u16 rx_prod)
 {
        struct bnxt_sw_tx_bd *tx_buf;
        struct tx_bd *txbd;
@@ -132,8 +132,8 @@ bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons,
                *event = BNXT_TX_EVENT;
                dma_sync_single_for_device(&pdev->dev, mapping + offset, *len,
                                           bp->rx_dir);
-               bnxt_xmit_xdp(bp, txr, mapping + offset, *len,
-                             NEXT_RX(rxr->rx_prod));
+               __bnxt_xmit_xdp(bp, txr, mapping + offset, *len,
+                               NEXT_RX(rxr->rx_prod));
                bnxt_reuse_rx_data(rxr, cons, page);
                return true;
        default:
index 414b748038cac3ebfd1e65ffaed7de36a6a71022..b36087b3f9b091df8b12163498a9255aa4066e12 100644 (file)
@@ -10,8 +10,8 @@
 #ifndef BNXT_XDP_H
 #define BNXT_XDP_H
 
-void bnxt_xmit_xdp(struct bnxt *bp, struct bnxt_tx_ring_info *txr,
-                  dma_addr_t mapping, u32 len, u16 rx_prod);
+void __bnxt_xmit_xdp(struct bnxt *bp, struct bnxt_tx_ring_info *txr,
+                    dma_addr_t mapping, u32 len, u16 rx_prod);
 void bnxt_tx_int_xdp(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts);
 bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons,
                 struct page *page, u8 **data_ptr, unsigned int *len,