diff options
author | Amir Vadai <amirv@mellanox.com> | 2012-11-28 15:43:15 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-28 20:15:32 +0400 |
commit | 29bb8f4a8d94d017700d09ee643483b0708cbd7b (patch) | |
tree | ca0d80ce4490a56bf0c7f60b8bfdda8ea63d307c /drivers/net/ethernet | |
parent | 92d64c261e77cb2a6117887617e2a629fea6b67c (diff) | |
download | linux-29bb8f4a8d94d017700d09ee643483b0708cbd7b.tar.xz |
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/net/ethernet')
-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 5d36795877cb..b799ab12a291 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; } |