From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH bpf-next 0/7] Add XDP_ATTACH bind() flag to AF_XDP sockets Date: Sat, 8 Dec 2018 21:48:19 +0100 Message-ID: <20181208204819.GH25144@lunn.ch> References: <20181207114431.18038-1-bjorn.topel@gmail.com> <20181207212107.365ueu5zale4r46z@ast-mbp.dhcp.thefacebook.com> <20181208161212.560db94d@redhat.com> <20181208165505.GA25144@lunn.ch> <20181208213726.4b33f7f7@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexei Starovoitov , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , magnus.karlsson@intel.com, magnus.karlsson@gmail.com, ast@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org, =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , u9012063@gmail.com, qi.z.zhang@intel.com To: Jesper Dangaard Brouer Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:39321 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbeLHUs0 (ORCPT ); Sat, 8 Dec 2018 15:48:26 -0500 Content-Disposition: inline In-Reply-To: <20181208213726.4b33f7f7@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: > That is not how XDP works. XDP must run on the "master" physical driver > interface, as the "slave" interface is a virtual DSA interface. I did > mention DSA because I'm handling that on the EspressoBin implementation. Hi Jesper It is going to be interesting to see how you do that. As a user, i want to attach the XDP program to a slave interface. So i assume you somehow redirect that to the master, with some extra meta data to allow XDP on the master to detect packets for a specific slave? Andrew