]> git.baikalelectronics.ru Git - kernel.git/commit
net: dev_add_pack() & __dev_remove_pack() changes
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 2 Sep 2010 03:53:46 +0000 (03:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Sep 2010 17:12:06 +0000 (10:12 -0700)
commit7434e3d185ad8d911cef3955fa4a32cb2e40b237
treeb27cb3fa27c36ea65897c15fd0f73fed9c9fcdb7
parentc2e07735e71c4290702b46292efeeff98c4da3b6
net: dev_add_pack() & __dev_remove_pack() changes

Add a small helper ptype_head() to get the head to manipulate

dev_add_pack() & __dev_remove_pack() can use a spinlock without
blocking BH, since softirq use RCU, and these functions are run from
process context only.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c