diff options
author | Achiad Shochat <achiad@mellanox.com> | 2015-06-23 14:14:21 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-24 07:42:41 (GMT) |
commit | a1f5a1a87ac11486b95eebba7fa0127dd7090f65 (patch) | |
tree | 8fc28e3894911fe8f1480bdccd73319a3aba7b75 /drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | |
parent | e33910548a4090671094336397ed383c252463ff (diff) | |
download | linux-a1f5a1a87ac11486b95eebba7fa0127dd7090f65.tar.xz |
net/mlx5e: Pop cq outside mlx5e_get_cqe
Separate between mlx5e_get_cqe() and mlx5_cqwq_pop(), this helps for
better code readability and better CQ buffer management.
Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c index bf6b27b..2c7cb67 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c @@ -43,8 +43,6 @@ struct mlx5_cqe64 *mlx5e_get_cqe(struct mlx5e_cq *cq) if (cqe_ownership_bit != sw_ownership_val) return NULL; - mlx5_cqwq_pop(wq); - /* ensure cqe content is read after cqe ownership bit */ rmb(); |