aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2013-08-21 03:08:55 -0400
committerDavid S. Miller <davem@davemloft.net>2013-08-21 15:19:26 -0400
commit5c044e6368995e6590b616aa0043fe03670aefaa (patch)
tree27206531fd440a967a5ad30a224cf2c1d4aefa8c /drivers/net/ethernet/mellanox
parentf6ae5acff5031ca313e29c5006c16e3020d74d23 (diff)
net/mlx4_en: Coding style cleanup in mlx4_en_dcbnl_ieee_setpfc()
Fix some coding style issues in this function. Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c15
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