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 E5E38C433EF for ; Thu, 9 Dec 2021 08:27:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234845AbhLIIbR (ORCPT ); Thu, 9 Dec 2021 03:31:17 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:51095 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234807AbhLIIbQ (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-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-603-3yepEsVcPQCcarNO4bkr3A-1; Thu, 09 Dec 2021 03:27:41 -0500 X-MC-Unique: 3yepEsVcPQCcarNO4bkr3A-1 Received: by mail-lj1-f199.google.com with SMTP id i123-20020a2e2281000000b0021cfde1fa8eso1539282lji.7 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=TXwJ2XXrMo8Og30/9WFcwrVhYQJrMUke99A7PLDXMpQ1d0fzZtRUVK1w5KspZfPkn3 te9WcwvvKTN8wtj3Zt6UjIXFo85uYbsCYaFaRl6v59SPmqPJuT3Z0Om1rNn+gW7NudB0 iGRb15f2kYe7g7joFLAztQWqULXmaHZUuX/ytBoQ+jyGq5zJS2zzw3v3JoCIPinXt00K lxaQy7eZm0+X5cA/zsOq4GtVY5AJyiLVQqexR7YKuG++3ZPl77pUbaL2A+kN/mAJ4nNp ywDvM6qOA0l3tdFfhXhltCZeLtyUKgAtUThI1V/BrBaGCrJmkv0ortWEcPFditwVJRhz q33Q== X-Gm-Message-State: AOAM53088rfmpTdr8JJe/P0ia38AydNPIMQWBqWUo9487nxeVIrumhft O3zHDHzRzloeZffT/F6QLzRLdTX0PitT3Xrd3kCjBwZeDJt9Z9hpIXZU42h9nHXWM/UC3uQcgK1 BG136Z8qqGR+PvVyZv92lahY1 X-Received: by 2002:ac2:58c3:: with SMTP id u3mr4511446lfo.103.1639038459920; 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: linux-kernel@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