From patchwork Thu Mar 4 22:34:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 393336 Delivered-To: patch@linaro.org Received: by 2002:a17:906:a383:0:0:0:0 with SMTP id k3csp899ejz; Thu, 4 Mar 2021 14:49:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+IDFQi9+HGsOyDdfZgpwe2aggURPp+7Qw1i3LLSe4Nij/3zLi7WnnFbX0WGdOCNrtdiVJ X-Received: by 2002:a17:906:5012:: with SMTP id s18mr5625272ejj.100.1614897717418; Thu, 04 Mar 2021 14:41:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614897717; cv=none; d=google.com; s=arc-20160816; b=t2FqJ19TNXrRCgpBYZ5ShiYNFUtVr9RqeWwBFPchQOcjylyiLYtZWeOekVUvVf3p70 FAa5diXT0e2CQm+Wqg1E6c85t80rn4f+5d7A60cuyjLggKf8ir531sWHmwIwK3uUV/46 GF8nn8Wamo2IbdbmY8wZMlloSJtLxGoW9mqUvvdF0n2ECZ3bF2Rgu78YPsS3MdnoT2G6 /GVXCCbPmqPpluGjbRzHUloKPw9Z96axSYk+GZic0KmZTFas4Ain8tSYn5dNd7Uv3MZc 4rndrX4KOkWbMnjDwUeul9Zhkg0isumH5dT1YOHiXA8CnZUbcTIFYFLMtBBQlJPcAkOO 6+tA== 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:date:subject:cc:to:from :dkim-signature; bh=MnFEnN5RmyJ3fEdCeq5FgUIloZ1Qg9btOxjTlofMuGs=; b=UNIqbXoJOlZQMfmAZA/5Pom6zvjBCsbDm6XauyLAtgn0dFL3hOzaLXjD7IYLurqRUb fMgALQGaWq0UB6caNeS1+uXV27lXi10vO2p6SWOicp/aAcUb0UOt4Ub3dJ2xTNh3iYOW vKOgh2CeunWTevg2egzqgX5o48eq8oXVWLmxIRLWr0V4X12zQQ6+dDjxpTmVGDAa5Ul3 EkllSnVu4Uwno3X+Y7QE+0bH972pUA4iU28JZaAahq2wQhLL5XbLBpirfx2pQ4f3J9ct PdArT6FIzbfAkbaTuUodQTXqHvdmn4xIkNS+3L1TzHYBKO//eFEaHPGe3DrW345fxCT+ JR5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YOUlvIZ6; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si527757edj.545.2021.03.04.14.41.57; Thu, 04 Mar 2021 14:41:57 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-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=@linaro.org header.s=google header.b=YOUlvIZ6; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232103AbhCDWei (ORCPT + 9 others); Thu, 4 Mar 2021 17:34:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232041AbhCDWeg (ORCPT ); Thu, 4 Mar 2021 17:34:36 -0500 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 852E3C061574 for ; Thu, 4 Mar 2021 14:34:36 -0800 (PST) Received: by mail-il1-x135.google.com with SMTP id d5so183390iln.6 for ; Thu, 04 Mar 2021 14:34:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MnFEnN5RmyJ3fEdCeq5FgUIloZ1Qg9btOxjTlofMuGs=; b=YOUlvIZ6vGjjmdarK/YdgLqCpS/wF4ke284UtZhRlJaa7oxOeefH3BiaEB6+6FWjkR UjX/WvLgwYqOZRe21tdw0lO9I6u9WjQNxcZC0t8MxPOzJw0HEfLdZqi+4gwZddNdCNX7 pL9E8Rs3ksjjvulPw+zx91ua76XfWQzeKzxDpO9TbFLfJ/FjuVsxAEukmmnWLOgYu7mm t0kf+km8gp4MD6jigR2KwjSbGFef7v2waqP9Yyjwq6W15Xo1PGpOQ5Mfsbi91sB3M/T8 YXLohZxd4191MG2jOAZS3CuGCzMfYtfyRQlwn5ZiHBXnCpEsIg/N1gAJICuxcM+Zxb6o yNVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MnFEnN5RmyJ3fEdCeq5FgUIloZ1Qg9btOxjTlofMuGs=; b=iG3AeyKGtAR5dXqYzd+X2vOyqi8T4PgvILcLFPC3D25S4MwlE2drb/JLB/mh5BzKqe y/PfiqS/JDQsPYIKE/8tppGDCiwJytB2HoxQB9pP0cLOqN6uIsZy2zrAXG9yuAb9Od2Z lvVqZhlKuLIrsXOn1UYDEDIe2p9uwIUdxRg1FY7ExBzDM/Ao75Sa5OmhqQO5JsyKVaQZ 8JvvxN9C5rALuv/jm3GvK2lAobe7nkNel7B+NNikMui4+AKjKDKpHtDypLW+BHLsqfun IBornSMq+iKLUkWB9oHf/z/+uSmTFvr5M+AzUpIaq5yIu1hmHQhs03m5Tey59Uyc9RDq mP/g== X-Gm-Message-State: AOAM531KGiyNg+Pmi7jo5/XjBt7E5fXJNJntzmHrXlFKsOAkrYuay6jB AVWnfGGtLizQ9LFsD59GNInlOQ== X-Received: by 2002:a92:194b:: with SMTP id e11mr5947483ilm.184.1614897275911; Thu, 04 Mar 2021 14:34:35 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id s18sm399790ilt.9.2021.03.04.14.34.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 14:34:35 -0800 (PST) From: Alex Elder To: subashab@codeaurora.org, stranche@codeaurora.org, davem@davemloft.net, kuba@kernel.org Cc: sharathv@codeaurora.org, bjorn.andersson@linaro.org, evgreen@chromium.org, cpratapa@codeaurora.org, elder@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/6] net: qualcomm: rmnet: mark trailer field endianness Date: Thu, 4 Mar 2021 16:34:26 -0600 Message-Id: <20210304223431.15045-2-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210304223431.15045-1-elder@linaro.org> References: <20210304223431.15045-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The fields in the checksum trailer structure used for QMAP protocol RX packets are all big-endian format, so define them that way. It turns out these fields are never actually used by the RMNet code. The start offset is always assumed to be zero, and the length is taken from the other packet headers. So making these fields explicitly big endian has no effect on the behavior of the code. Signed-off-by: Alex Elder --- include/linux/if_rmnet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 Reviewed-by: Bjorn Andersson diff --git a/include/linux/if_rmnet.h b/include/linux/if_rmnet.h index 9661416a9bb47..8c7845baf3837 100644 --- a/include/linux/if_rmnet.h +++ b/include/linux/if_rmnet.h @@ -32,8 +32,8 @@ struct rmnet_map_dl_csum_trailer { #else #error "Please fix " #endif - u16 csum_start_offset; - u16 csum_length; + __be16 csum_start_offset; + __be16 csum_length; __be16 csum_value; } __aligned(1);