Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1689903rdb; Sun, 19 Nov 2023 06:35:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6BtYNiSqxCIZZ8UGr7hOuFf/hNciGh9DOx26W0eLR8G98r/RhJkGeogz4a0XgpyHDVAYo X-Received: by 2002:a17:903:2352:b0:1ce:8ed:2378 with SMTP id c18-20020a170903235200b001ce08ed2378mr4138564plh.1.1700404544872; Sun, 19 Nov 2023 06:35:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700404544; cv=none; d=google.com; s=arc-20160816; b=rqmHefQz2xjL46RNVCZBNMsfFpl7/2BKwJideMUw9C6TL7+DQnBFR1atWUQ8TaJEQg H7Z8ROOPk/iiG9Z+AfKWxr+TFBufHD8x0eYIuQEp8yLUEQ7orcsMKjuyNOVQlrUWIAn2 sEKQ7+6Z1+tihMecaiu0o6WhatluMaW8d85ViWZCYyP7FpG/4XD9q4XTep8u2+sEu5Xi sftwOAuikaTQgtCGNyypYRw6cxeVIxKXhS2sPXliVmpZj8I9gBZFupPGm8luspZ1fvub 0ZWfxwmcASl2b0vnsI3B8cKGTIeWw9ouquKsM3fMxZOhRK9vrDwtaZ1QcHG46lGilgVL +/Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=dtRQ8yNhJfvPE/qnhFNR3iQjjizVG9CKAbGXftXywGM=; fh=X81yWT34jGDqoDEdIff29YDTpO9D3ZdkFedZrn79mHw=; b=cPUaK3BspRsEAuYIMEIGcviTa36LUBZE4hA5ba27mAr0/c1u+6u040Z7iRGfKw3oBM WXdjXnRHmRExAiNwouQfvetE/u6n8boZR/fZY3y2Qy7EUBwZlFHm6yikTtk4J2xor5PL kHEqIV7tlJpUA72vUfGYjao1DzpHZaM6j/Qu7G2tADWElU0BhdOfo5VG0C05IlO9mlqX bebudRm9QWzjGtpQYDhf1nmvJgQEm3RYrdjlSc/lTJvbAYtnrWp3EhsZC9X5FA8MObUY pztnvC6xU0RzN7K6UhSAhoN/62zkt8l5nrRIctkLuYz79U5n5/ioisXK7SF6uv3E1sai BFOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id t14-20020a170902e84e00b001cc4107a515si6555013plg.48.2023.11.19.06.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 06:35:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 827DF807C540; Sun, 19 Nov 2023 06:35:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231349AbjKSOfd (ORCPT + 99 others); Sun, 19 Nov 2023 09:35:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231312AbjKSOf3 (ORCPT ); Sun, 19 Nov 2023 09:35:29 -0500 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 943C0128; Sun, 19 Nov 2023 06:35:25 -0800 (PST) X-UUID: 2098c2fc7b834aada21791e7475b1b85-20231119 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:ec71fa2b-9dec-46e1-a8de-a4f5c23d635d,IP:5,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:-15 X-CID-INFO: VERSION:1.1.32,REQID:ec71fa2b-9dec-46e1-a8de-a4f5c23d635d,IP:5,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-15 X-CID-META: VersionHash:5f78ec9,CLOUDID:9b363a60-c89d-4129-91cb-8ebfae4653fc,B ulkID:231118012929Q096TJVV,BulkQuantity:3,Recheck:0,SF:64|66|24|17|19|44|1 02,TC:nil,Content:0,EDM:-3,IP:-2,URL:0,File:nil,Bulk:40,QS:nil,BEC:nil,COL :0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: 2098c2fc7b834aada21791e7475b1b85-20231119 X-User: chentao@kylinos.cn Received: from [172.20.15.254] [(116.128.244.169)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 516458896; Sun, 19 Nov 2023 22:35:20 +0800 Message-ID: <26295fac-2617-4219-a2d5-5f009223e655@kylinos.cn> Date: Sun, 19 Nov 2023 22:35:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ipv6: Correct/silence an endian warning in ip6_multipath_l3_keys Content-Language: en-US To: Eric Dumazet Cc: davem@davemloft.net, dsahern@kernel.org, kuba@kernel.org, pabeni@redhat.com, kunwu.chan@hotmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231117154831.2518110-1-chentao@kylinos.cn> From: Kunwu Chan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 19 Nov 2023 06:35:42 -0800 (PST) Hi Eric, Thank you very much for the suggestion, I have modified and resent the patch as suggested. On 2023/11/18 01:29, Eric Dumazet wrote: > On Fri, Nov 17, 2023 at 6:06 PM Kunwu Chan wrote: >> >> net/ipv6/route.c:2332:39: warning: incorrect type in assignment (different base types) >> net/ipv6/route.c:2332:39: expected unsigned int [usertype] flow_label >> net/ipv6/route.c:2332:39: got restricted __be32 >> >> Signed-off-by: Kunwu Chan > > Same remark, we need a Fixes: tag > >> --- >> net/ipv6/route.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/net/ipv6/route.c b/net/ipv6/route.c >> index b132feae3393..692c811eb786 100644 >> --- a/net/ipv6/route.c >> +++ b/net/ipv6/route.c >> @@ -2329,7 +2329,7 @@ static void ip6_multipath_l3_keys(const struct sk_buff *skb, >> } else { >> keys->addrs.v6addrs.src = key_iph->saddr; >> keys->addrs.v6addrs.dst = key_iph->daddr; >> - keys->tags.flow_label = ip6_flowlabel(key_iph); >> + keys->tags.flow_label = be32_to_cpu(ip6_flowlabel(key_iph)); >> keys->basic.ip_proto = key_iph->nexthdr; >> } > > This is not consistent with line 2541 doing: > > hash_keys.tags.flow_label = (__force u32)flowi6_get_flowlabel(fl6);