From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexei Starovoitov Subject: Re: [PATCH v10 08/12] bpf: add XDP_TX xdp_action for direct forwarding Date: Tue, 19 Jul 2016 14:53:12 -0700 Message-ID: <20160719215310.GF64618@ast-mbp.thefacebook.com> References: <1468955817-10604-1-git-send-email-bblanco@plumgrid.com> <1468955817-10604-9-git-send-email-bblanco@plumgrid.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: davem@davemloft.net, netdev@vger.kernel.org, Jamal Hadi Salim , Saeed Mahameed , Martin KaFai Lau , Jesper Dangaard Brouer , Ari Saha , Or Gerlitz , john.fastabend@gmail.com, hannes@stressinduktion.org, Thomas Graf , Tom Herbert , Daniel Borkmann , Tariq Toukan To: Brenden Blanco Return-path: Received: from mail-pf0-f195.google.com ([209.85.192.195]:33420 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751742AbcGSVxR (ORCPT ); Tue, 19 Jul 2016 17:53:17 -0400 Received: by mail-pf0-f195.google.com with SMTP id i6so2087996pfe.0 for ; Tue, 19 Jul 2016 14:53:17 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1468955817-10604-9-git-send-email-bblanco@plumgrid.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Jul 19, 2016 at 12:16:53PM -0700, Brenden Blanco wrote: > XDP enabled drivers must transmit received packets back out on the same > port they were received on when a program returns this action. > > Signed-off-by: Brenden Blanco > --- > include/uapi/linux/bpf.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h > index a517865..2b7076f 100644 > --- a/include/uapi/linux/bpf.h > +++ b/include/uapi/linux/bpf.h > @@ -449,6 +449,7 @@ enum xdp_action { > XDP_ABORTED = 0, > XDP_DROP, > XDP_PASS, > + XDP_TX, Acked-by: Alexei Starovoitov