[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180604112524.1d5732e8@cakuba.netronome.com>
Date: Mon, 4 Jun 2018 11:25:24 -0700
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Phil Sutter <psutter@...hat.com>
Cc: Jesper Dangaard Brouer <brouer@...hat.com>,
Daniel Borkmann <daniel@...earbox.net>,
alexei.starovoitov@...il.com, netdev@...r.kernel.org,
Jakub Kicinski <kubakici@...pl>,
Quentin Monnet <quentin.monnet@...ronome.com>
Subject: Re: [PATCH bpf-next v3 05/11] bpf: avoid retpoline for
lookup/update/delete calls on maps
On Mon, 4 Jun 2018 13:02:25 +0200, Phil Sutter wrote:
> On Sun, Jun 03, 2018 at 07:08:55PM +0200, Jesper Dangaard Brouer wrote:
> > Secondly I personally *hate* how the 'ip' does it's short options
> > parsing and especially order/precedence ambiguity. Phil Sutter
> > (Fedora/RHEL iproute2 maintainer) have a funny quiz illustrating the
> > ambiguity issues.
>
> Hehe, yes. It's a classical case of something smart evolving into a
> pain: At first there's only 'ip link', so you allow 'ip l' as a
> shortcut. Then someone implements 'ip l2tp' - so what do you do?
Good example, I like that "ip l" shows me the links because that's what
99.99% of people want when they type that command ;)
> Establish a policy of abbreviation having to be unique and break
> existing behaviour or accept the mess and head on.
Commands are tested in order of addition so older ones take precedence.
The iproute2 behaviour was replicated in bpftool on purpose, because
it should be very familiar to people. It is to me at least. And IMHO
it's better to be consistent with a well known tool than have our own
quirks and rules...
> My suggestion would be to not get into the abbreviated subcommands
> business at all but instead ship and maintain a bash-completion script.
We prefer to have both :) Those of us who like to abbreviate can do
that, and others can use completions. I personally think Quentin did
an awesome job on the completions, they cover the entire syntax unlike
the iproute2 ones and we intend to keep them that way!
Powered by blists - more mailing lists