netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* net-next tree broken with CONFIG_NETFILTER_INGRESS=n
@ 2016-09-29  6:23 Marcel Holtmann
  2016-10-05  7:48 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2016-09-29  6:23 UTC (permalink / raw)
  To: Network Development

Hi Dave,

the net-next tree is broken since a few days now when CONFIG_NETFILTER_INGRESS=n is set.

  CC      net/netfilter/core.o
In file included from ./include/linux/linkage.h:4:0,
                 from ./include/linux/kernel.h:6,
                 from net/netfilter/core.c:10:
net/netfilter/core.c: In function ‘nf_set_hooks_head’:
net/netfilter/core.c:96:30: error: ‘struct net_device’ has no member named ‘nf_hooks_ingress’
   rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
                              ^
./include/linux/compiler.h:299:17: note: in definition of macro ‘WRITE_ONCE’
  union { typeof(x) __val; char __c[1]; } __u = \
                 ^
Regards

Marcel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: net-next tree broken with CONFIG_NETFILTER_INGRESS=n
  2016-09-29  6:23 net-next tree broken with CONFIG_NETFILTER_INGRESS=n Marcel Holtmann
@ 2016-10-05  7:48 ` Marcel Holtmann
  2016-10-05  8:01   ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2016-10-05  7:48 UTC (permalink / raw)
  To: Network Development, David S. Miller, Aaron Conole,
	Florian Westphal, Pablo Neira Ayuso

Hi Dave,

> the net-next tree is broken since a few days now when CONFIG_NETFILTER_INGRESS=n is set.
> 
>  CC      net/netfilter/core.o
> In file included from ./include/linux/linkage.h:4:0,
>                 from ./include/linux/kernel.h:6,
>                 from net/netfilter/core.c:10:
> net/netfilter/core.c: In function ‘nf_set_hooks_head’:
> net/netfilter/core.c:96:30: error: ‘struct net_device’ has no member named ‘nf_hooks_ingress’
>   rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
>                              ^
> ./include/linux/compiler.h:299:17: note: in definition of macro ‘WRITE_ONCE’
>  union { typeof(x) __val; char __c[1]; } __u = \

I really wonder what is going on here. Normally if you break the build, you fix it. However it seems nobody really cares enough. If I am not mistaken, then this patch broke it:

commit e3b37f11e6e4e6b6f02cc762f182ce233d2c1c9d
Author: Aaron Conole <aconole@bytheb.org>
Date:   Wed Sep 21 11:35:07 2016 -0400

    netfilter: replace list_head with single linked list
    
    The netfilter hook list never uses the prev pointer, and so can be trimmed to
    be a simple singly-linked list.

It is funny that it would have been obvious to test CONFIG_NETFILTER_INGRESS=n since there is an ifdef right in the first hunk of the patch.

        struct netdev_queue __rcu *ingress_queue;
 #ifdef CONFIG_NETFILTER_INGRESS
-       struct list_head        nf_hooks_ingress;
+       struct nf_hook_entry __rcu *nf_hooks_ingress;
 #endif

Regards

Marcel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: net-next tree broken with CONFIG_NETFILTER_INGRESS=n
  2016-10-05  7:48 ` Marcel Holtmann
@ 2016-10-05  8:01   ` David Miller
  2016-10-05  8:51     ` Florian Westphal
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2016-10-05  8:01 UTC (permalink / raw)
  To: marcel; +Cc: netdev, aconole, fw, pablo

From: Marcel Holtmann <marcel@holtmann.org>
Date: Wed, 5 Oct 2016 09:48:42 +0200

> I really wonder what is going on here. Normally if you break the
> build, you fix it. However it seems nobody really cares enough. If I
> am not mistaken, then this patch broke it:

The people who can work on and merge the fix are travelling and
conferencing in Tokyo right now, that's why this wasn't fixed
instantaneously.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: net-next tree broken with CONFIG_NETFILTER_INGRESS=n
  2016-10-05  8:01   ` David Miller
@ 2016-10-05  8:51     ` Florian Westphal
  0 siblings, 0 replies; 4+ messages in thread
From: Florian Westphal @ 2016-10-05  8:51 UTC (permalink / raw)
  To: David Miller; +Cc: marcel, netdev, aconole, fw, pablo

David Miller <davem@davemloft.net> wrote:
> From: Marcel Holtmann <marcel@holtmann.org>
> Date: Wed, 5 Oct 2016 09:48:42 +0200
> 
> > I really wonder what is going on here. Normally if you break the
> > build, you fix it. However it seems nobody really cares enough. If I
> > am not mistaken, then this patch broke it:
> 
> The people who can work on and merge the fix are travelling and
> conferencing in Tokyo right now, that's why this wasn't fixed
> instantaneously.

Seems the fix is rotting in nf-next....

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-05  8:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-29  6:23 net-next tree broken with CONFIG_NETFILTER_INGRESS=n Marcel Holtmann
2016-10-05  7:48 ` Marcel Holtmann
2016-10-05  8:01   ` David Miller
2016-10-05  8:51     ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).