Widen EPOCH(9) usage in mlx4en(4).

Make sure all receive completion callbacks are covered by the network
EPOCH(9), because this is required when calling if_input() and
ether_input() after r357012.

Convert some spaces to tabs while at it.

Sponsored by:	Mellanox Technologies
This commit is contained in:
hselasky 2020-01-31 10:41:47 +00:00
parent 86e6ac26b3
commit 1d3f5325b6

View File

@ -866,14 +866,16 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud
/* Rx CQ polling - called by NAPI */
static int mlx4_en_poll_rx_cq(struct mlx4_en_cq *cq, int budget)
{
struct net_device *dev = cq->dev;
int done;
struct net_device *dev = cq->dev;
struct epoch_tracker et;
int done;
done = mlx4_en_process_rx_cq(dev, cq, budget);
cq->tot_rx += done;
return done;
NET_EPOCH_ENTER(et);
done = mlx4_en_process_rx_cq(dev, cq, budget);
NET_EPOCH_EXIT(et);
cq->tot_rx += done;
return done;
}
void mlx4_en_rx_irq(struct mlx4_cq *mcq)
{