From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Kicinski Subject: Re: [RFC bpf-next 2/6] net: xdp: RX meta data infrastructure Date: Fri, 6 Jul 2018 18:20:47 -0700 Message-ID: <20180706182047.0885297f@cakuba.netronome.com> References: <20180627024615.17856-3-saeedm@mellanox.com> <20180703230137.hdoy2fujz3x4oeij@ast-mbp.dhcp.thefacebook.com> <13f973a9937834ae8c10bfcc7d90909e94c543f1.camel@mellanox.com> <65b964eb-9ee1-9fd8-d54a-9290377eb1e4@iogearbox.net> <20180705101800.3c5d6af0@cakuba.netronome.com> <20180706163041.xstyfednmgho23m3@ast-mbp.dhcp.thefacebook.com> <1530909863.4291.12.camel@intel.com> <20180706233819.hqpxvoht7ijb5zqe@ast-mbp.dhcp.thefacebook.com> <1530920986.7664.5.camel@intel.com> <20180706174043.14a8145a@cakuba.netronome.com> <20180707010012.vzn455zmba4ocsqd@ast-mbp.dhcp.thefacebook.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "Waskiewicz Jr, Peter" , "Duyck, Alexander H" , "daniel@iogearbox.net" , "saeedm@mellanox.com" , "brouer@redhat.com" , "borkmann@iogearbox.net" , "tariqt@mellanox.com" , "john.fastabend@gmail.com" , "netdev@vger.kernel.org" , "saeedm@dev.mellanox.co.il" To: Alexei Starovoitov Return-path: Received: from mail-qt0-f196.google.com ([209.85.216.196]:33139 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753450AbeGGBUw (ORCPT ); Fri, 6 Jul 2018 21:20:52 -0400 Received: by mail-qt0-f196.google.com with SMTP id l10-v6so11437769qtj.0 for ; Fri, 06 Jul 2018 18:20:52 -0700 (PDT) In-Reply-To: <20180707010012.vzn455zmba4ocsqd@ast-mbp.dhcp.thefacebook.com> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 6 Jul 2018 18:00:13 -0700, Alexei Starovoitov wrote: > On Fri, Jul 06, 2018 at 05:40:43PM -0700, Jakub Kicinski wrote: > > > > Could we just say that at the start we expose only existing SKB fields > > (csum, hash, mark) and the meaning of the is the same as in the SKB? > > what would be the meaning of 'hash' ? Over which fields? > Does it support inner and outer packets? How about udp encap (vxlan and friends) ? We don't seem to need to answer that for the rest of the stack, no? We can expose the "hash type" field as well if that's *really* necessary. > Same question of csum... tcp only? Shouldn't we just stick to CHECKSUM_COMPLETE? > how about crc for sctp? That's harder to answer. Can cls_bpf access such info? > What is 'mark' ? Same thing it would be on an skb. Most likely set with an offloaded TC rule?