[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180927125339.GA14666@orbyte.nwl.cc>
Date: Thu, 27 Sep 2018 14:53:39 +0200
From: Phil Sutter <phil@....cc>
To: Or Gerlitz <gerlitz.or@...il.com>
Cc: Stephen Hemminger <stephen@...workplumber.org>,
David Ahern <dsahern@...il.com>,
Linux Netdev List <netdev@...r.kernel.org>,
Roi Dayan <roid@...lanox.com>
Subject: Re: re iproute2 - don't return error on success fix
Hi,
On Thu, Sep 27, 2018 at 03:22:41PM +0300, Or Gerlitz wrote:
> Something is still broken also after commit b45e300 "libnetlink: don't
> return error on success" - when error is returned, the error code is
> success..
>
> $ tc filter add dev enp33s0f0 protocol ip parent ffff: flower skip_sw
> ip_flags nofirstfrag action drop && echo "success" || echo "failed"
>
> RTNETLINK answers: Operation not supported
> success
Hmm, I can't reproduce this. My HEAD is at the commit you mentioned:
| % sudo ./tc/tc filter add dev d0 protocol ip parent ffff: flower skip_sw ip_flags nofirstfrag action drop
| RTNETLINK answers: Operation not supported
| We have an error talking to the kernel, -1
| % echo $?
| 2
Are you sure you tested the right binary?
Cheers, Phil
Powered by blists - more mailing lists