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)
commit4bf84c35c65f36a344fb7a6cde6274df4120efb8
tree09f7e45f4db6dc8fefd2910286aa3b0fcc5d50c2
parentb5a05550b76fe5b934b6f3b7f4b36ae9513745f6
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