Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3655690pxf; Mon, 15 Mar 2021 15:10:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGSk3clO+Y5lIyKDAaZIhCwZ+UkDLJQHwDXdx6iqJDp6wASaUcxiahcWg4IG7PWDqPDFoY X-Received: by 2002:a05:6402:12d5:: with SMTP id k21mr32967657edx.318.1615846240138; Mon, 15 Mar 2021 15:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615846240; cv=none; d=google.com; s=arc-20160816; b=q8dFRrrHIpR1g1v82E6WW5QL5y4b6al9icympIYd8KHRhrqllCPQC7iHtxYPkcwJt9 5WYOrKErShDM3uly8QIMlRzzJViDeEMqJEmotdrhii8jDzmYGYW6O+q9vCX5QohCdygv G0fFzgn7jJYxYl0BB/pJVJIdvUdQuakdGz1NvQdtarItrhHySHCQNhzemi8dUsUAD+WP weGj+GzfJAMV3OtunQIIZWcJHxGyaANErX/0prrai8Qr7A0RblHBzZmbQwoCMCGTdRX3 rhn889MN0OJq3HfKq3I04Il7P3o8JVL1L19uz5evcO1+Z+WQNyQJtA+bwWm6RC0ctKJ7 R78Q== 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=tkE3LmGUj01YPH3BPs1/nEBfeLQdWBdBqpXnFwRgcR4=; b=gpUIt5ZQ34DHI4qZKeWsUzqm2tlqCxvGQC8pgOMv7jsjGYRQdsH6scpndPAhSm8Wfa KurPZvUKgFpUwLg2RVfeqM5/EImOO1YrJooRq34xzVGLdVcmb5lOzzGrcHjL1LsMum/4 WAyjgTJvE4Opmx1mDzG6BB3LD7UVuZq33RLvcyiu8S9Mw/ILjz3yTwB4vUyGIFz/HPBV m+d9muAZTt4LsoWYNYemvfPGJA4H8nakmKZw2uFnb5B3rDMQpB+ILEThT49nneDJHvnF 2D7vplQgxIdA0CTwUPPDJABGOdTP+P8mOHbpeseJKViGOBwwXllA6v+pEytmby5v7r5H qTDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hRSakI25; 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; 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 g23si11192503ejx.623.2021.03.15.15.10.17; Mon, 15 Mar 2021 15:10:40 -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; dkim=pass header.i=@linaro.org header.s=google header.b=hRSakI25; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233939AbhCOVwG (ORCPT + 99 others); Mon, 15 Mar 2021 17:52:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbhCOVv4 (ORCPT ); Mon, 15 Mar 2021 17:51:56 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3A7CC06174A for ; Mon, 15 Mar 2021 14:51:56 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id a7so35024452iok.12 for ; Mon, 15 Mar 2021 14:51:56 -0700 (PDT) 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=tkE3LmGUj01YPH3BPs1/nEBfeLQdWBdBqpXnFwRgcR4=; b=hRSakI25uH/iqPFFwdYMutKVZkBqZDAiup5YEL0MEXGQQB8+ccGfQy8VEfOFnwdDUv X3GT0uWFTky5HvlgFc3ReSioSYnABS6VYnZoKDacviUuSfibMUEm5B/icGkIAnTkGIPB wH2d7OGxd0ZbUn+LFp5aGKzZje0rN77Ewhmp4f8cXL0RgML8D0eUA/bqcbfY6bFrD02f jR/hAwSTk9hadNE/elS86jdJEnZjGzQQrJffrtXYsHaltpk8W1jawXj43qD/cwxK428y Au3q2fQYRw/OpKDKQkm9nUpWFrD8oE+TusW68mH8W3dzPOPCN/pMUdB2NsgdipE6TnKG ZZvQ== 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=tkE3LmGUj01YPH3BPs1/nEBfeLQdWBdBqpXnFwRgcR4=; b=MEfH3KP6hILA2/s9yf8GPxQTMUgnbXGDlAw5hSJQswRD7QfZ6IqzZe1pZnwGdJt+nc I4sIojn/k7vAE3vpczS6+uN8qic1D3WXgiI/XCibNbi9n08DgnqyiwxB+G5anrVMYvCh J+Ur7FArX7Il0f99GlqdSBFbo0+H3ZkWFAQ86tVnU3YD5tHgS3SVVBzUuIGUtFoMtbsC 0IAeYIQVCQjdqgGpDO1FOQd711FpdW8FAAW/2pt7p8L6BTXrfJJGw0NWZBYyTWku+aXr JMOcrP45z3pnp5br6gqE6ygq/J+VX2Eh8VH0L3UxocrQJZWbhc52vqCXLMKzOtUzs9jc qt9Q== X-Gm-Message-State: AOAM533WjWOqaeqSvyUOKg7Gf0ch9MKjxxv0p3XtBCWJTh9OG0LgPIzN k6faM58vczk1nS2SgWeE5Nsm7w== X-Received: by 2002:a02:9645:: with SMTP id c63mr11445641jai.84.1615845116270; Mon, 15 Mar 2021 14:51:56 -0700 (PDT) Received: from localhost.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id y3sm7424625iot.15.2021.03.15.14.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 14:51:55 -0700 (PDT) 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, David.Laight@ACULAB.COM, olteanv@gmail.com, alexander.duyck@gmail.com, elder@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Duyck Subject: [PATCH net-next v6 1/6] net: qualcomm: rmnet: mark trailer field endianness Date: Mon, 15 Mar 2021 16:51:46 -0500 Message-Id: <20210315215151.3029676-2-elder@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210315215151.3029676-1-elder@linaro.org> References: <20210315215151.3029676-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Reviewed-by: Bjorn Andersson Reviewed-by: Alexander Duyck --- include/linux/if_rmnet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.27.0