Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp358115rwb; Fri, 4 Aug 2023 14:03:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3us9abQWTFKrXTMW9Yc6IdVPrOn915ZqBtQ7zxcJ3tyaNdyCv2GNWm4ylKs1oPixJGPZw X-Received: by 2002:a17:907:b0b:b0:99b:de2a:d9a6 with SMTP id h11-20020a1709070b0b00b0099bde2ad9a6mr2152510ejl.41.1691182991943; Fri, 04 Aug 2023 14:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691182991; cv=none; d=google.com; s=arc-20160816; b=cVG4q3WtCuiVGCIwb2RQ/b6WozrtcuIcdhbeVe+f02CJnDqbq+netvz0ORRis/SR+w LlV7ySJknhrR/mhTP83iA+UKfUhPGYE7dx4/QsFN08GOcqZj/Bl8lZtoLhM9xiogAJX8 QyagforJP9nQjS2HXkh2kAiN3N9osyQOA5kcMwJBUYwb+1SI0CHlxgzt7LjVd6lr8CAH m1vtnUO/UHgJ823BedqtlHMnYLMsJC//FJcGxOwfMdfLQr+hWtd5FePSSRm4laUW1rga rr3sHugMd/TZuTYobdwEBzQYBaWQmWmhDsCJCE7FMqDj1BzjBsKA9DHMAdypuv/hmDNg U+fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZTOHDt8RC8fYauLqFwU3ArwOL61OgYedJecQ+NMVltg=; fh=1kI7Nj7RuV0hUm4Vh2r3qC6Cx2cg6HCG0tvXYL5kc+I=; b=dWjKcxo5p6Z8Vm3RF1TLBSozrhFtqVzmozaE5fWYID8rIAODZ9y3FcL8YslifjuK1y U+8L+DFhCizoXdsmC7BGNuIw3EcclG9WiLGWS5I/cN3ByYExBBvd61LvkypPyi9s+s9h ytUYLCKvqdguWrtRA9vK++j3vFHJWPLXOFBpK5aXUyXh/4HrmaIsyR35o5aFMTU3x7Fv 4VDDmW+fd1iBK7qggCWuycaBAfeg+XjP+h9J1xWR+HLV/GGADXX5rMeOyTi2wCxt03nh Ua1vFygev1PmlZY75pvGw2gmv8y0LlDxws+aVIZGGMEAHjOhtqcgGzwrwnPf3BDN3rqn PrYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Eir7av81; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020a170906528700b00992f2becb47si2212202ejm.7.2023.08.04.14.02.43; Fri, 04 Aug 2023 14:03:11 -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=@kernel.org header.s=k20201202 header.b=Eir7av81; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229657AbjHDUnA (ORCPT + 99 others); Fri, 4 Aug 2023 16:43:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229970AbjHDUm7 (ORCPT ); Fri, 4 Aug 2023 16:42:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC5F64ECB for ; Fri, 4 Aug 2023 13:42:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7162D620B2 for ; Fri, 4 Aug 2023 20:42:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CCC3C433C8; Fri, 4 Aug 2023 20:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691181766; bh=h38XqAf/cJuAIlpBpr4KFvmbr9bN/47iqdte68UwsFA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Eir7av81r/doV7BE+4HwQFpwwtTYplldGx/4AWT4vOhTRbOI0yFoD3TvFECqE86Qr 22pjN3cW2OUBfeeaTUSGfG6R+aebkt4+TpCYUGq2ahP2c7L2yw+ANcRUVTE1Lbh2G+ fRW2lTYdPFJekqGBV/z3r2MQsT5ni690118tow1ghkzYie2sXMTP1f+Z+CROaqMHkv mr4nXnYSHdxlNDqgsrM2gJ/rD5Q0y54IGvXsVGC4N1YV3SBeRV//7qUKTz50NUBN66 UkX6ithIAj+PzhLVKUEniqcQoqNRgtH2DnINfoI+2NdAPa9v9VoaUpTqv1eZLUF6pn 7khrR6hFrEXtA== Date: Fri, 4 Aug 2023 22:42:41 +0200 From: Simon Horman To: "huangjie.albert" Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , Pavel Begunkov , Shmulik Ladkani , Kees Cook , Richard Gobert , Yunsheng Lin , "open list:NETWORKING DRIVERS" , open list , "open list:XDP (eXpress Data Path)" Subject: Re: [RFC Optimizing veth xsk performance 02/10] xsk: add dma_check_skip for skipping dma check Message-ID: References: <20230803140441.53596-1-huangjie.albert@bytedance.com> <20230803140441.53596-3-huangjie.albert@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230803140441.53596-3-huangjie.albert@bytedance.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Thu, Aug 03, 2023 at 10:04:28PM +0800, huangjie.albert wrote: > for the virtual net device such as veth, there is > no need to do dma check if we support zero copy. > > add this flag after unaligned. beacause there are 4 bytes hole nit: beacause there are 4 bytes hole -> Because there is a 4 byte hole.