aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/mlx4_en.h
diff options
context:
space:
mode:
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>2009-08-06 22:28:18 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-06 22:28:18 -0400
commit9f519f68cfffba022978634f724944a0b971fec1 (patch)
treedec840b3dfd1bd3173c12686e85a62466a82202b /drivers/net/mlx4/mlx4_en.h
parentb6b912e0804dc1b3e856da3cc82fbe78b50e968c (diff)
mlx4_en: Not using Shared Receive Queues
We use 1:1 mapping between QPs and SRQs on receive side, so additional indirection level not required. Allocated the receive buffers for the RSS QPs. Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4/mlx4_en.h')
-rw-r--r--drivers/net/mlx4/mlx4_en.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/mlx4/mlx4_en.h b/drivers/net/mlx4/mlx4_en.h
index 2d76ff4c564b..4513fb4960dc 100644
--- a/drivers/net/mlx4/mlx4_en.h
+++ b/drivers/net/mlx4/mlx4_en.h
@@ -274,13 +274,11 @@ struct mlx4_en_tx_ring {
274}; 274};
275 275
276struct mlx4_en_rx_desc { 276struct mlx4_en_rx_desc {
277 struct mlx4_wqe_srq_next_seg next;
278 /* actual number of entries depends on rx ring stride */ 277 /* actual number of entries depends on rx ring stride */
279 struct mlx4_wqe_data_seg data[0]; 278 struct mlx4_wqe_data_seg data[0];
280}; 279};
281 280
282struct mlx4_en_rx_ring { 281struct mlx4_en_rx_ring {
283 struct mlx4_srq srq;
284 struct mlx4_hwq_resources wqres; 282 struct mlx4_hwq_resources wqres;
285 struct mlx4_en_rx_alloc page_alloc[MLX4_EN_MAX_RX_FRAGS]; 283 struct mlx4_en_rx_alloc page_alloc[MLX4_EN_MAX_RX_FRAGS];
286 struct net_lro_mgr lro; 284 struct net_lro_mgr lro;
@@ -527,7 +525,7 @@ int mlx4_en_create_tx_ring(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ri
527void mlx4_en_destroy_tx_ring(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ring); 525void mlx4_en_destroy_tx_ring(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ring);
528int mlx4_en_activate_tx_ring(struct mlx4_en_priv *priv, 526int mlx4_en_activate_tx_ring(struct mlx4_en_priv *priv,
529 struct mlx4_en_tx_ring *ring, 527 struct mlx4_en_tx_ring *ring,
530 int cq, int srqn); 528 int cq);
531void mlx4_en_deactivate_tx_ring(struct mlx4_en_priv *priv, 529void mlx4_en_deactivate_tx_ring(struct mlx4_en_priv *priv,
532 struct mlx4_en_tx_ring *ring); 530 struct mlx4_en_tx_ring *ring);
533 531
@@ -544,7 +542,7 @@ int mlx4_en_process_rx_cq(struct net_device *dev,
544 int budget); 542 int budget);
545int mlx4_en_poll_rx_cq(struct napi_struct *napi, int budget); 543int mlx4_en_poll_rx_cq(struct napi_struct *napi, int budget);
546void mlx4_en_fill_qp_context(struct mlx4_en_priv *priv, int size, int stride, 544void mlx4_en_fill_qp_context(struct mlx4_en_priv *priv, int size, int stride,
547 int is_tx, int rss, int qpn, int cqn, int srqn, 545 int is_tx, int rss, int qpn, int cqn,
548 struct mlx4_qp_context *context); 546 struct mlx4_qp_context *context);
549void mlx4_en_sqp_event(struct mlx4_qp *qp, enum mlx4_event event); 547void mlx4_en_sqp_event(struct mlx4_qp *qp, enum mlx4_event event);
550int mlx4_en_map_buffer(struct mlx4_buf *buf); 548int mlx4_en_map_buffer(struct mlx4_buf *buf);