Commit 29bb8f4a authored by Amir Vadai's avatar Amir Vadai Committed by David S. Miller

net/mlx4_en: Can set maxrate only for TC0

Had a typo in memcpy.
Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 92d64c26
...@@ -237,7 +237,7 @@ static int mlx4_en_dcbnl_ieee_setmaxrate(struct net_device *dev, ...@@ -237,7 +237,7 @@ static int mlx4_en_dcbnl_ieee_setmaxrate(struct net_device *dev,
if (err) if (err)
return err; return err;
memcpy(priv->maxrate, tmp, sizeof(*priv->maxrate)); memcpy(priv->maxrate, tmp, sizeof(priv->maxrate));
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment