From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Sutter Subject: Re: re iproute2 - don't return error on success fix Date: Thu, 27 Sep 2018 14:53:39 +0200 Message-ID: <20180927125339.GA14666@orbyte.nwl.cc> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Stephen Hemminger , David Ahern , Linux Netdev List , Roi Dayan To: Or Gerlitz Return-path: Received: from orbyte.nwl.cc ([151.80.46.58]:51372 "EHLO orbyte.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727112AbeI0TLu (ORCPT ); Thu, 27 Sep 2018 15:11:50 -0400 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: 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