]> bbs.cooldavid.org Git - net-next-2.6.git/commit
netfilter: nfnetlink_queue: some optimizations
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 9 Jun 2010 16:07:06 +0000 (18:07 +0200)
committerPatrick McHardy <kaber@trash.net>
Wed, 9 Jun 2010 16:07:06 +0000 (18:07 +0200)
commitc463ac972315a0c86bb20b8d35225baa75caf899
treefccefe1583f3d8a64aca969ec299b60da473d5e1
parent144ad2a6c56b6109ff0f64074863ae5cf1c1698a
netfilter: nfnetlink_queue: some optimizations

- Use an atomic_t for id_sequence to avoid a spin_lock/spin_unlock pair

- Group highly modified struct nfqnl_instance fields together

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/nfnetlink_queue.c