OSDN Git Service

net: dsa: rollback bridging on error
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 3 Feb 2017 18:20:18 +0000 (13:20 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2017 21:53:28 +0000 (16:53 -0500)
commit9c26542685130ef3b55cdb4e04eec0ac33376b41
tree46a9c7f7c66783b327f287abbdacb7592acb1891
parent8e92ab3a426e04dc355b196e3b4474f633025a3b
net: dsa: rollback bridging on error

When an error is returned during the bridging of a port in a
NETDEV_CHANGEUPPER event, net/core/dev.c rolls back the operation.

Be consistent and unassign dp->bridge_dev when this happens.

In the meantime, add comments to document this behavior.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c