|
@@ -662,12 +662,9 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud
|
|
int polled = 0;
|
|
int polled = 0;
|
|
int index;
|
|
int index;
|
|
|
|
|
|
- if (unlikely(!priv->port_up))
|
|
|
|
|
|
+ if (unlikely(!priv->port_up || budget <= 0))
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
- if (unlikely(budget <= 0))
|
|
|
|
- return polled;
|
|
|
|
-
|
|
|
|
ring = priv->rx_ring[cq_ring];
|
|
ring = priv->rx_ring[cq_ring];
|
|
|
|
|
|
/* Protect accesses to: ring->xdp_prog, priv->mac_hash list */
|
|
/* Protect accesses to: ring->xdp_prog, priv->mac_hash list */
|