Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp55240yba; Wed, 15 May 2019 18:50:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIba+ogmd7p7S6cZkVGQYr0iG+SfdIZf24g8j8jEIRKiz9FqXv+D4xdDdFI8J0xMBxICsM X-Received: by 2002:a63:7b1e:: with SMTP id w30mr42139904pgc.406.1557971415515; Wed, 15 May 2019 18:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557971415; cv=none; d=google.com; s=arc-20160816; b=e0KFOeRKw3W7es7eOWsK4oMEQLWkVQt5D4lGeI4iCaZeTZgLJgTIVbW8qwrulWGaFC 6TorwRJ+GcOUZ/5edlUC78MvEdtLHNXnj2ayeyqyWLczcezNX2rk2BqiM0DSRVWYtpTK yf6DXJRFa32jM7lwll4cnIMGOuCC6xWixpAwiga5s6ZG5O8a8/pfG+kFWe+WzLglPmRX 8JXiGOY11RoNBZq23l2PrMGwTsti19qJrJUhSiXlBoc6KRPYpmp/Q3KAX5zMPx9ZO3JB 8oIXl99leL8lL/W5lm2qClNfBLSY0POYzR+Lxrt1DAp3eC8ND5703UFkldIltUtzQiBo gMfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=zM2pOYl7JEZcIHfwNOrpl3r7/UYqhzBJ8QwQizjxM5w=; b=KvPsc6UGPGN3Z3WIKykGmZcxbZVh6kKlhvJzU9kV/7LLzDd0qT4Jo7XJj/NloGCZee VH0OSQP2Ip90L1P+DxbrhM5w8R0Y9bdQVIh873zL6UCK7ZjmXrecTD+knoLd5YwYqz6R 5+0IjiOHCZbHpywijh2c1VUtEtSCKW7BDfuXpxobcPIqKUSKHLtNAbDx7SAoHFvlRpjE rXB2lnE/eJsdBZA9+UVl8DCzenUJMQSSbbAlLpwPMOKHVdaPuyzdAHZ8jzuUPpo75Ve0 WT9m3tdccrHg+g2e4ZcXwyWUF3aGPC0/8f078W50XZZf1ogf/18W9a//FZSPjlnrbEPr l6XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=SwoVfhlJ; dkim=pass header.i=@codeaurora.org header.s=default header.b=SwoVfhlJ; 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 n1si3227114plp.272.2019.05.15.18.49.41; Wed, 15 May 2019 18:50:15 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=SwoVfhlJ; dkim=pass header.i=@codeaurora.org header.s=default header.b=SwoVfhlJ; 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 S1727841AbfEPBrO (ORCPT + 99 others); Wed, 15 May 2019 21:47:14 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:57784 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726916AbfEPBJy (ORCPT ); Wed, 15 May 2019 21:09:54 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E8538608A5; Thu, 16 May 2019 01:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557968993; bh=cQq76+TzxEIOrTYAXj+6tOgvQ0AcPkRO0c35l9YJI04=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SwoVfhlJWk/EkeAW1fWE1QLQlUPKJvTjkZduF7TXTkK7oUUbnlP8nk9jzqNvQymq0 U1z/AzggWUomKJtvzlbNQOeCfAmgBKTcLuzeQhd4c1S4KtvuA2SRTEs0sYL2IOmiiQ mKgB6z4bHEUO1eysqe8Hd+1NkPbV/8kIGFs2bMhk= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id E859E60709; Thu, 16 May 2019 01:09:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557968993; bh=cQq76+TzxEIOrTYAXj+6tOgvQ0AcPkRO0c35l9YJI04=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SwoVfhlJWk/EkeAW1fWE1QLQlUPKJvTjkZduF7TXTkK7oUUbnlP8nk9jzqNvQymq0 U1z/AzggWUomKJtvzlbNQOeCfAmgBKTcLuzeQhd4c1S4KtvuA2SRTEs0sYL2IOmiiQ mKgB6z4bHEUO1eysqe8Hd+1NkPbV/8kIGFs2bMhk= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 15 May 2019 19:09:52 -0600 From: Subash Abhinov Kasiviswanathan To: Alex Elder Cc: Arnd Bergmann , David Miller , Bjorn Andersson , Ilias Apalodimas , 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 Subject: Re: [PATCH 02/18] soc: qcom: create "include/soc/qcom/rmnet.h" In-Reply-To: <9cae00c4-29ab-6c3e-7437-6ed878a3061f@linaro.org> References: <20190512012508.10608-1-elder@linaro.org> <20190512012508.10608-3-elder@linaro.org> <9cae00c4-29ab-6c3e-7437-6ed878a3061f@linaro.org> Message-ID: <005ae8fb4ea9ba86fd0924b1719f1753@codeaurora.org> X-Sender: subashab@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> +#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. > > Sure, I'll do that. I did that everywhere else in the driver, > but here I just tried to preserve the original code as I moved > it. I will update at least these structures, and all existing > code (plus the IPA code) to use fields masks. > > -Alex >> >> Arnd >> Hi Alex Could we instead have the rmnet header definition in include/linux/if_rmnet.h -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project