Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2302058rwo; Thu, 3 Aug 2023 07:36:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlGXSZqnjuV0ATKf5J6ABVY764PrnqJN7pn+RoEX1PfxRVx9FMkmVZpjn4IYuqooI6CcqW0s X-Received: by 2002:a05:6358:9184:b0:135:99fa:5040 with SMTP id j4-20020a056358918400b0013599fa5040mr11344988rwa.12.1691073361569; Thu, 03 Aug 2023 07:36:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691073361; cv=none; d=google.com; s=arc-20160816; b=f/7WAmadONLHsDnXMLVS/HG5eSNDrHxnfRrwFamaIScTvs0pz04uAuStif0vAi/dPB l0Co8FuJgjsGZY/KzCDFF2VFBdoLG2P0nKR6PJOMFtSOK2YWuM3iKZGR6g91Rd05gLAC v0mhGebOH2zk8+qKmtgGkCmE3h9lFKlMTBPBqRR8Cb4pcTrvVJkoPzwSW8QETmbGnB/g RxxeiIUDHd/Gln1ybaTRG5aXYkxDKjAnc3yc2CmoX5lyl6J0NbB6k84Cw29DUZG/r1Io Fdu+8mGJ5x2Cuu1F3jhYYPSM2pcPECOW5YysLXMm4q1q3WRxnUCxDjq5nBVblFh79szC Crag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Eg+CmrWjgB1kgvmO7SAfesuSxaP3dPOXxrKbkUe7IUY=; fh=pQMjDmBpkga//+9OKrKQl28a8lyKhz4s+dSSuCJIV1I=; b=DE7HvcXagPPi2YYIJOekyXsbfOWOitE2km8cA0aVYdZTacBwHZ6YWL+knJ3J3fJVTf WerJdIrOOJDgrMhgjXIwE2RDhgWZtTsmgczl9N00USw8mfja0widkSPCZXGwxugmxTjR 8LtThnZ0vpTnDK/arMknyKqtBHZ6hHiGzIh8Fc3gOPk6Cku0usP7WZNBvzSLKMJH+T5g gA9pfn8cjP1cH/Fm0bc/rh8ZLYhZSjvzDRNr3qm6w1S4iLWsQiGuUYS3Neu5ztMaCjra D9jZE2b9h54zoUCkfYdg9xtgWO/ewjqqOSzg1Q8MylSyC0fR8QBZvZY0eK1dnBKl1g8p n+/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=XrqyvZDx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020a6560d4000000b0055be61476b4si8555110pgv.288.2023.08.03.07.35.48; Thu, 03 Aug 2023 07:36:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=XrqyvZDx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235471AbjHCOHv (ORCPT + 99 others); Thu, 3 Aug 2023 10:07:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236015AbjHCOHY (ORCPT ); Thu, 3 Aug 2023 10:07:24 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ACE546BC for ; Thu, 3 Aug 2023 07:06:32 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1b8ad356f03so6965685ad.1 for ; Thu, 03 Aug 2023 07:06:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1691071592; x=1691676392; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Eg+CmrWjgB1kgvmO7SAfesuSxaP3dPOXxrKbkUe7IUY=; b=XrqyvZDxSgiavPWsBCbSRHg+ou1GVyTzy2qzcAS64qQGp+5sGIgEphDFf+c7iQsHOn sZUqX8uA285/7n1CGhGV341ljQbfmvQZRJA2l/46yYxYNTZNY//6jbTn4Sz5r00eY15x uP68lQ9F0N2yR9rt4u2yYkcTx+bCa4Z5wEMIUI8iFf5eXqYrRcPeDEfmOkp7L+DROPOW 49sQrOMYJDe2u70gPeP+xU/GOuRU3LH+bIrm3AOp+0kMDIpIgOwC7BAiBy+nnWtFq7XK uOJx0krx1qjTykH3Pfsu4sp+nJH4RWaU59BpMVaGHqHStjFrTTCi4SYIYS+lZoPloPYZ yZAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691071592; x=1691676392; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Eg+CmrWjgB1kgvmO7SAfesuSxaP3dPOXxrKbkUe7IUY=; b=lxFxFIaxc4ZV3mqu8hTD5uAoKx8MDVOIwVzl14vPEWQ+SO/jXes56loXU+3U9IPfXr hEhY4yTN9WaByW7lUxrwQphSK4mKFLUGTm5PObDZGQj0VTfoEVS64RgtvxTGAYjY0Z0t UfizUkopdeTac0+WoIx3YEKXZB1/s7IPI/0e4uXkJU5HJuHOElZpPBgdedYE1RwfPGQC AOV8S9tKR2zjFnffpTQpot4FH7xl5hdbI+ud9DTqQpH/8WR/xkj1oJQyyufhOUyfUsJS 5YbxeFdbZB221k332DfAeEWVKY2DOD8eXy1OscEYUM789OIGGEsIgPprGK0gUiEM6KpQ kImA== X-Gm-Message-State: ABy/qLaedCLlZrgl9t1pZfHdPATxOJXZNOk9/wvjFYdv8N7xe6SSqfTt tyiE0Yus1Ps6wMlwHJSjwD8Ybg== X-Received: by 2002:a17:903:120a:b0:1bb:9bc8:d230 with SMTP id l10-20020a170903120a00b001bb9bc8d230mr20412138plh.23.1691071591969; Thu, 03 Aug 2023 07:06:31 -0700 (PDT) Received: from C02FG34NMD6R.bytedance.net ([2001:c10:ff04:0:1000::8]) by smtp.gmail.com with ESMTPSA id ji11-20020a170903324b00b001b8a897cd26sm14367485plb.195.2023.08.03.07.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 07:06:31 -0700 (PDT) From: "huangjie.albert" To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: "huangjie.albert" , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , Pavel Begunkov , Shmulik Ladkani , Kees Cook , Richard Gobert , Yunsheng Lin , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), linux-kernel@vger.kernel.org (open list), bpf@vger.kernel.org (open list:XDP (eXpress Data Path)) Subject: [RFC Optimizing veth xsk performance 07/10] sk_buff: add destructor_arg_xsk_pool for zero copy Date: Thu, 3 Aug 2023 22:04:33 +0800 Message-Id: <20230803140441.53596-8-huangjie.albert@bytedance.com> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) In-Reply-To: <20230803140441.53596-1-huangjie.albert@bytedance.com> References: <20230803140441.53596-1-huangjie.albert@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org this member is add for dummy dev to suppot zero copy Signed-off-by: huangjie.albert --- include/linux/skbuff.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 16a49ba534e4..fa9577d233a4 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -592,6 +592,7 @@ struct skb_shared_info { /* Intermediate layers must ensure that destructor_arg * remains valid until skb destructor */ void * destructor_arg; + void * destructor_arg_xsk_pool; /* just for dummy device xsk zero copy */ /* must be last field, see pskb_expand_head() */ skb_frag_t frags[MAX_SKB_FRAGS]; -- 2.20.1