[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150107195233.GA1898@nanopsycho.orion>
Date: Wed, 7 Jan 2015 20:52:33 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Cong Wang <cwang@...pensource.com>
Cc: netdev <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Jamal Hadi Salim <jhs@...atatu.com>,
Stephen Hemminger <stephen@...workplumber.org>
Subject: Re: [patch iproute2 2/2] tc: add support for BPF based actions
Wed, Jan 07, 2015 at 07:50:47PM CET, cwang@...pensource.com wrote:
>On Wed, Jan 7, 2015 at 8:47 AM, Jiri Pirko <jiri@...nulli.us> wrote:
>> + fprintf(stderr, "Usage: ... bpf ...\n");
>> + fprintf(stderr, "\n");
>> + fprintf(stderr, " [inline]: run bytecode BPF_BYTECODE\n");
>> + fprintf(stderr, " [from file]: run bytecode-file FILE\n");
>> + fprintf(stderr, "\n");
>> + fprintf(stderr, "Where BPF_BYTECODE := \'s,c t f k,c t f k,c t f k,...\'\n");
>> + fprintf(stderr, " c,t,f,k and s are decimals; s denotes number of 4-tuples\n");
>> + fprintf(stderr, "Where FILE points to a file containing the BPF_BYTECODE string\n");
>> + fprintf(stderr, "\nACTION_SPEC := ... look at individual actions\n");
>> + fprintf(stderr, "NOTE: CLASSID is parsed as hexadecimal input.\n");
>
>Can we just use BPF transparently for gact?
Why to squash it there? I think it is much clearer to do this
separatelly.
>It is never user-friendly to
>use this kind of bytecode even though I know there is a tool to "compile"
>BPF.
Please see cls_bpf. It's already in-tree for some time. act_bpf just
completes this.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists