diff options
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c index 9d4a1ea030d8..f71fba97d786 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c | |||
@@ -160,6 +160,7 @@ static int mlx4_en_dcbnl_ieee_setpfc(struct net_device *dev, | |||
160 | struct ieee_pfc *pfc) | 160 | struct ieee_pfc *pfc) |
161 | { | 161 | { |
162 | struct mlx4_en_priv *priv = netdev_priv(dev); | 162 | struct mlx4_en_priv *priv = netdev_priv(dev); |
163 | struct mlx4_en_port_profile *prof = priv->prof; | ||
163 | struct mlx4_en_dev *mdev = priv->mdev; | 164 | struct mlx4_en_dev *mdev = priv->mdev; |
164 | int err; | 165 | int err; |
165 | 166 | ||
@@ -169,15 +170,17 @@ static int mlx4_en_dcbnl_ieee_setpfc(struct net_device *dev, | |||
169 | pfc->mbc, | 170 | pfc->mbc, |
170 | pfc->delay); | 171 | pfc->delay); |
171 | 172 | ||
172 | priv->prof->rx_pause = priv->prof->tx_pause = !!pfc->pfc_en; | 173 | prof->rx_pause = !!pfc->pfc_en; |
173 | priv->prof->rx_ppp = priv->prof->tx_ppp = pfc->pfc_en; | 174 | prof->tx_pause = !!pfc->pfc_en; |
175 | prof->rx_ppp = pfc->pfc_en; | ||
176 | prof->tx_ppp = pfc->pfc_en; | ||
174 | 177 | ||
175 | err = mlx4_SET_PORT_general(mdev->dev, priv->port, | 178 | err = mlx4_SET_PORT_general(mdev->dev, priv->port, |
176 | priv->rx_skb_size + ETH_FCS_LEN, | 179 | priv->rx_skb_size + ETH_FCS_LEN, |
177 | priv->prof->tx_pause, | 180 | prof->tx_pause, |
178 | priv->prof->tx_ppp, | 181 | prof->tx_ppp, |
179 | priv->prof->rx_pause, | 182 | prof->rx_pause, |
180 | priv->prof->rx_ppp); | 183 | prof->rx_ppp); |
181 | if (err) | 184 | if (err) |
182 | en_err(priv, "Failed setting pause params\n"); | 185 | en_err(priv, "Failed setting pause params\n"); |
183 | 186 | ||