net/core: revert "net: fix __netdev_update_features return.." and add comment
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Tue, 17 Nov 2015 14:49:06 +0000 (15:49 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 22 Jan 2016 21:40:09 +0000 (21:40 +0000)
commit89d3665e83412ed0d58b3345a613c55ffc40977a
tree3ac55370244c6b201f454b98cd25f783bc8050d8
parentf9886587f589c03f657ce7a0663adf0f509ac4b7
net/core: revert "net: fix __netdev_update_features return.." and add comment

commit 17b85d29e82cc3c874a497a8bc5764d6a2b043e2 upstream.

This reverts commit 00ee59271777 ("net: fix __netdev_update_features return
on ndo_set_features failure")
and adds a comment explaining why it's okay to return a value other than
0 upon error. Some drivers might actually change flags and return an
error so it's better to fire a spurious notification rather than miss
these.

CC: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/core/dev.c