diff options
Diffstat (limited to 'drivers/net/mlx4/mlx4_en.h')
-rw-r--r-- | drivers/net/mlx4/mlx4_en.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/mlx4/mlx4_en.h b/drivers/net/mlx4/mlx4_en.h index fcbfcfc11568..4de8db00809d 100644 --- a/drivers/net/mlx4/mlx4_en.h +++ b/drivers/net/mlx4/mlx4_en.h | |||
@@ -139,8 +139,10 @@ enum { | |||
139 | #define MLX4_EN_MIN_RX_SIZE (MLX4_EN_ALLOC_SIZE / SMP_CACHE_BYTES) | 139 | #define MLX4_EN_MIN_RX_SIZE (MLX4_EN_ALLOC_SIZE / SMP_CACHE_BYTES) |
140 | #define MLX4_EN_MIN_TX_SIZE (4096 / TXBB_SIZE) | 140 | #define MLX4_EN_MIN_TX_SIZE (4096 / TXBB_SIZE) |
141 | 141 | ||
142 | #define MLX4_EN_TX_RING_NUM 9 | 142 | #define MLX4_EN_SMALL_PKT_SIZE 64 |
143 | #define MLX4_EN_DEF_TX_RING_SIZE 1024 | 143 | #define MLX4_EN_NUM_TX_RINGS 8 |
144 | #define MLX4_EN_NUM_PPP_RINGS 8 | ||
145 | #define MLX4_EN_DEF_TX_RING_SIZE 512 | ||
144 | #define MLX4_EN_DEF_RX_RING_SIZE 1024 | 146 | #define MLX4_EN_DEF_RX_RING_SIZE 1024 |
145 | 147 | ||
146 | /* Target number of packets to coalesce with interrupt moderation */ | 148 | /* Target number of packets to coalesce with interrupt moderation */ |
@@ -478,7 +480,6 @@ struct mlx4_en_priv { | |||
478 | int base_qpn; | 480 | int base_qpn; |
479 | 481 | ||
480 | struct mlx4_en_rss_map rss_map; | 482 | struct mlx4_en_rss_map rss_map; |
481 | u16 tx_prio_map[8]; | ||
482 | u32 flags; | 483 | u32 flags; |
483 | #define MLX4_EN_FLAG_PROMISC 0x1 | 484 | #define MLX4_EN_FLAG_PROMISC 0x1 |
484 | u32 tx_ring_num; | 485 | u32 tx_ring_num; |
@@ -526,6 +527,7 @@ int mlx4_en_arm_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq); | |||
526 | 527 | ||
527 | void mlx4_en_poll_tx_cq(unsigned long data); | 528 | void mlx4_en_poll_tx_cq(unsigned long data); |
528 | void mlx4_en_tx_irq(struct mlx4_cq *mcq); | 529 | void mlx4_en_tx_irq(struct mlx4_cq *mcq); |
530 | u16 mlx4_en_select_queue(struct net_device *dev, struct sk_buff *skb); | ||
529 | int mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev); | 531 | int mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev); |
530 | 532 | ||
531 | int mlx4_en_create_tx_ring(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ring, | 533 | int mlx4_en_create_tx_ring(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ring, |
@@ -560,7 +562,6 @@ void mlx4_en_calc_rx_buf(struct net_device *dev); | |||
560 | void mlx4_en_set_default_rss_map(struct mlx4_en_priv *priv, | 562 | void mlx4_en_set_default_rss_map(struct mlx4_en_priv *priv, |
561 | struct mlx4_en_rss_map *rss_map, | 563 | struct mlx4_en_rss_map *rss_map, |
562 | int num_entries, int num_rings); | 564 | int num_entries, int num_rings); |
563 | void mlx4_en_set_prio_map(struct mlx4_en_priv *priv, u16 *prio_map, u32 ring_num); | ||
564 | int mlx4_en_config_rss_steer(struct mlx4_en_priv *priv); | 565 | int mlx4_en_config_rss_steer(struct mlx4_en_priv *priv); |
565 | void mlx4_en_release_rss_steer(struct mlx4_en_priv *priv); | 566 | void mlx4_en_release_rss_steer(struct mlx4_en_priv *priv); |
566 | int mlx4_en_free_tx_buf(struct net_device *dev, struct mlx4_en_tx_ring *ring); | 567 | int mlx4_en_free_tx_buf(struct net_device *dev, struct mlx4_en_tx_ring *ring); |