linux_dsm_epyc7002/net/decnet
Pablo Neira Ayuso a31f2d17b3 netlink: add netlink_kernel_cfg parameter to netlink_kernel_create
This patch adds the following structure:

struct netlink_kernel_cfg {
        unsigned int    groups;
        void            (*input)(struct sk_buff *skb);
        struct mutex    *cb_mutex;
};

That can be passed to netlink_kernel_create to set optional configurations
for netlink kernel sockets.

I've populated this structure by looking for NULL and zero parameters at the
existing code. The remaining parameters that always need to be set are still
left in the original interface.

That includes optional parameters for the netlink socket creation. This allows
easy extensibility of this interface in the future.

This patch also adapts all callers to use this new interface.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-06-29 16:46:02 -07:00
..
netfilter netlink: add netlink_kernel_cfg parameter to netlink_kernel_create 2012-06-29 16:46:02 -07:00
af_decnet.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
dn_dev.c net decnet: Convert to use register_net_sysctl 2012-04-20 21:22:29 -04:00
dn_fib.c netlink: Get rid of obsolete rtnetlink macros 2012-06-27 15:36:44 -07:00
dn_neigh.c net: use consume_skb() in place of kfree_skb() 2012-06-04 11:27:40 -04:00
dn_nsp_in.c net: Convert net_ratelimit uses to net_<level>_ratelimited 2012-05-15 13:45:03 -04:00
dn_nsp_out.c net: Remove casts to same type 2012-06-04 11:45:11 -04:00
dn_route.c decnet: Do not use RTA_PUT() macros 2012-06-27 15:36:44 -07:00
dn_rules.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
dn_table.c decnet: Do not use RTA_PUT() macros 2012-06-27 15:36:44 -07:00
dn_timer.c decnet: proper socket refcounting 2011-11-26 15:49:07 -05:00
Kconfig [NET]: Rethink mark field in struct flowi 2006-12-02 21:21:39 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
README Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sysctl_net_decnet.c net decnet: Convert to use register_net_sysctl 2012-04-20 21:22:29 -04:00
TODO Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00

                       Linux DECnet Project
                      ======================

The documentation for this kernel subsystem is available in the
Documentation/networking subdirectory of this distribution and also
on line at http://www.chygwyn.com/DECnet/

Steve Whitehouse <SteveW@ACM.org>