File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,6 @@ static struct sk_buff *page_to_skb(struct virtnet_info *vi,
373
373
}
374
374
375
375
static bool virtnet_xdp_xmit (struct virtnet_info * vi ,
376
- struct receive_queue * rq ,
377
376
struct xdp_buff * xdp )
378
377
{
379
378
struct virtio_net_hdr_mrg_rxbuf * hdr ;
@@ -542,7 +541,7 @@ static struct sk_buff *receive_small(struct net_device *dev,
542
541
delta = orig_data - xdp .data ;
543
542
break ;
544
543
case XDP_TX :
545
- if (unlikely (!virtnet_xdp_xmit (vi , rq , & xdp )))
544
+ if (unlikely (!virtnet_xdp_xmit (vi , & xdp )))
546
545
trace_xdp_exception (vi -> dev , xdp_prog , act );
547
546
rcu_read_unlock ();
548
547
goto xdp_xmit ;
@@ -677,7 +676,7 @@ static struct sk_buff *receive_mergeable(struct net_device *dev,
677
676
}
678
677
break ;
679
678
case XDP_TX :
680
- if (unlikely (!virtnet_xdp_xmit (vi , rq , & xdp )))
679
+ if (unlikely (!virtnet_xdp_xmit (vi , & xdp )))
681
680
trace_xdp_exception (vi -> dev , xdp_prog , act );
682
681
ewma_pkt_len_add (& rq -> mrg_avg_pkt_len , len );
683
682
if (unlikely (xdp_page != page ))
You can’t perform that action at this time.
0 commit comments