Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1796858pxy; Mon, 2 Aug 2021 10:24:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXRy382tsimRdVbV165JqbPP/6nwGvfCN/q8LNIXVMBNfpXtr+mUa7y2bMDmXXrrqFBl6Z X-Received: by 2002:a17:906:abc2:: with SMTP id kq2mr13742795ejb.342.1627925087365; Mon, 02 Aug 2021 10:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627925087; cv=none; d=google.com; s=arc-20160816; b=Xrgrqgd/vtov38UaXy19LQDiG8V9Rm2t+MuYbff6rtpscPR0JE4pzVHi4yQ7NafGOM yAgecxjDHWbk1q/qHdZCqtYM3Dm9JjXRCQ6D5p3KnYOvvHnzCMhG/JQqhOzCG+E24CJp olkPyZagTh/ERAnTbyCSIOyXh0NFruA6Q9T6bI987WHgm8vJsPl4mcLd4Z0GzX7KtXiQ SDkxzHmz+b0LUi0Qw9VG1ARGRkJNDfM8g1eRXWkSPxc7TtG1JhkbM+5F5ytR55IedmE9 vL/cTGmP/SwHab0CpxNg5P1hcZ8wuvElTvNcFPn5rDmw6rk1LZCowfhEvqF6cjESi0/U Wz7g== 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:subject:cc:to:from:date :dkim-signature; bh=GyB2m/4YagFAQdo5mV9pB/gqtnCdAZpcnODFL7kqMRM=; b=ySK3jCHU2fkNanyI6AJIEGz/PsCPu+nP818iZa//3zZGC58Qt3L+2Th47U2eLAJC9V mi83JGlLQGJlFzbhrGTFewoMf+ZB+sky7ZvOBREJWcumEEXwR5UxVdmRpWFp+9zrhJGp VrQWm4/V+LM+bENzVDS/NBt9O/rzeS6BnnJv+w1mysptKAB0j/dq2dMGtQ6jfblt+Sbg JqT6ZWpcBZ4nik0/JCR1eR25nOfGVk6DnQagXIivqyYrGgwqF4X+JW3+ihJdQwkZNRc/ CKqLQNin5ypH0eyrxHZkvbVF388X6hw9bppzp6azMp7vow9wgANKc4hNU1jhkSc1WVts a/pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sh6U3LdR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si3052329eds.130.2021.08.02.10.24.25; Mon, 02 Aug 2021 10:24:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sh6U3LdR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230139AbhHBRVM (ORCPT + 99 others); Mon, 2 Aug 2021 13:21:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:34980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229593AbhHBRVL (ORCPT ); Mon, 2 Aug 2021 13:21:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 68AB260F58; Mon, 2 Aug 2021 17:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627924861; bh=ggRngNHSSAss9GqeQqhYBpnDVCqYEfbvF4AwpCkBQmg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Sh6U3LdRshnPTaG4zGADE9rz5HK2nMu92L5xYhu119iuegIriFZ6PO5bFhy3BlzRS NLtV5tRMZ48kSvKbVlpicLk65JGOvP1mbwoLQ7JMkVq9WrPEj6sU0EwQt9CDENRMlN bddwzyDt/cY3G6sSYcgVPINb6vuWXPISxVntJoIahWDTbnSv4xRE+tP2j99tE95lUe qYmWjbdoMbz+W339cuxuzrMxi+ZUbjXd07NwLHI2aoEBOvbBJG0xtJr5Qatf8t7cEL RlN1KuHU+iMFKSbApRZTBur1iCoX8YNfdd8LXbj3+XWjbNuN1ZrTm+EfSKT4yGGUvU 1lKFv48yLcSMQ== Date: Mon, 2 Aug 2021 10:21:00 -0700 From: Jakub Kicinski To: Nicholas Richardson Cc: davem@davemloft.net, nrrichar@ncsu.edu, arunkaly@google.com, "Gustavo A. R. Silva" , Leesoo Ahn , Di Zhu , Yejune Deng , Ye Bin , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] pktgen: Fix invalid clone_skb override Message-ID: <20210802102100.5292367a@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210802171210.2191096-1-richardsonnick@google.com> References: <20210802071126.3b311638@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20210802171210.2191096-1-richardsonnick@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2 Aug 2021 17:12:07 +0000 Nicholas Richardson wrote: > From: Nick Richardson > > When the netif_receive xmit_mode is set, a line is supposed to set > clone_skb to a default 0 value. This line is not reached due to a line > that checks if clone_skb is more than zero and returns -ENOTSUPP. > > Removes line that defaults clone_skb to zero. s/Removes/Remove/ s/defaults/sets/ > -ENOTSUPP is returned > if clone_skb is more than zero. That's already mentioned in the previous paragraph. > If clone_skb is equal to zero then the > xmit_mode is set to netif_receive as usual and no error is returned. Please add the explanation why clone_skb can't be negative to the commit message.