net: dev_add_pack() & __dev_remove_pack() changes
commitc07b68e841bd737e2ebeb57268d251c89ccc5010
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 2 Sep 2010 03:53:46 +0000 (2 03:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Sep 2010 17:12:06 +0000 (2 10:12 -0700)
treeb27cb3fa27c36ea65897c15fd0f73fed9c9fcdb7
parentc68839963426d42bdb2c915b435f9860d060e645
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