[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170719143527.GA11503@splinter>
Date: Wed, 19 Jul 2017 17:35:27 +0300
From: Ido Schimmel <idosch@...lanox.com>
To: David Ahern <dsahern@...il.com>
Cc: Jiri Pirko <jiri@...nulli.us>, netdev@...r.kernel.org,
davem@...emloft.net, mlxsw@...lanox.com, roopa@...ulusnetworks.com,
nikolay@...ulusnetworks.com, kafai@...com,
hannes@...essinduktion.org, yoshfuji@...ux-ipv6.org,
edumazet@...gle.com, yanhaishuang@...s.chinamobile.com
Subject: Re: [patch net-next 01/17] net: core: Make the FIB notification
chain generic
On Wed, Jul 19, 2017 at 08:11:56AM -0600, David Ahern wrote:
> On 7/19/17 1:02 AM, Jiri Pirko wrote:
> > +struct fib_notifier_ops *
> > +fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net)
> > +{
> > + struct fib_notifier_ops *ops;
> > + int err;
> > +
> > + ops = kmemdup(tmpl, sizeof(*ops), GFP_KERNEL);
>
> why allocate memory to copy the ops?
It contains a list pointer that I use to list all the registered
families in each net namespace. Same pattern used in FIB rules.
Powered by blists - more mailing lists