From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 388E2C433FE for ; Thu, 9 Dec 2021 08:27:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234825AbhLIIbR (ORCPT ); Thu, 9 Dec 2021 03:31:17 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:21935 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234781AbhLIIbQ (ORCPT ); Thu, 9 Dec 2021 03:31:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639038462; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vI6c58+KogxxW+mn2T8IAIamTxq7omRdilnleuHfMf8=; b=XrjiLaDDdgTPjMwvLczD57/jRgNPUfOOAyJzWI9KqvwP+OZwp0OJ6qORnb+XtbpGd7mHIz pGGgOTbUKxOETVDJ/L4t/19nvyebf4AbVm6p/8sQ6thbjYtLme8+Nm/bs8U+mZ5+9gwmQ8 H/EVIDP8zBcGeuuDWGJKEUOcVIT7gsI= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-437-kzbhMe7rN6C1SlR6mSCLqg-1; Thu, 09 Dec 2021 03:27:41 -0500 X-MC-Unique: kzbhMe7rN6C1SlR6mSCLqg-1 Received: by mail-lf1-f72.google.com with SMTP id u20-20020a056512129400b0040373ffc60bso2329927lfs.15 for ; Thu, 09 Dec 2021 00:27:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:date:mime-version:user-agent:cc :subject:content-language:to:references:in-reply-to :content-transfer-encoding; bh=vI6c58+KogxxW+mn2T8IAIamTxq7omRdilnleuHfMf8=; b=f1HbhjI8wDCZq/Md1t1UcMc2srv7jw34Ww0Rf9Dw2xDPn4sG7Je8DLOlyS0kvbQRy2 zysEain5vYpj9pTQClJfHUC2y96qrtNGe2bDJtb5Q1tc7q5yXa7Q37SnX5o4IZTTmrol E0pmn1lSFwH7gR3qrEnXyxiuetrxEtPh9Z40qiHtofOzZzmPNb+wRd3rBpK8y1xykKYS 2adWXNCndv4+HWkkUWWW8lTZ01+ZPDRgfji2HYfuYnhqUQJ2DvILxlu66XGXsaGjcYuP fxENjon2iO3Kos5hm2b2qZ76Bwd5l4AnteiMz9tqT60SVgPOVBrFM+5iIs7JnafkdDBz tcvA== X-Gm-Message-State: AOAM532r8x5y6v64zMvQNrvqYsLu0yaasWhFojJXm7A5rwT+MMcDmiNt +tfFRwLBocn2p2UHhP2eBWUhyYoKjQWZ9g4BGNtK2EWIoFHqsL5Gj/jpMxQefmgZK95OvBXXh6f T9Ama7Rb3JtS6kKT5 X-Received: by 2002:ac2:58c3:: with SMTP id u3mr4511458lfo.103.1639038459922; Thu, 09 Dec 2021 00:27:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKqCqbVpt51CaUwHpbqJX0HXKDsb6ux7hU+HGfDgbZtG4GXp/sOpGTWxlKjSvSjzEtXMq55A== X-Received: by 2002:ac2:58c3:: with SMTP id u3mr4511426lfo.103.1639038459683; Thu, 09 Dec 2021 00:27:39 -0800 (PST) Received: from [192.168.0.50] (87-59-106-155-cable.dk.customer.tdc.net. [87.59.106.155]) by smtp.gmail.com with ESMTPSA id i3sm462850lfu.156.2021.12.09.00.27.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Dec 2021 00:27:38 -0800 (PST) From: Jesper Dangaard Brouer X-Google-Original-From: Jesper Dangaard Brouer Message-ID: <2811b35a-9179-88ce-d87a-e1f824851494@redhat.com> Date: Thu, 9 Dec 2021 09:27:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Cc: brouer@redhat.com, Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Maciej Fijalkowski , Michal Swiatkowski , Jithu Joseph , Martin KaFai Lau , Song Liu , KP Singh , Yonghong Song , Andrii Nakryiko , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH v4 net-next 2/9] i40e: respect metadata on XSK Rx to skb Content-Language: en-US To: Alexander Lobakin , intel-wired-lan@lists.osuosl.org References: <20211208140702.642741-1-alexandr.lobakin@intel.com> <20211208140702.642741-3-alexandr.lobakin@intel.com> In-Reply-To: <20211208140702.642741-3-alexandr.lobakin@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 08/12/2021 15.06, Alexander Lobakin wrote: > For now, if the XDP prog returns XDP_PASS on XSK, the metadata will > be lost as it doesn't get copied to the skb. I have an urge to add a newline here, when reading this, as IMHO it is a paragraph with the problem statement. > Copy it along with the frame headers. Account its size on skb > allocation, and when copying just treat it as a part of the frame > and do a pull after to "move" it to the "reserved" zone. Also newline here, as next paragraph are some extra details, you felt a need to explain to the reader. > net_prefetch() xdp->data_meta and align the copy size to speed-up > memcpy() a little and better match i40e_costruct_skb(). ^^^^^^xx^^^^^^^^^ You have a general misspelling of this function name in all of your commit messages. --Jesper