mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
Fix API mismatch exposed by lagg.
When destroying a lagg the driver tries to restore the old mac and fails due to API mismatch
This commit is contained in:
parent
d480f5b820
commit
df5f4d8202
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257542
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user