diff options
-rw-r--r-- | drivers/net/mlx4/en_netdev.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c index 7bcc49de1637..be487fa8d9a7 100644 --- a/drivers/net/mlx4/en_netdev.c +++ b/drivers/net/mlx4/en_netdev.c | |||
@@ -559,7 +559,6 @@ int mlx4_en_start_port(struct net_device *dev) | |||
559 | struct mlx4_en_rx_ring *rx_ring; | 559 | struct mlx4_en_rx_ring *rx_ring; |
560 | int rx_index = 0; | 560 | int rx_index = 0; |
561 | int tx_index = 0; | 561 | int tx_index = 0; |
562 | u16 stride; | ||
563 | int err = 0; | 562 | int err = 0; |
564 | int i; | 563 | int i; |
565 | int j; | 564 | int j; |
@@ -573,8 +572,6 @@ int mlx4_en_start_port(struct net_device *dev) | |||
573 | dev->mtu = min(dev->mtu, priv->max_mtu); | 572 | dev->mtu = min(dev->mtu, priv->max_mtu); |
574 | mlx4_en_calc_rx_buf(dev); | 573 | mlx4_en_calc_rx_buf(dev); |
575 | mlx4_dbg(DRV, priv, "Rx buf size:%d\n", priv->rx_skb_size); | 574 | mlx4_dbg(DRV, priv, "Rx buf size:%d\n", priv->rx_skb_size); |
576 | stride = roundup_pow_of_two(sizeof(struct mlx4_en_rx_desc) + | ||
577 | DS_SIZE * priv->num_frags); | ||
578 | /* Configure rx cq's and rings */ | 575 | /* Configure rx cq's and rings */ |
579 | for (i = 0; i < priv->rx_ring_num; i++) { | 576 | for (i = 0; i < priv->rx_ring_num; i++) { |
580 | cq = &priv->rx_cq[i]; | 577 | cq = &priv->rx_cq[i]; |