Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3091155rwb; Mon, 15 Aug 2022 17:54:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Lq+3ygxs4dAmR0/rPQE2P/FCwmQnbwYIZ4IXFK0Vjl0Ue5ph8+Z9QVqFGFA9paLBIUwC9 X-Received: by 2002:a05:6402:274b:b0:440:608b:a4c0 with SMTP id z11-20020a056402274b00b00440608ba4c0mr16515957edd.321.1660611284924; Mon, 15 Aug 2022 17:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611284; cv=none; d=google.com; s=arc-20160816; b=AqiJoMDPTUfMqzHZvdbbkvuuBTulMGyRmWZwRdAaFWKtUQcQVX5rhfG2tnabs8nicx c4bByGk0wP560rcQD9pSMETnAoBTfxzQ6MicF527hAB5YvJNqvCVPtDWC+g1vheIDPpB LVRhqbfhjor/JAUCZVhjZQFCsVcTIlp/MjsSTMFmv4sZtjhGH5F4wyJ3JRkb6rUgA77K TXRj1O0zv0ir5WPEqw+BUZUsBSEKWRLyuZ8RJ/MzGUsMagjGS69pTkVM6nuVnk0wdnwO SgeTu4cLST5iRMvJfxbbfH6ek8Vx1b/am5hjK+/8yoB25LswIkKkfOgZaqnhx41XLzq7 +4wQ== 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=Dp1/gVOAPjLTMAuohfk0Q3GJ1VpTbBsuqrnFS8s2DFM=; b=gJcTz7f7I33jVhZejoNdXrexUmNB6SPyzVMJ5AIt8HK7JQgr5b3QAWDmB2v4JeLa13 ZPOu+MY3omMcCyMgjNy1LOn4DUMLoRX7Em7E4e7lVsEzjzjImeUA88LRw+FnzD3jg/em TIVLEeuRucsNIFrLXnzfdgrTL1vILd24Mh4moK5z/ilUCAs4NDlCMl2H0pKcHkL8a0ol AaCfkrWZt7EIEIP+O6eOjXyHfRSO1+PafGvNzPVtHoBW0/7ZA2eCfUXxgeoqS+BGoD7R MjuPTegCzGrBbHTScipi8M3wgOa+tvUeBZEyHlHlZQaBoaaybywQzmYCKWG8qAVCC38w mWyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FnEUkxCe; 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 ss16-20020a170907039000b00731c0576129si7202843ejb.554.2022.08.15.17.54.19; Mon, 15 Aug 2022 17:54:44 -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=FnEUkxCe; 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 S1353964AbiHOXkT (ORCPT + 99 others); Mon, 15 Aug 2022 19:40:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353943AbiHOXg7 (ORCPT ); Mon, 15 Aug 2022 19:36:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67C1361B22; Mon, 15 Aug 2022 13:09:37 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 04EB160DDC; Mon, 15 Aug 2022 20:09:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F286DC43470; Mon, 15 Aug 2022 20:09:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594176; bh=oOcIlIJ85S0/p/QXX4CCG8Frcd/TUProsPpBiPtfgko=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FnEUkxCeIuhhJDKt02zb7krl+WLgIiSVja7uOsdzP+Q/xE+Qa5b9PqxFzAvI5pxpX n3ioeU4A8nQHGsBHJRZL6voJNAOiAIw4hcNgl2PRAyvnrEBRjEZqf09w8tESMfBfrs 2YvmuUTvGT5jydaBy1GrNnp6OI+WKV6YW0mCefI0= 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.19 0390/1157] test_bpf: fix incorrect netdev features Date: Mon, 15 Aug 2022 19:55:46 +0200 Message-Id: <20220815180455.296732550@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 2a7836e115b4..5820704165a6 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c @@ -14733,9 +14733,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