Message ID | 42d42073b18a4cc0aebbc912fcc14788693c0c75.1428522001.git.jbenc@redhat.com |
---|---|
State | Accepted, archived |
Delegated to: | stephen hemminger |
Headers | show |
On Wed, Apr 08, 2015 at 09:42:00PM +0200, Jiri Benc wrote: > Fixes: d116ff34145b0 ("ip netns: Fix rtnl error while print netns list") > Signed-off-by: Jiri Benc <jbenc@redhat.com> > --- > The whole check added by d116ff34145b0 is dubious, though. This should be > a run time check, not a compile time one. > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index 631938e97206..e54f4b6db5e8 100755 > --- a/configure > +++ b/configure > @@ -224,7 +224,7 @@ check_netnsid() > #include <linux/rtnetlink.h> > int test_def = RTM_GETNSID; > EOF > - $CC -c $TMPDIR/netnsid.c >/dev/null 2>&1 > + $CC -I$INCLUDE -c $TMPDIR/netnsid.c >/dev/null 2>&1 > if [ $? -eq 0 ] > then > echo "IP_CONFIG_NETNSID:=y" >> Config > -- > 1.8.3.1 > Hi, On 3.18 I get same RTNL error with this fix, I agree that runtime checking would be better than compile time checking, but how to do it, suppress RTNL errors ? Regards, -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Le 08/04/2015 21:40, Vadim Kochan a écrit : > On Wed, Apr 08, 2015 at 09:42:00PM +0200, Jiri Benc wrote: >> Fixes: d116ff34145b0 ("ip netns: Fix rtnl error while print netns list") >> Signed-off-by: Jiri Benc <jbenc@redhat.com> >> --- >> The whole check added by d116ff34145b0 is dubious, though. This should be >> a run time check, not a compile time one. [snip] > > On 3.18 I get same RTNL error with this fix, I agree that runtime checking > would be better than compile time checking, but how to do it, suppress > RTNL errors ? I also hit this issue. This whole check is done only to bypass some fprintf(stderr) messages from rtnl_talk(). I think adding a mechanism like iplink_have_newlink() should be enough. If nobody wants to do it, I will look at this on Monday. Regards, Nicolas -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, 8 Apr 2015 21:42:00 +0200 Jiri Benc <jbenc@redhat.com> wrote: > Fixes: d116ff34145b0 ("ip netns: Fix rtnl error while print netns list") > Signed-off-by: Jiri Benc <jbenc@redhat.com> > --- > The whole check added by d116ff34145b0 is dubious, though. This should be > a run time check, not a compile time one. > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index 631938e97206..e54f4b6db5e8 100755 > --- a/configure > +++ b/configure > @@ -224,7 +224,7 @@ check_netnsid() > #include <linux/rtnetlink.h> > int test_def = RTM_GETNSID; > EOF > - $CC -c $TMPDIR/netnsid.c >/dev/null 2>&1 > + $CC -I$INCLUDE -c $TMPDIR/netnsid.c >/dev/null 2>&1 > if [ $? -eq 0 ] > then > echo "IP_CONFIG_NETNSID:=y" >> Config Merged, but always up for a better solution in future. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/configure b/configure index 631938e97206..e54f4b6db5e8 100755 --- a/configure +++ b/configure @@ -224,7 +224,7 @@ check_netnsid() #include <linux/rtnetlink.h> int test_def = RTM_GETNSID; EOF - $CC -c $TMPDIR/netnsid.c >/dev/null 2>&1 + $CC -I$INCLUDE -c $TMPDIR/netnsid.c >/dev/null 2>&1 if [ $? -eq 0 ] then echo "IP_CONFIG_NETNSID:=y" >> Config
Fixes: d116ff34145b0 ("ip netns: Fix rtnl error while print netns list") Signed-off-by: Jiri Benc <jbenc@redhat.com> --- The whole check added by d116ff34145b0 is dubious, though. This should be a run time check, not a compile time one. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)