From patchwork Mon Mar 15 18:49:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 400525 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3673778jai; Mon, 15 Mar 2021 11:50:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6gxpEx+aSXKa8vH/BnDzbnXncOV3a/JQeQr1zdlTxcqbEmn5LCzfesfbC9tAnmbd3Yo/l X-Received: by 2002:aa7:c7d5:: with SMTP id o21mr30784789eds.166.1615834236296; Mon, 15 Mar 2021 11:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615834236; cv=none; d=google.com; s=arc-20160816; b=Xg+0eFFwB4LJHFnHamEaBNoD4cHg+eVENX4Qy8uRKQL/DBPO1noOla1aM1xyBS3IxO /nJuRqqSoZ4i88pbD6pUBD3OE4SBTq1a6eyHs5mF6gTe/y/EogV6PJniciQSgzMqxwzb MueRIj7zu4zg6AQQSnDtNjRLi7XBUDkkZ90PeUITC71BPhqAD922byidlKTIwRMR5iBy xQTZ6NuJkA12JebGZWhZ7rINCDQQeNe7IlIXs+O1mXd/OB6w57jJ14G7DSukf1mfyd2r +un5gkBS8HCS2myaCnmwDcpaXEtRYk17ghQQEyS1HwZYvraPUzjOHEnr2wCucUUbOBzX a1UA== 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=xsE0zxNABaiYDhbWIEujtOAaP2pvbVNW0ARrlyX4C/vY6xUA5jBlmWj5UERHsL8WPl K3w/8ljWpn9iev64dpxyGk0hZlzReCK36rig4I8Ozei6dMvZFHiLmGh+N5XQQ/ouuJ37 0a4Q9U0R3t2jA7OrOcAkNH5scYvwJ+iMMjqqW8B4yDqssXUvlxJjDINxolkvHkFvEH9Z 8ieCbolGX5uy5Q65Ww3bd28pU903EvSt4b6gPMR7h6CU3DZQj+a2wZT4iTXFGEMWSZdK XlDAL3C2z4SzJvGC+CzCFI4dUsni8huEFQwtse0qnvxKwV/KUewMc+jga8U9/v1pNjy2 fM3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bom4lMmQ; 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 x27si11624279ejb.603.2021.03.15.11.50.36; Mon, 15 Mar 2021 11:50:36 -0700 (PDT) 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=bom4lMmQ; 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 S232306AbhCOSuB (ORCPT + 8 others); Mon, 15 Mar 2021 14:50:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231338AbhCOSte (ORCPT ); Mon, 15 Mar 2021 14:49:34 -0400 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F0FCC06174A for ; Mon, 15 Mar 2021 11:49:34 -0700 (PDT) Received: by mail-il1-x12a.google.com with SMTP id r7so10394711ilb.0 for ; Mon, 15 Mar 2021 11:49:34 -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=bom4lMmQJrp5VcTVXyEm9MMJ4NeJCRL6bqdHhGXRV8mep6rnDF0QdfZZzpn1mM50H6 qvHHmBXE2mqaHSkdqifKS546EMOYBAnUJ5FhxHltL83Pdxc5JCc4ZUiIFrxjZNQeQ5bV Okf91VbuTCBZJ6I4UYIxfXiwnzNKEfNANWfqyKPqkk1ZaDlOHyfibNOZBNFIcDjjQyTE qtTU/ERepKCjDksL8h+aY++zNqwez/tAA1gpPrf09QeUe08+i+ryBizTgRUUSBnQVqoD nkP3sOy/HYJ4nzBS01d7XTLT+SqI0ubN7ayRTRPjYdv02YaufxlII17g5KoZztlN2IHG M3Sw== 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=Fy1C1ghBjS0UIpylXNyW8xFavgHieKlTnEYrdzPMhFlWFg8G2DvdofeaiTabouWWcU ZfAvDLFxnrk9019X5oBjXIBUbCEhZVrj4wW6AJOqq54RlkRalPVhszLQyYaPwUOoGvNx DFEi2lsWHefwb9oTIqg/cXCf2m19gQxRm5vEXx+I5BNezUj94VQ4Y++Invq97aVSmesE 2Bm3u0JGrFOo9T9HBUrf0Yuw65E6l1hzTHRD1SGk5Q67Kruy4CtlGbf6YYVkiIF2PTsT NaG5gCAO3yxpiuc6ZQs9Kb6DjX9maY93uZySvBGpLiZoEZsDQq5qcglAH/tqfgvywF3r w1qA== X-Gm-Message-State: AOAM532gQs76qYB8guWslXUOZIkkVORqSj5akJLi2hvXmLQVbFuOuXMi YIIiSx79SXh4gDoAVkqa5fb4/A== X-Received: by 2002:a05:6e02:ee1:: with SMTP id j1mr765610ilk.179.1615834173956; Mon, 15 Mar 2021 11:49:33 -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 a5sm8212162ilk.14.2021.03.15.11.49.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 11:49:33 -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 v5 1/6] net: qualcomm: rmnet: mark trailer field endianness Date: Mon, 15 Mar 2021 13:49:23 -0500 Message-Id: <20210315184928.2913264-2-elder@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210315184928.2913264-1-elder@linaro.org> References: <20210315184928.2913264-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 Reviewed-by: Bjorn Andersson Reviewed-by: Alexander Duyck --- include/linux/if_rmnet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.27.0 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);