]> Pileus Git - ~andy/linux/commit
tipc: optimize the initialization of network device notifier
authorYing Xue <ying.xue@windriver.com>
Thu, 16 Aug 2012 12:09:06 +0000 (12:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Aug 2012 09:26:30 +0000 (02:26 -0700)
commitfa7f86f1bb5d8f08d10442a546252d2670b26f41
tree5d778d60fbaeeebdf5c1022e577d62445d1221e2
parentfff3321d75b1a18231876a1aceb36eacbbf6221e
tipc: optimize the initialization of network device notifier

Ethernet media initialization is only done when TIPC is started or
switched to network mode. So the initialization of the network device
notifier structure can be moved out of this function and done
statically instead.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/eth_media.c