]> git.baikalelectronics.ru Git - kernel.git/commit
net: add change_carrier netdev op
authorJiri Pirko <jiri@resnulli.us>
Thu, 27 Dec 2012 23:49:37 +0000 (23:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Dec 2012 23:24:18 +0000 (15:24 -0800)
commitad8e8caa3c78c06d15359ac89fec95b20475baee
tree09f7e45f4db6dc8fefd2910286aa3b0fcc5d50c2
parent7c3e3310a900ddb352b598aea2acdf051cd4f48e
net: add change_carrier netdev op

This allows a driver to register change_carrier callback which will be
called whenever user will like to change carrier state. This is useful
for devices like dummy, gre, team and so on.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c