diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2017-03-25 00:52:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-24 19:11:45 -0700 |
commit | 31871f87bb302efb26978f397bc2705138f0b73a (patch) | |
tree | ced17f014b1e12d92025ba0e965b1d2b49d2c58f /drivers/net/ethernet/mellanox/mlx5/core/en.h | |
parent | net/mlx5e: Move mlx5e_rq struct declaration (diff) | |
download | linux-dev-31871f87bb302efb26978f397bc2705138f0b73a.tar.xz linux-dev-31871f87bb302efb26978f397bc2705138f0b73a.zip |
net/mlx5e: Move XDP SQ instance into RQ
To save many rq->channel->sq dereferences in fast-path.
And rename it to xdpsq.
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index 8d789a25a1c0..5e4ae94c9f6a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -479,7 +479,10 @@ struct mlx5e_rq { u16 rx_headroom; struct mlx5e_rx_am am; /* Adaptive Moderation */ + + /* XDP */ struct bpf_prog *xdp_prog; + struct mlx5e_sq xdpsq; /* control */ struct mlx5_wq_ctrl wq_ctrl; @@ -499,7 +502,6 @@ enum channel_flags { struct mlx5e_channel { /* data path */ struct mlx5e_rq rq; - struct mlx5e_sq xdp_sq; struct mlx5e_sq sq[MLX5E_MAX_NUM_TC]; struct mlx5e_sq icosq; /* internal control operations */ bool xdp; |