Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp242105yba; Wed, 15 May 2019 00:02:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcJ1NGL4HnziYnU0ZRxPhW3R3Ce4aW6Vr2H8eusF1Uycf/KElzrcFjckZKYh5mqAe24xVV X-Received: by 2002:a65:60ca:: with SMTP id r10mr42465430pgv.64.1557903739780; Wed, 15 May 2019 00:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557903739; cv=none; d=google.com; s=arc-20160816; b=gu+ucFZoBUu92FV72LxXdb2/3noupuIgOpuf2JSgz0/XLcKdJAeHvryxKlKoNcHbP3 122f4FcTrNgGVJhJJxVebPqcvElH7k6ikjSmh26rdm2FeiR7Z4GKdi0BPG20ENMcGa5x VKoz83v+E8B1xH7PmPk4Gmx7wAHUjdY6NKr83HFUAH8lsegOGCTf9IuWYMkFmZ9cozAd WfU5mRHJK+akgePv0jwUUf+/6sqQIrCCpsdYKpxjsW2Mn802PUVDe+HGgqrxBKSmEq1m md6Ju6ZZfYp4UUg80u9QEkBwYuqf5iREJl0/DXk67EG+Ee4NXa56f+NEEAuIGjF77G1f LKNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=a0INoBT4qkL5QtbS7LmbbqhkeTuqp575a3wWb3dHw0E=; b=JcWcQPksGECUxP1S7l/DL5UbUts8n5pYnUl2Ys/ctZ5EjJzL7/GOmVmDgjGdhMeOSn CekVDTUxussTTei1GHAmCsB9YolNqmPd4qG6RSMRLV9pa7BbFvk2E/KR9qCPKIrvHFEt UhJ5bPcmshJVbBXuyWpFJi+H62XrDpDcYMKuJCKrrt44JUVgXsUMnyekOEg893r01YIc YfS0OUwlbvJnaxDJQY9YxttYhPVFyqVzu/XP6HhLcmklnNK63BuaZKn01DubxoG5nUcs /TQs/eYW8SnszvRAN6wqC87WYOTFOWKWtQhTpcSgMLyhkdTDhU0Vn8r3G+PAY3RLQOiD d89A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si1026857plk.125.2019.05.15.00.02.04; Wed, 15 May 2019 00:02:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726325AbfEOG77 (ORCPT + 99 others); Wed, 15 May 2019 02:59:59 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:34785 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbfEOG77 (ORCPT ); Wed, 15 May 2019 02:59:59 -0400 Received: by mail-qt1-f195.google.com with SMTP id h1so2120404qtp.1 for ; Tue, 14 May 2019 23:59:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=a0INoBT4qkL5QtbS7LmbbqhkeTuqp575a3wWb3dHw0E=; b=jOqAQqVTlQxaa9j19OQ/hqnAhLwVRMTGuniUhge7WiAMOoqETn1LkEv0AlKmUenu+M +EfopHhhXYbb3CtRveBf00Am+uDv8ltbOMQDREjt+FC90f1pg+O6wbRBLSWB6D4PJ3he 33j6M7BYo+U1LgiC6+3CrBeTf7qwdnVVsTN9PnxWDO0zDuAqGugize/Aofyic/qPBxpM 0U4y9XBfQQ2eX4YjsbvdTeEUheWCpL+wXth8vF4CNmUXphGujCH/PR0QJuu0g5PNeFv5 ZcnSrbtmbWc/z51QtKrEF2+vgBc2wZEMXnVLvnDHEtkjSHcuAispcuDJ4QBtsjeOQaQu 5N0g== X-Gm-Message-State: APjAAAXCKzj33jRQsSw86kvkJ0fpldQ7Ce/jlgsROZLfLCFeinCLh3eE kMXua7XSdipzAx04P9j+UNb2lOoWiVI8JV5tRUQ= X-Received: by 2002:a0c:980b:: with SMTP id c11mr32766169qvd.115.1557903598583; Tue, 14 May 2019 23:59:58 -0700 (PDT) MIME-Version: 1.0 References: <20190512012508.10608-1-elder@linaro.org> <20190512012508.10608-3-elder@linaro.org> In-Reply-To: <20190512012508.10608-3-elder@linaro.org> From: Arnd Bergmann Date: Wed, 15 May 2019 08:59:41 +0200 Message-ID: Subject: Re: [PATCH 02/18] soc: qcom: create "include/soc/qcom/rmnet.h" To: Alex Elder Cc: David Miller , Bjorn Andersson , Ilias Apalodimas , subashab@codeaurora.org, stranche@codeaurora.org, YueHaibing , Joe Perches , syadagir@codeaurora.org, mjavid@codeaurora.org, evgreen@chromium.org, benchan@google.com, ejcaruso@google.com, abhishek.esse@gmail.com, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 12, 2019 at 3:25 AM Alex Elder wrote: > diff --git a/include/soc/qcom/rmnet.h b/include/soc/qcom/rmnet.h > new file mode 100644 > index 000000000000..80dcd6e68c3d > --- /dev/null > +++ b/include/soc/qcom/rmnet.h > @@ -0,0 +1,38 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + > +/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. > + * Copyright (C) 2018-2019 Linaro Ltd. > + */ > +#ifndef _SOC_QCOM_RMNET_H_ > +#define _SOC_QCOM_RMNET_H_ > + > +#include > + > +/* Header structure that precedes packets in ETH_P_MAP protocol */ > +struct rmnet_map_header { > + u8 pad_len : 6; > + u8 reserved_bit : 1; > + u8 cd_bit : 1; > + u8 mux_id; > + __be16 pkt_len; > +} __aligned(1); If we move this into include/soc/, I want the structure to be portable, and avoid the bit fields. Please use mask/shift operations or the include/linux/bits.h macros instead to make this work with big-endian kernels. Arnd