diff options
author | alfred <alfred@FreeBSD.org> | 2013-11-02 10:49:47 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2013-11-02 10:49:47 +0000 |
commit | 0b3e10d274a8d92815d514afcc3b43847d5a0d36 (patch) | |
tree | 5235f5432e675f65614e5bfa8123f539a5830e81 /sys/ofed | |
parent | 5b7377ea8ddbcd492362037f231b914c4e85207e (diff) | |
download | FreeBSD-src-0b3e10d274a8d92815d514afcc3b43847d5a0d36.zip FreeBSD-src-0b3e10d274a8d92815d514afcc3b43847d5a0d36.tar.gz |
Fix API mismatch exposed by lagg.
When destroying a lagg the driver tries to restore the old mac and
fails due to API mismatch
Diffstat (limited to 'sys/ofed')
-rw-r--r-- | sys/ofed/drivers/net/mlx4/en_netdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ofed/drivers/net/mlx4/en_netdev.c b/sys/ofed/drivers/net/mlx4/en_netdev.c index fd7a189..1ffe73a 100644 --- a/sys/ofed/drivers/net/mlx4/en_netdev.c +++ b/sys/ofed/drivers/net/mlx4/en_netdev.c @@ -633,8 +633,8 @@ int mlx4_en_start_port(struct net_device *dev) en_dbg(DRV, priv, "Setting mac for port %d\n", priv->port); err = mlx4_register_mac(mdev->dev, priv->port, mlx4_en_mac_to_u64(IF_LLADDR(dev))); - if (err) { - en_err(priv, "Failed setting port mac\n"); + if (err < 0) { + en_err(priv, "Failed setting port mac err=%d\n", err); goto tx_err; } mdev->mac_removed[priv->port] = 0; |