Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2928895rwb; Mon, 15 Aug 2022 14:14:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR66qbJ8nO1ivERk4nDbtGjXRTNUdI0Z38a3Q5JTedXNKgBDWgs5Xjjn4br7uRT+N4sTtUXH X-Received: by 2002:a17:90b:152:b0:1f3:2b02:90fe with SMTP id em18-20020a17090b015200b001f32b0290femr20266763pjb.198.1660598072634; Mon, 15 Aug 2022 14:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598072; cv=none; d=google.com; s=arc-20160816; b=dpKz1AsZG5IkIYp9h/um2X2JUzaC1PJ4mJTL8tN2IBMWHGnz79d+ie25ZZKNqqxbtF dCTQWP9KTRP2ko5gBf7sxb85krcO0nko7TLaMT0t39BmkLhn0J46vDNPA5BZwxBfsYE2 pVdkNAEcJ+1x8ykRDa4MP0L+l6O9TnQPJ1odefi2QAsBNecFhuk9wUnzQfSJvnyNYiTK AF+TXiCFyK6O/b7F24bdMyQKGYAsjLF1SYqZDDahATevTz1Hpfxi1zcFt7dqWAg/rWcE cz5bJuMirZ+bMMQK1TW5bm6FtC7L7W0ndAI2LUueAu+1Y5CPte2Vgem1iKrNsXGoPPo5 Qyrw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bnpzCXRgpZSh8DjMaj5c4p99TzTjkQHza+IAeG7+iwg=; b=c9sGBgWKidRIZtC1d5JMZG+oh+Q6IilOroLMFViHOdU5KjOgCqAzYZ8Z6Ge2vnENLi RnJum9cfnr1Qaz0iXvpbQN24e+m9Z9kIcZfKA8NJeZK/J7Ssd7Nft3jSM1NgdPlgHV2b +HAjY011wqjKwjqc2XUbMOfLOZhU7NkX9Fj4VqvRPrz67TltyCqbyqkcQm98xQPeJ2It 3LyxjWwCV5Tza0frMGylbbAburOC5NcBk31z6UVNq1Br+Btxj0K4IrI9It+ePkV44PKu ymfN05ZOJnhVFbtWFJBiz13oAj4Z0ssbIt6sh4KJypQQsnVgwQ/s5epybJ5/rYSUNNka nvGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CW84W8Cm; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a19-20020a056a000c9300b005303194bf1bsi12770002pfv.111.2022.08.15.14.14.21; Mon, 15 Aug 2022 14:14:32 -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=@linuxfoundation.org header.s=korg header.b=CW84W8Cm; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231183AbiHOVIj (ORCPT + 99 others); Mon, 15 Aug 2022 17:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344169AbiHOVDq (ORCPT ); Mon, 15 Aug 2022 17:03:46 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 124E0D347F; Mon, 15 Aug 2022 12:14:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3428FB810C6; Mon, 15 Aug 2022 19:14:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92B86C433D6; Mon, 15 Aug 2022 19:14:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590877; bh=Ntboj5OdAOnTGn4j2kOWSFp861U/2DFFKLts9urgMTQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CW84W8Cmh07yn5kUt6siAXb3lo7L8Wm0A40iXr5NnyKuGeBXQCHHcx31QMzD2mP2l IOyyTYJ1A1ZINNQEsMUuQGEPN9R9eXvrOTJ4hj7VuV2GzdNl6pnL0iOHK9DyikL9Rz FkOCHnQ7S28j9UuDc2t310Jfd35XskneR6+L9mp4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jian Shen , John Fastabend , Alexei Starovoitov , Sasha Levin Subject: [PATCH 5.18 0368/1095] test_bpf: fix incorrect netdev features Date: Mon, 15 Aug 2022 19:56:07 +0200 Message-Id: <20220815180444.933953628@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Jian Shen [ Upstream commit 9676feccacdb0571791c88b23e3b7ac4e7c9c457 ] The prototype of .features is netdev_features_t, it should use NETIF_F_LLTX and NETIF_F_HW_VLAN_STAG_TX, not NETIF_F_LLTX_BIT and NETIF_F_HW_VLAN_STAG_TX_BIT. Fixes: cf204a718357 ("bpf, testing: Introduce 'gso_linear_no_head_frag' skb_segment test") Signed-off-by: Jian Shen Acked-by: John Fastabend Link: https://lore.kernel.org/r/20220622135002.8263-1-shenjian15@huawei.com Signed-off-by: Alexei Starovoitov Signed-off-by: Sasha Levin --- lib/test_bpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/test_bpf.c b/lib/test_bpf.c index 0c5cb2d6436a..1a00d0247f70 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c @@ -14456,9 +14456,9 @@ static struct skb_segment_test skb_segment_tests[] __initconst = { .build_skb = build_test_skb_linear_no_head_frag, .features = NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_GSO | - NETIF_F_LLTX_BIT | NETIF_F_GRO | + NETIF_F_LLTX | NETIF_F_GRO | NETIF_F_IPV6_CSUM | NETIF_F_RXCSUM | - NETIF_F_HW_VLAN_STAG_TX_BIT + NETIF_F_HW_VLAN_STAG_TX } }; -- 2.35.1