]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: Tree wide: Replace xdp_do_flush_map() with xdp_do_flush().
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 8 Sep 2023 14:32:14 +0000 (16:32 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Oct 2023 14:34:51 +0000 (07:34 -0700)
xdp_do_flush_map() is deprecated and new code should use xdp_do_flush()
instead.

Replace xdp_do_flush_map() with xdp_do_flush().

Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: Clark Wang <xiaoning.wang@nxp.com>
Cc: Claudiu Manoil <claudiu.manoil@nxp.com>
Cc: David Arinzon <darinzon@amazon.com>
Cc: Edward Cree <ecree.xilinx@gmail.com>
Cc: Felix Fietkau <nbd@nbd.name>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Jassi Brar <jaswinder.singh@linaro.org>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Cc: John Crispin <john@phrozen.org>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: Louis Peens <louis.peens@corigine.com>
Cc: Marcin Wojtas <mw@semihalf.com>
Cc: Mark Lee <Mark-MC.Lee@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: Noam Dagan <ndagan@amazon.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Saeed Bishara <saeedb@amazon.com>
Cc: Saeed Mahameed <saeedm@nvidia.com>
Cc: Sean Wang <sean.wang@mediatek.com>
Cc: Shay Agroskin <shayagr@amazon.com>
Cc: Shenwei Wang <shenwei.wang@nxp.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>
Cc: Vladimir Oltean <vladimir.oltean@nxp.com>
Cc: Wei Fang <wei.fang@nxp.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Arthur Kiyanovski <akiyano@amazon.com>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Link: https://lore.kernel.org/r/20230908143215.869913-2-bigeasy@linutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
16 files changed:
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/freescale/enetc/enetc.c
drivers/net/ethernet/freescale/fec_main.c
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/ice/ice_txrx_lib.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c
drivers/net/ethernet/marvell/mvneta.c
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c
drivers/net/ethernet/netronome/nfp/nfd3/xsk.c
drivers/net/ethernet/sfc/efx_channels.c
drivers/net/ethernet/sfc/siena/efx_channels.c
drivers/net/ethernet/socionext/netsec.c
drivers/net/ethernet/ti/cpsw_priv.c

index f955bde10cf90ad6375f9b97fcffc36ba174a358..b5bca48148309993402f7ef0b215e94ba66676ed 100644 (file)
@@ -1828,7 +1828,7 @@ static int ena_clean_rx_irq(struct ena_ring *rx_ring, struct napi_struct *napi,
        }
 
        if (xdp_flags & ENA_XDP_REDIRECT)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        return work_done;
 
index 35461165de0d2aba0ac3a48988af55ac87586402..30bec47bc665bf6fe66fc28cbc987cb0884fde0c 100644 (file)
@@ -1655,7 +1655,7 @@ out:
        rx_ring->stats.bytes += rx_byte_cnt;
 
        if (xdp_redirect_frm_cnt)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        if (xdp_tx_frm_cnt)
                enetc_update_tx_ring_tail(tx_ring);
index 77c8e9cfb44562e73bfa89d06c5d4b179d755502..b833467088811dbe0a8670358b3849b2bc0d693f 100644 (file)
@@ -1832,7 +1832,7 @@ rx_processing_done:
        rxq->bd.cur = bdp;
 
        if (xdp_result & FEC_ENET_XDP_REDIR)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        return pkt_received;
 }
index 0b3a27f118fb97155d14317db16764143b8af575..d680df615ff952f24dcbf376838656fe8091f891 100644 (file)
@@ -2405,7 +2405,7 @@ void i40e_update_rx_stats(struct i40e_ring *rx_ring,
 void i40e_finalize_xdp_rx(struct i40e_ring *rx_ring, unsigned int xdp_res)
 {
        if (xdp_res & I40E_XDP_REDIR)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        if (xdp_res & I40E_XDP_TX) {
                struct i40e_ring *xdp_ring =
index c8322fb6f2b37f710e3da7119c70d60ef61365e1..7e06373e14d98e2002d4e366f3277501e3a2c74a 100644 (file)
@@ -450,7 +450,7 @@ void ice_finalize_xdp_rx(struct ice_tx_ring *xdp_ring, unsigned int xdp_res,
        struct ice_tx_buf *tx_buf = &xdp_ring->tx_buf[first_idx];
 
        if (xdp_res & ICE_XDP_REDIR)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        if (xdp_res & ICE_XDP_TX) {
                if (static_branch_unlikely(&ice_xdp_locking_key))
index dd03b017dfc518c464373732e09027f4c68db07a..94bde2cad0f475fadf9c6f01356dea4dff1cacf0 100644 (file)
@@ -2421,7 +2421,7 @@ static int ixgbe_clean_rx_irq(struct ixgbe_q_vector *q_vector,
        }
 
        if (xdp_xmit & IXGBE_XDP_REDIR)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        if (xdp_xmit & IXGBE_XDP_TX) {
                struct ixgbe_ring *ring = ixgbe_determine_xdp_ring(adapter);
index 1703c640a434dbfc1a0e252355e19c2bedafccb6..59798bc33298f1da5e852f5d9df62497143586be 100644 (file)
@@ -351,7 +351,7 @@ construct_skb:
        }
 
        if (xdp_xmit & IXGBE_XDP_REDIR)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        if (xdp_xmit & IXGBE_XDP_TX) {
                struct ixgbe_ring *ring = ixgbe_determine_xdp_ring(adapter);
index 61a430e5bc9191314a0daf674f5e14e2c224ed37..90817136808d46039eb55839dff812533d1ae40e 100644 (file)
@@ -2520,7 +2520,7 @@ next:
                mvneta_xdp_put_buff(pp, rxq, &xdp_buf, -1);
 
        if (ps.xdp_redirect)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        if (ps.rx_packets)
                mvneta_update_stats(pp, &ps);
index 463e89d3f17aa33d7eee2af71ac8bd6f704c92d9..f11a3f6540b03c385b65b9b4009045883e67cb08 100644 (file)
@@ -4027,7 +4027,7 @@ err_drop_frame:
        }
 
        if (xdp_ret & MVPP2_XDP_REDIR)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        if (ps.rx_packets) {
                struct mvpp2_pcpu_stats *stats = this_cpu_ptr(port->stats);
index 82b51072aad849cf054ac9f5a571cd2e21c7f24b..b9c4ad69eec9c1b9c572dc167d230c18ad37b0b0 100644 (file)
@@ -2211,7 +2211,7 @@ rx_done:
        net_dim(&eth->rx_dim, dim_sample);
 
        if (xdp_flush)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        return done;
 }
index 12f56d0db0af2f904866b75d159a00a05a9e2f7a..cc3fcd24b36d6b127d041bdac6eb1bacc64e0685 100644 (file)
@@ -893,7 +893,7 @@ void mlx5e_xdp_rx_poll_complete(struct mlx5e_rq *rq)
        mlx5e_xmit_xdp_doorbell(xdpsq);
 
        if (test_bit(MLX5E_RQ_FLAG_XDP_REDIRECT, rq->flags)) {
-               xdp_do_flush_map();
+               xdp_do_flush();
                __clear_bit(MLX5E_RQ_FLAG_XDP_REDIRECT, rq->flags);
        }
 }
index 5d9db8c2a5b437c5e2032e4a17d055bf620d9c82..45be6954d5aaea21406a3335354520946d0deafa 100644 (file)
@@ -256,7 +256,7 @@ nfp_nfd3_xsk_rx(struct nfp_net_rx_ring *rx_ring, int budget,
        nfp_net_xsk_rx_ring_fill_freelist(r_vec->rx_ring);
 
        if (xdp_redir)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        if (tx_ring->wr_ptr_add)
                nfp_net_tx_xmit_more_flush(tx_ring);
index 8d2d7ea2ebefc6606488d7b57b3b093000e6126a..c9e17a8208a90177c45a507ee433a050f606aecd 100644 (file)
@@ -1260,7 +1260,7 @@ static int efx_poll(struct napi_struct *napi, int budget)
 
        spent = efx_process_channel(channel, budget);
 
-       xdp_do_flush_map();
+       xdp_do_flush();
 
        if (spent < budget) {
                if (efx_channel_has_rx_queue(channel) &&
index 1776f7f8a7a90ea4043086008847ab2a52c532d8..a7346e965bfe707813af40e35b67d69b64e82e5d 100644 (file)
@@ -1285,7 +1285,7 @@ static int efx_poll(struct napi_struct *napi, int budget)
 
        spent = efx_process_channel(channel, budget);
 
-       xdp_do_flush_map();
+       xdp_do_flush();
 
        if (spent < budget) {
                if (efx_channel_has_rx_queue(channel) &&
index d9cfafb9608566d09d6a8002c38037a3242cc848..0891e9e49ecb584362d0f576f15a8ea612b8d5f3 100644 (file)
@@ -780,7 +780,7 @@ static void netsec_finalize_xdp_rx(struct netsec_priv *priv, u32 xdp_res,
                                   u16 pkts)
 {
        if (xdp_res & NETSEC_XDP_REDIR)
-               xdp_do_flush_map();
+               xdp_do_flush();
 
        if (xdp_res & NETSEC_XDP_TX)
                netsec_xdp_ring_tx_db(priv, pkts);
index 0ec85635dfd60a2f169f2c6aab5222842f2d3ae5..764ed298b57081ae514ad6bb62323dbac7d598d3 100644 (file)
@@ -1360,7 +1360,7 @@ int cpsw_run_xdp(struct cpsw_priv *priv, int ch, struct xdp_buff *xdp,
                 *  particular hardware is sharing a common queue, so the
                 *  incoming device might change per packet.
                 */
-               xdp_do_flush_map();
+               xdp_do_flush();
                break;
        default:
                bpf_warn_invalid_xdp_action(ndev, prog, act);