Message ID | 20170815130638.31718-4-sergey.matyukevich.os@quantenna.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c58730cab8ea02b9f09404d548de7eab7cc33302 |
Delegated to: | Kalle Valo |
Headers | show
Return-Path: <linux-wireless-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 46FB8602C9 for <patchwork-linux-wireless@patchwork.kernel.org>; Tue, 15 Aug 2017 13:07:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 395151FF54 for <patchwork-linux-wireless@patchwork.kernel.org>; Tue, 15 Aug 2017 13:07:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E29326E3A; Tue, 15 Aug 2017 13:07:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5BC31FF54 for <patchwork-linux-wireless@patchwork.kernel.org>; Tue, 15 Aug 2017 13:07:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751494AbdHONHB (ORCPT <rfc822;patchwork-linux-wireless@patchwork.kernel.org>); Tue, 15 Aug 2017 09:07:01 -0400 Received: from mail-by2nam03on0073.outbound.protection.outlook.com ([104.47.42.73]:15232 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751344AbdHONG5 (ORCPT <rfc822; linux-wireless@vger.kernel.org>); Tue, 15 Aug 2017 09:06:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=HUmPGqWsJ7wKkbafo+u2wuORD257mFBBtL5D2PTi1nE=; b=Dc22x3Q1JVX5+EiUm63AxSM8SQL//gaGbLYshuiaZHszpI5MaB4qFYaoF+kZKEAtqWBKS7JcnsXNtz6ZF9uVJWMcpzFFGSnviTkN+me5JGwEnXwAPDnHz1NEvgb1KiB2Fk7JCqMBYFRVu8B4jprr9tlt1YSoJrpgdLkeKfAvWhg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; Received: from bars.quantenna.com (195.182.157.78) by BLUPR05MB1924.namprd05.prod.outlook.com (10.162.224.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.12; Tue, 15 Aug 2017 13:06:55 +0000 From: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> To: linux-wireless@vger.kernel.org Cc: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>, Avinash Patil <avinashp@quantenna.com>, Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> Subject: [PATCH 3/9] qtnfmac: use __netdev_alloc_skb_ip_align Date: Tue, 15 Aug 2017 16:06:33 +0300 Message-Id: <20170815130638.31718-4-sergey.matyukevich.os@quantenna.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170815130638.31718-1-sergey.matyukevich.os@quantenna.com> References: <20170815130638.31718-1-sergey.matyukevich.os@quantenna.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.182.157.78] X-ClientProxiedBy: AM5PR0602CA0021.eurprd06.prod.outlook.com (10.175.46.159) To BLUPR05MB1924.namprd05.prod.outlook.com (10.162.224.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2f0c6fab-45de-4128-4075-08d4e3de81b2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BLUPR05MB1924; X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB1924; 3:NMEDVzmfTCNliA5GUDqFvJyC1ZCkq+ZkU5GawIxIerbMAieMPZB46bYO+t9SEd48cSwaTXe6XvTVltB3Cia81wfjDvTUVZxilr/WdWvGvhUIqOniu7us88u+/Ka/VaH2/y6wmi8HxZijDzk1aSu4DeiqkUzgfCfKeLedQTvH0nbMPeouzxnnmvHrg7GFcaL+MSpKByHVJvqRutN1w6eVHj/lT/cISqWSliIshlrKnkwj5T39d5giaViNdtM2C2sF; 25:avyk65dxlRDX++rzREJyLymHwtvWLFt4Hb3A4FqOlUjkWaTt5VGjI9CxQJKUPWlLtkRLglixVv4GHfGmoE4f4V/eGDM5HojIR4oOQ6+sMKCt9i9yKvYMZz+4l6H0UkWo/ZZi1k++BknU3SVSFUinnofXXKkHo5gXWx8nACGyXCYmPhPNTUIZ8U7QCO9yYSCT9DGaxgkZfUE0dAtdSWsIeiqxFs9RO9wtXpA0spJlXntM7BUySeR2Iyt+Zw58j6DgZJ4xQM6oQRyD9hFmXdPff/Ak7yk5uH4eTvcO9Hj1UdVpv3LLzFX1X0K4nVmXkXJYcieodOTSw8XehIhSruqdCw==; 31:1RE0lFgpXFTYKEw6nQRW4WfrgrdZVHMKQOtVkdZ3YMaNaHrso+lrlN15iTI3SqRCQ+GMaZ7OBhThDqGPpovfAH/oisR0w0Llvhx2UI4acZL6Y2v3gbfnZ+gmmQe7wLEPFV/D2ySuES4inc1dxQWcCzVhF9QdznwW/vLQFyBgSj/tAQBcRacU4l9NkU4ydZYh9Cy1xQYDvedCymyU7S0/tD9zqJg8m4/UECBZsSrhThY= X-MS-TrafficTypeDiagnostic: BLUPR05MB1924: X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB1924; 20:D6K88tMjK+3FuVb/Dea5engvQfoaKvfXEcuQz6uj4qTn4R7kfab+32/Jrv/9VZYaor2jc+6KQeSdSr8NJ3yKVxRBN3u9upSXfe0NRw8que3l2soUTskBWzzF4e89VPz3pt5FATKMQvfL2Hwf16PhNr6z2ztsaODsAK2+vWeYH4grd51EZZUo1mWRCVTem7H5kdb4/zuTLdjEdqO8OtPcIyWKUdX3yzwjVrqQkoq5csurnHD65LZvKMRX8JqEep+DyN8TEXp1+KxhRuKXQIqOM6h7iSBaTtWiIorTWvL/R890cOiwq79+JUblrYfnpI9YhGqUtbIuo4ZYY2Wto+zkgoloHS7qxmk83uFcEPU3n7xrribj58GHpBgRJzJ+gPiGcTy6EWf0JBjLffrXeseX49ZK98Gs1MFuuCRjeyDu5GahO8wOmUMaaFlohqE6MsvnlXSlsPSQ/7pU4QvMVMbalGslMLXUisWEVS+8rui9HQNYptHo9jHlMBx4ZyRZ8sd4; 4:X/c9izI2Yw5bg2sDKqYljR5ThuT3cbrPYTV1v+lUqYonLcZ/ZjDiRWbeieSHSrRTrksPFW3YEl4a6E2/7cpaygI0WZhu9Qa1PdVoDdow9tueow9YMZLOMG7clLaubqLgkMSaJmvlxv1xS6CXXE1nelqnOF8+VU4J/GiyeETdrD/ozEqms2Rzcn0T0wCovokgrdPzOpFVljrBEFB5wZmOZLCoJklmBqN6HSvsUN/XFWho3hlTQ7LKCB172A7EzR7YBwp4yOcSawJaoueT7ZcpzwbwPrg438g5aG202ib1278= X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Microsoft-Antispam-PRVS: <BLUPR05MB192463F58BAD07246B1B0607A38D0@BLUPR05MB1924.namprd05.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123558100)(20161123564025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR05MB1924; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR05MB1924; X-Forefront-PRVS: 04004D94E2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(39830400002)(189002)(199003)(86362001)(478600001)(4326008)(305945005)(25786009)(101416001)(2906002)(5890100001)(47776003)(7736002)(66066001)(81156014)(81166006)(8676002)(50226002)(103116003)(189998001)(50986999)(69596002)(76176999)(97736004)(50466002)(2361001)(2351001)(33646002)(6486002)(1076002)(48376002)(106356001)(105586002)(36756003)(5660300001)(68736007)(53936002)(110136004)(107886003)(42186005)(6666003)(7350300001)(2950100002)(5003940100001)(6116002)(53416004)(6916009)(3846002)(54906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR05MB1924; H:bars.quantenna.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR05MB1924; 23:Zz6yjbEaEfHLXDlzSPaKKgK9EYdmfXyhvSmrYeEYM?= =?us-ascii?Q?v4y2PVgvhtPqSmeDClA4Jv13cB+bc8NUj5w6cxIu1/I8fL+ZgG6KqHKUIME3?= =?us-ascii?Q?vVe+k2J7Tw1MtGomFF64iRywE2lCzlas6VD10RkYZxH2hZmbSmHdqFRw/223?= =?us-ascii?Q?58G1lPk9wMe3Std/S6GiwLB+N4XmPDBmCXYXL11cACxED+2G4/X9dF3fxrHZ?= =?us-ascii?Q?h/ypyIX0YgfxZLrN11czCa86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JwNwWCWLAji1+RDHnRk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2017 13:06:55.7394 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR05MB1924 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: <linux-wireless.vger.kernel.org> X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c index 08b35dc30bc8..079aa1693ff5 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c +++ b/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c @@ -429,8 +429,7 @@ static int skb2rbd_attach(struct qtnf_pcie_bus_priv *priv, u16 rx_bd_index) struct sk_buff *skb; dma_addr_t paddr; - skb = __dev_alloc_skb(SKB_BUF_SIZE + NET_IP_ALIGN, - GFP_ATOMIC); + skb = __netdev_alloc_skb_ip_align(NULL, SKB_BUF_SIZE, GFP_ATOMIC); if (!skb) { priv->rx_skb[rx_bd_index] = NULL; return -ENOMEM; @@ -438,8 +437,6 @@ static int skb2rbd_attach(struct qtnf_pcie_bus_priv *priv, u16 rx_bd_index) priv->rx_skb[rx_bd_index] = skb; - skb_reserve(skb, NET_IP_ALIGN); - rxbd = &priv->rx_bd_vbase[rx_bd_index]; paddr = pci_map_single(priv->pdev, skb->data,
Replace __dev_alloc_skb and explicit NET_IP_ALIGN alignment by built-in __netdev_alloc_skb_ip_align function. Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> --- drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)