Received: by 10.223.164.202 with SMTP id h10csp1271032wrb; Sun, 26 Nov 2017 23:45:13 -0800 (PST) X-Google-Smtp-Source: AGs4zMYvBJZzHR3rOLpRG8bsKL00NKWegQv+/B30aK4uq+GPnu8Hodb9QszRi9ukpJrFy4ti4xZI X-Received: by 10.98.141.26 with SMTP id z26mr35004657pfd.85.1511768713167; Sun, 26 Nov 2017 23:45:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511768713; cv=none; d=google.com; s=arc-20160816; b=cJcTBkR6Ied3BYlJ8c3KvMnxxTxVxK1I23BvDlAMQkI9AqTNe9FrPMOYTZFgEGvouI AHjOoZZXn3PKtFwhVZ2XetBD+85a0EyAyoF0IyvOxRHzuZ12HDD7y9CWiAfmQimfHQ5z AhtK1DAhrniofpQuASq4I2m0xHkz97YPeK96ajc+/Tf4Mg5CKtX3/WUNA2TERyjpz3T+ veFZYpf7MWBvbiJXCA5uiugpP1/q5FMxsi80DQwvDmhJwgGjNyuO3i85lj+ScMnZR0ZA Be8Del3ihCJtxVMKYZlZNO+SSfQPrKAkKCRWcbfTqjK40Dwo25djPFrjmDFD6GCAix/a qz9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=UjyUPvd916ix+oGnhUHPxqjL7fPSg76WnrXwvVR5V2g=; b=Iy53ETm2yho9Xs2ZOIZiWgsbkv+OnftX339X9y2OstVPVyKSE5CZ6iKeVSPbJrVKdR 6a1BRHPr8FVSgq/7lPqiBchSKVhNXl6vnKvYF7H6CUWsXb0Mhn3ug44y5JxAQWz25Syk 0LZvJPrIJ5ZxV8myOOz9t+OcsTfME2J7Dh14ORZIKnoaDNia6GfbI6Gwv7zFVPNwpKth NiqBc0TLxrvKMdXFVRgO8AAuU/bu/xkQ5b8u783ERVzEysQqwsdptrY5I+n7xOgLK7kc GtvB67lXmIXlb/dgQtwsiSszE4ruA/m6aDw1FAdzGU6a5BofQVbKhjvZQpk5hBTn33wq 1z7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=uak4xb/3; 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 u13si23457390plq.609.2017.11.26.23.45.01; Sun, 26 Nov 2017 23:45:13 -0800 (PST) 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=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=uak4xb/3; 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 S1751445AbdK0Hns (ORCPT + 78 others); Mon, 27 Nov 2017 02:43:48 -0500 Received: from mail-bn3nam01on0040.outbound.protection.outlook.com ([104.47.33.40]:51484 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751126AbdK0Hne (ORCPT ); Mon, 27 Nov 2017 02:43:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UjyUPvd916ix+oGnhUHPxqjL7fPSg76WnrXwvVR5V2g=; b=uak4xb/3YYyUMR25rexDGwuHLS+0pqbX4ghxPE9xxl9bLAdfKD929Y7P37/wvSuBCqbXhQvYsd5kiEBPRxwTRnpXRdXg9gD3d2jyHUh05ewO+S+abIzJ6rgDiweQisrsYbQAb/1HeUTGRgVs1CmgrJ+rQoS5jYFgL0cGUqYFdtY= Received: from BN6PR02CA0074.namprd02.prod.outlook.com (10.161.158.15) by CY1PR02MB1335.namprd02.prod.outlook.com (10.161.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.239.5; Mon, 27 Nov 2017 07:43:31 +0000 Received: from CY1NAM02FT038.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::203) by BN6PR02CA0074.outlook.office365.com (2603:10b6:405:60::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.260.4 via Frontend Transport; Mon, 27 Nov 2017 07:43:30 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by CY1NAM02FT038.mail.protection.outlook.com (10.152.74.217) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.239.4 via Frontend Transport; Mon, 27 Nov 2017 07:43:30 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:41711 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1eJE4f-0002Z0-Bp; Sun, 26 Nov 2017 23:43:29 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1eJE4f-00017n-8Y; Sun, 26 Nov 2017 23:43:29 -0800 Received: from xsj-pvapsmtp01 (smtp2.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id vAR7hQaE005526; Sun, 26 Nov 2017 23:43:27 -0800 Received: from [172.23.37.92] (helo=xhdharinik40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1eJE4c-00016g-9M; Sun, 26 Nov 2017 23:43:26 -0800 From: Harini Katakam To: , , CC: , , , , "Edgar E. Iglesias" , Michal Simek Subject: [RFC PATCH 1/3] net: macb: Add RBQP to the macb queues Date: Mon, 27 Nov 2017 13:07:16 +0530 Message-ID: <1511768238-3051-2-git-send-email-harinik@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511768238-3051-1-git-send-email-harinik@xilinx.com> References: <1511768238-3051-1-git-send-email-harinik@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23492.006 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(376002)(346002)(2980300002)(438002)(199003)(189002)(305945005)(316002)(2201001)(54906003)(110136005)(16586007)(478600001)(6666003)(2950100002)(50226002)(33646002)(36386004)(47776003)(9786002)(4326008)(2906002)(76176999)(77096006)(50986999)(106002)(8936002)(106466001)(63266004)(39060400002)(189998001)(356003)(107886003)(51416003)(81166006)(8676002)(81156014)(36756003)(5660300001)(50466002)(48376002)(7696005)(107986001)(5001870100001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR02MB1335;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CY1NAM02FT038;1:dJL6k41mY3fO6qzgOwvLecBecWePEHQosoWmAkqzJbOaKcC13IZvTBQ9WA1kgnJXmtxKnBExJup/5DkniLvCxdopeRoJkm1CrWWC6Fvz/Vz0ztmjZZV+LyZRCJjt4oQ0 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dcd8baaa-a73e-45ec-2cf7-08d5356a8df8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258);SRVR:CY1PR02MB1335; X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1335;3:5e80yfJ4qj0p0nIhUweIgmQeNql/4bL4yDW1Zr+x31sQn6SAf4hWtN8BaQjWWGBqWJnygzUt3AQqM3islND6CZX4GyjzuhfK134AIz+l2HkFmkYqyITaDAtcJrcWqA6h1b/+YtwkKaXTzOmLYGWOzJiTpdh/igpcKQsq0KrEjl6VHPrrK7GS8284SQeApfXavAvoqr9v2ROfpfOXMv/KWnoY1Fk74EuLLnuxIvMRrDoffup6Y0zqpkXspWVdLayK2UojB7aRrwxz9lbBA1tg8OCnetBLZVmxl65NXEE2/z+ZevrSwyWstpKmJkb6LgHkZBH4rIPr/AYMckQgLSkKY1J3fjVwymZcWFAtVLMF1CM=;25:up4YxXa6JEY2FKeFpNBJDtVeWzWRAF/FLU2PSdTi+rmQGx9ygTWXrPIyKKwmpHeoVO/mctM30T89rzagK1c0pJgv+l5Vax5QzniAHi9jEUuHQa6AHuSZ6z9Jy+EBxKkalYEea4F2ON8ztTRLWeVg2POQFckJRQRP2d6ZlgbJdXG7DHR38U+igGSt+WOMLQ90A6s6Da59OQfbgx3ey3WgwT7wGq28Swranw1km69yhb2tV83SsIv/SOUzWHYFLk8a/JxMG46PYGGZZ8WNSTW6fRkmdc6+qNnG1Yuj9x77v82VNlrPjiriF+VzXVcYorpBqZ6DcCeUl/1FL7QPDEmTug== X-MS-TrafficTypeDiagnostic: CY1PR02MB1335: X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1335;31:QD0k8ga45dyEQW2xNDJWsfE85fL6vHpNgvHEEbSfjKBlE40gDUuMX01+6T93/S5joLT5qRX20YNMF4Z7omq43AYMAfaOuVKTQfgVkVnpgY79lMxXQgvEPjc5HA1Sn0EHebAtmxpGJJXdCxhx0SWmBzl01hYlq9RRQhCqk0mbg7n/zEBgDIXoAEGBg7kz/P0F9/7KDzPk7l2A709QHm5eGpgHHICNDfvl9j516CAr3Gg=;20:UCPa2NtDp6J2oR5rScqeBGcBl8ANAvbNhPadGilaPErt2qUmRiwAwzW2FBp5pJmKHtzpU7016UIPIBulMdZlQn3Ps3MdZ0IFXrDl0bm/FjEHaPZUtaE0O1LOhFOE/jNflQNf0AsqfHPEKnIH4mfKa/fgv3z5anOE9SoKR/KBbfa1crd09H4vog8WjczZ5zyRSBtS5pfWrYBCng0cTSBpLr9YGyjN6BOR3/kR6883TmdhkTF3mg1KN763Bsti2tYK/yb+nrsjUEv2jQBxUSF3dbiZwlLyaNya+ijiS3Nesh0MwxxLDqFtIhDFBUcxRr2UoxmqTut6rqiF1R1psHlUYq32fvUsycF1KVZWmQbBhJwtPdMVspXSV+iTuFnLvxrcCjiHSmN4NmTh+30yQGHD6q5Huj5TELrGrEYLqF3IcEixRCvK51vhHOJKseDolepmGTSmnJ8VxyhYEduoox5xuj6jXwllfMJ5l9cG86dwdWQnKuzL0CBqjr+VfhYC90pV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(10201501046)(3231022)(93006095)(93004095)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(20161123558100)(6072148)(201708071742011);SRVR:CY1PR02MB1335;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY1PR02MB1335; X-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RDlbcSAyQ1dLsMPZQ8Q5nBvJYChb4cwPXgvamXfcf7XSEpap37NA=;5:W3AgvCt7PJs9R0L+jDmJMb+MyP6X63SClK9R4jjyvg2m6PI+TC1rLcrO9mIdGhh9pEg61x/GRLwszIZLKSnYeDyEH+zrK0k3wplCgoC197MBvfw4FjpN43iQLaSg57ov2+BNK6E3An6f8Csz8QpuLuKdn/8mgPqeOskcxt6nnHw=;24:h9guvLOp6hPMqO3+R6An6T/f+1Nd7LQD9bBiTVj8nul9WxEESPqgOwwhULhhfSBxyyKQn03YNJpuqF+OBVBf8fLy7QjKmQisuC3v4Y5aaFo=;7:jenZGju+X8PBlA5Tz3CHWnh6jPrvz/ZWWsXZrgpoYhgC0JKv47uuMsn8FSwfAog9pDF1UPlXJZisBlZpGN6sskhPSZZyTpugRxdzI0/Bh9eTocXZ1oSfQ80wpbLGYVt7pZlWKmOqYQZhd3U9yjIIEFSx32O5ZVLYEUfCzJP32E48Jiwtolw6hVWsDrxigmeqBVQtGPQVzTLfAtqtVJ7BlFIUy0nJ1NxqJFwf84spjrtDycE7qUrROlCE83lxsDtr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2017 07:43:30.2296 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dcd8baaa-a73e-45ec-2cf7-08d5356a8df8 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1335 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Edgar E. Iglesias" Add RX queue pointer to macb queues to make it accessible for the multiple queues available. Currently the first RX queue is used. Signed-off-by: Edgar E. Iglesias Signed-off-by: Harini Katakam Signed-off-by: Michal Simek --- drivers/net/ethernet/cadence/macb.h | 1 + drivers/net/ethernet/cadence/macb_main.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index c93f3a2..acb6578 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -968,6 +968,7 @@ struct macb_queue { unsigned int IMR; unsigned int TBQP; unsigned int TBQPH; + unsigned int RBQP; unsigned int tx_head, tx_tail; struct macb_dma_desc *tx_ring; diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 72a67f7..623ae9c 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -2875,6 +2875,7 @@ static int macb_init(struct platform_device *pdev) if (bp->hw_dma_cap & HW_DMA_CAP_64B) queue->TBQPH = GEM_TBQPH(hw_q - 1); #endif + queue->RBQP = GEM_RBQP(hw_q - 1); } else { /* queue0 uses legacy registers */ queue->ISR = MACB_ISR; @@ -2886,6 +2887,7 @@ static int macb_init(struct platform_device *pdev) if (bp->hw_dma_cap & HW_DMA_CAP_64B) queue->TBQPH = MACB_TBQPH; #endif + queue->RBQP = MACB_RBQP; } /* get irq: here we use the linux queue index, not the hardware -- 2.7.4 From 1585204014445499003@xxx Mon Nov 27 07:39:14 +0000 2017 X-GM-THRID: 1585202255832056705 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread