Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2852041pxf; Sun, 14 Mar 2021 14:40:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1+u99JALbLTPfj3HDiTW+gqhANCpa0ohvaGLK3leOIbk/Z99lZ60WRUNnP4HasVNB/agc X-Received: by 2002:a17:906:8593:: with SMTP id v19mr20354844ejx.32.1615758048127; Sun, 14 Mar 2021 14:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615758048; cv=none; d=google.com; s=arc-20160816; b=dUFZRuzhKlUMR6m8wiEUh9iC2jH5bKvMrW7qCiSR7anFHBtKRJS6R0csJWX40Ueeer i0LkY176J+MkarBu6aYSdSHbxAj0LTH+XlEJ+3yEscQkKedB49gUuEWNcNSUDHO+wg+N tD+yD8aG70mACPJUiapDqewaB+ebF24/ONqvolhsFOufcIooLHV7GEaZUPnL59PcUpKa iW+EEjB3u2nUBCQCIK3llkQz0RDO/WOBYt19rnjjuycfbX9TfUvyHs5mN3VD6ZivmhWS urxDJzRfaBjwNBWW49rYifAedbgJ/qMhmmr+yFGVs7g2sNV63cw3eMqitRg8lxW5qKKY tv+A== 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:from:subject:cc:to:message-id:date; bh=8Sj/DhFM41sCKH+riHmd94kLRiKwNa+VVqVENVxsnh0=; b=hZ3kf1cmRESWo2buwaVeKt+2APlnbx9Z/ULqKUIMKyhVWC3OaDflz8JLsQHU7zGn4o eo3Mjl+qLVoqO9MmMApBoARCjdJYjWGdoXyc8CMcQlz59cNaZ05WrJkaPBtr9a26uoUO 9iMNq5/IPN7Y12VEukfVBELWOqquEekbv5806daKpPKB7h9t9YWo2UG1khxRmFtw+xek RWf52tFiOKIv5S6N/J+TzWhgia3JgZvT30TVCBE3JL27xhNUAhAXD1ap4HG15GGSOKZN A8cUJybdu8RsfvsgJqiKDSyWoxUiPru2fL3O+Nu+AEyAIfBrKLaP8hYOpB7JW63/Ct/r JQZg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si9759274ejj.228.2021.03.14.14.40.25; Sun, 14 Mar 2021 14:40:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230482AbhCNVbU (ORCPT + 99 others); Sun, 14 Mar 2021 17:31:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234204AbhCNVbJ (ORCPT ); Sun, 14 Mar 2021 17:31:09 -0400 Received: from mail.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569F6C061574; Sun, 14 Mar 2021 14:31:09 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) by mail.monkeyblade.net (Postfix) with ESMTPSA id E1E154CBDE068; Sun, 14 Mar 2021 14:31:01 -0700 (PDT) Date: Sun, 14 Mar 2021 14:31:01 -0700 (PDT) Message-Id: <20210314.143101.1456394019713348728.davem@davemloft.net> To: vladimir.oltean@nxp.com Cc: jakub@cloudflare.com, alobakin@pm.me, kuba@kernel.org, ast@kernel.org, andriin@fb.com, dcaratti@redhat.com, gnault@redhat.com, wenxu@ucloud.cn, eranbe@nvidia.com, mcroce@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] flow_dissector: fix byteorder of dissected ICMP ID From: David Miller In-Reply-To: <20210314204449.6ogfogeiqfwwqfso@skbuf> References: <20210312200834.370667-1-alobakin@pm.me> <87wnu932qz.fsf@cloudflare.com> <20210314204449.6ogfogeiqfwwqfso@skbuf> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.monkeyblade.net [0.0.0.0]); Sun, 14 Mar 2021 14:31:02 -0700 (PDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vladimir Oltean Date: Sun, 14 Mar 2021 20:44:49 +0000 > On Sun, Mar 14, 2021 at 09:21:40PM +0100, Jakub Sitnicki wrote: >> On Fri, Mar 12, 2021 at 09:08 PM CET, Alexander Lobakin wrote: >> >> Smells like a breaking change for existing consumers of this value. >> >> How about we change the type of flow_dissector_key_icmp{}.id to __be16 >> instead to make sparse happy? > > The struct flow_dissector_key_icmp::id only appears to be used in > bond_xmit_hash, and there, the exact value doesn't seem to matter. > > This appears to be a real bug and not just to appease sparse: > ih->un.echo.id has one endianness and "1" has another. Both cannot > be correct. Agreed, so I will apply this, thanks.