Re: [PATCH net-next 1/4] net: add event_list to struct net and provide utility functions

2016-02-02 Thread Salam Noureddine
On Tue, Feb 2, 2016 at 12:01 PM, Julian Anastasov wrote: >> +#ifdef CONFIG_NET_NS >> +static inline void net_add_event_list(struct list_head *head, struct net >> *net) >> +{ >> + if (!list_empty(&net->event_list)) > > Above check looks inverted, it works may be > because INIT_LIST_HE

Re: [PATCH net-next 1/4] net: add event_list to struct net and provide utility functions

2016-02-02 Thread Julian Anastasov
Hello, On Mon, 1 Feb 2016, Salam Noureddine wrote: > +#ifdef CONFIG_NET_NS > +static inline void net_add_event_list(struct list_head *head, struct net > *net) > +{ > + if (!list_empty(&net->event_list)) Above check looks inverted, it works may be because INIT_LIST_HEAD(&net

[PATCH net-next 1/4] net: add event_list to struct net and provide utility functions

2016-02-01 Thread Salam Noureddine
Signed-off-by: Salam Noureddine --- include/net/net_namespace.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 4089abc..4cf47de 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h

[PATCH net-next 1/4] net: add event_list to struct net and provide utility functions

2016-01-04 Thread Salam Noureddine
Signed-off-by: Salam Noureddine --- include/net/net_namespace.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 4089abc..4cf47de 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h