]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: allow to pass data pointer to netlink_dump_start() callback
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 24 Feb 2012 14:30:16 +0000 (14:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Feb 2012 19:10:44 +0000 (14:10 -0500)
commit3174f7783fb1d01b92ed60f7a98b89a0ce5ec71a
treef9dfa5be72432611f63f659fbe07ef4fbd6052bd
parentf25a2e95b23317aedd134cc14636bb6038920897
netlink: allow to pass data pointer to netlink_dump_start() callback

This patch allows you to pass a data pointer that can be
accessed from the dump callback.

Netfilter is going to use this patch to provide filtered dumps
to user-space. This is specifically interesting in ctnetlink that
may handle lots of conntrack entries. We can save precious
cycles by skipping the conversion to TLV format of conntrack
entries that are not interesting for user-space.

More specifically, ctnetlink will include one operation to allow
to filter the dumping of conntrack entries by ctmark values.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h
net/netlink/af_netlink.c