mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 10:01:25 +00:00
Revert "net: bonding: fix error return code of bond_neigh_init()"
This reverts commit 2055a99da8
.
This change rejects legitimate configurations.
A slave doesn't need to exist nor implement ndo_slave_setup.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
451b2596f5
commit
080bfa1e6d
1 changed files with 2 additions and 6 deletions
|
@ -3978,15 +3978,11 @@ static int bond_neigh_init(struct neighbour *n)
|
||||||
|
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
slave = bond_first_slave_rcu(bond);
|
slave = bond_first_slave_rcu(bond);
|
||||||
if (!slave) {
|
if (!slave)
|
||||||
ret = -EINVAL;
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
|
||||||
slave_ops = slave->dev->netdev_ops;
|
slave_ops = slave->dev->netdev_ops;
|
||||||
if (!slave_ops->ndo_neigh_setup) {
|
if (!slave_ops->ndo_neigh_setup)
|
||||||
ret = -EINVAL;
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO: find another way [1] to implement this.
|
/* TODO: find another way [1] to implement this.
|
||||||
* Passing a zeroed structure is fragile,
|
* Passing a zeroed structure is fragile,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue