Skip to content

Commit

Permalink
mvpp2: remove unused parameter
Browse files Browse the repository at this point in the history
mvpp2_run_xdp() has an unused parameter rxq, remove it.

Fixes: 07dd0a7 ("mvpp2: add basic XDP support")
Signed-off-by: Matteo Croce <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
teknoraver authored and davem330 committed May 10, 2021
1 parent 1f975ab commit 376d689
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3784,9 +3784,9 @@ mvpp2_xdp_xmit(struct net_device *dev, int num_frame,
}

static int
mvpp2_run_xdp(struct mvpp2_port *port, struct mvpp2_rx_queue *rxq,
struct bpf_prog *prog, struct xdp_buff *xdp,
struct page_pool *pp, struct mvpp2_pcpu_stats *stats)
mvpp2_run_xdp(struct mvpp2_port *port, struct bpf_prog *prog,
struct xdp_buff *xdp, struct page_pool *pp,
struct mvpp2_pcpu_stats *stats)
{
unsigned int len, sync, err;
struct page *page;
Expand Down Expand Up @@ -3925,7 +3925,7 @@ static int mvpp2_rx(struct mvpp2_port *port, struct napi_struct *napi,
MVPP2_MH_SIZE + MVPP2_SKB_HEADROOM,
rx_bytes, false);

ret = mvpp2_run_xdp(port, rxq, xdp_prog, &xdp, pp, &ps);
ret = mvpp2_run_xdp(port, xdp_prog, &xdp, pp, &ps);

if (ret) {
xdp_ret |= ret;
Expand Down

0 comments on commit 376d689

Please sign in to comment.