diff options
author | Amir Vadai <amirv@mellanox.com> | 2012-11-28 13:43:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-28 11:15:32 -0500 |
commit | 29bb8f4a8d94d017700d09ee643483b0708cbd7b (patch) | |
tree | ca0d80ce4490a56bf0c7f60b8bfdda8ea63d307c /drivers | |
parent | 92d64c261e77cb2a6117887617e2a629fea6b67c (diff) |
net/mlx4_en: Can set maxrate only for TC0
Had a typo in memcpy.
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c index 5d36795877c..b799ab12a29 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c @@ -237,7 +237,7 @@ static int mlx4_en_dcbnl_ieee_setmaxrate(struct net_device *dev, if (err) return err; - memcpy(priv->maxrate, tmp, sizeof(*priv->maxrate)); + memcpy(priv->maxrate, tmp, sizeof(priv->maxrate)); return 0; } |