Skip to content

Commit

Permalink
netpoll: copy dev name of slaves to struct netpoll
Browse files Browse the repository at this point in the history
Otherwise we will not see the name of the slave dev in error
message:

[  388.469446] (null):  doesn't support polling, aborting.

Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
WANG Cong authored and David S. Miller committed Jun 19, 2011
1 parent 9aa3c94 commit cefa999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,7 @@ static inline int slave_enable_netpoll(struct slave *slave)
goto out;

np->dev = slave->dev;
strlcpy(np->dev_name, slave->dev->name, IFNAMSIZ);
err = __netpoll_setup(np);
if (err) {
kfree(np);
Expand Down
1 change: 1 addition & 0 deletions net/bridge/br_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ int br_netpoll_enable(struct net_bridge_port *p)
goto out;

np->dev = p->dev;
strlcpy(np->dev_name, p->dev->name, IFNAMSIZ);

err = __netpoll_setup(np);
if (err) {
Expand Down

0 comments on commit cefa999

Please sign in to comment.