Message ID | 20161110231005.20704.26244.stgit@tlendack-t1.amdoffice.net |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show
Return-Path: <netdev-owner@vger.kernel.org> X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3tFJfz4Qn2z9t1b for <patchwork-incoming@ozlabs.org>; Fri, 11 Nov 2016 10:10:19 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amdcloud.onmicrosoft.com header.i=@amdcloud.onmicrosoft.com header.b="TPjsudsO"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964777AbcKJXKP (ORCPT <rfc822;patchwork-incoming@ozlabs.org>); Thu, 10 Nov 2016 18:10:15 -0500 Received: from mail-by2nam01on0059.outbound.protection.outlook.com ([104.47.34.59]:33152 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935943AbcKJXKN (ORCPT <rfc822;netdev@vger.kernel.org>); Thu, 10 Nov 2016 18:10:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6K9K0z5joVYy1/9GnsqU8VqZVQ7FHXfGTRiSkOe8dPQ=; b=TPjsudsO5Ope/93cPIMtc97Vu4IJIhgYhB1dKMH8w13NIecP+HhxLWPB0Q4L3+AwsX8gcDYJWbUQuJRjX7gyxFxCSeCZO0G++LNV3qhEO1gAhJbOH0rIc8bQ4Pzff/+lLB/zOrOleb7Dk60vThuLtIKXoHY+lr7tgkN/sA/rEIc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Received: from tlendack-t1.amdoffice.net (165.204.77.1) by DM5PR12MB1146.namprd12.prod.outlook.com (10.168.236.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.707.6; Thu, 10 Nov 2016 23:10:11 +0000 From: Tom Lendacky <thomas.lendacky@amd.com> Subject: [PATCH net-next v1 04/11] amd-xgbe: Allow for a greater number of Rx queues To: <netdev@vger.kernel.org> CC: Florian Fainelli <f.fainelli@gmail.com>, David Miller <davem@davemloft.net> Date: Thu, 10 Nov 2016 17:10:05 -0600 Message-ID: <20161110231005.20704.26244.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20161110230916.20704.34081.stgit@tlendack-t1.amdoffice.net> References: <20161110230916.20704.34081.stgit@tlendack-t1.amdoffice.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0065.namprd22.prod.outlook.com (10.171.142.27) To DM5PR12MB1146.namprd12.prod.outlook.com (10.168.236.141) X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 2:H3gS1NoStFl39/F1CQB6kOzE5KpoaIB0vjnyX61EtpLmdc6a0wWqIRHr2YRmFFU7ZQLcNUygZMmf8MBT5AtjqmQOWNj2OCUbuviYo8mFKMT6ugmEE0iAl0Y2C+wbIU5ilJHUnlEt9V7kh84+Jvs5kzM1ZfH5bEl1kMPRT7kBrL0=; 3:IhDN4IQxgcZ2U3KRRXYatKq5LIEKSZT/mt6dVJ/ZZ11EpKInBOAL7CijrG4Q1SHBHuKJpC+t+wWnJs0085u/SB3nP66v6LRS0QZiB3UeFOtcSnACSRPU36+bBXnB1YhN43pusP7qZxTFePk/KPr+4WILHdxiuH+rO7CNNxaLjlg=; 25:/bKXFb5uWf2cp4jyH1c8LVmTY6vv2mCssSTO+2aP84STsKy9VY51cHVidN8JZJj5cEkwxNAEZ+8Mqxl5KoXzluikilorPjE+Pj9wGamgNhDNgO59z4C81RNzF/IPJB2Zs7Pg/fov6rsAt0vMRqXIvRbzfigTBja3KZiY0RBvswYkytKwTKyYRNbXe0bVze39t2IKsxu2/JEJFaMXivBQnLZVVSFIQm59eiPRFCBkGJEvnQk9UenihoE2HcpRqPK84HpH3Q0Ok1lZjQehys1wzum7qm4WMdb/JLDXG2XMxf8fVv1pT0fDbSK8rVsj7cqxW/CfQT6dVxiZKisoJPLUUzJbtRAn+91PRJhJuxOoTlsT3pCot5MFmz3oI6Q2Shedg28g+SskGEYwP60T0UQ+5jngUFEv1YAfT3QhynjkxYJbIdF3CvcMFuv+QNohlyUh X-MS-Office365-Filtering-Correlation-Id: e86d718d-6654-45bc-dc78-08d409beb8eb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DM5PR12MB1146; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 31:t7c+orHM6ZIalHame3xYvKdm8pXFURtnPWodKJWEAtvksyn+FZTKboQD7MQWb/bT5gNL80KXTQFjY0tNzgvvnok7GvaO+oGThbDIMN7xYSF2EfWiW6+CIqF2lDtM6JKbXip7e4Fg2OBdzrHMNsw/xdDYn7uRitP2dawcAL4XH0PcHFpJGUmbjjH6eqIDnC5MibWWd1yXNLHyYw5LwMWZSdX4es2sSt+AALlxJxok7ZWIfTKqFaPA8uXnNZg6LOWb; 20:Dq2ivDDGK3t8MofsAllOEO3Le+WIwKtaYDyeYbw8leVaJTlv1tWliZl1+vDHWriMiPtRgwC6c122Hr3QI6m73OPb0P3IQYso90HBB9JCYTpCHeiOMfDW/5oVHtcZWBvS9euyqXvRciJexHPtlBFJVmpcieTywpuRJUTeXPqnBbFtwM2JqIxxl6X0qLPBKiczSetlD/3QXPoy0bGfr1Pzpd/frgdLFRIBIbLZl+dFzNJSNqdjvH61ynspspf8yhQCm5hj586UNsPXzScfCOpwZhojv1rOnR9NfkShj6Kx59CvpAo3btLu3BK7EaccpPv0pK06OQaTowhCsnSvj2Rz2MJSIYzVfNm6+gTN1HBu5upgfehzQdiz/go6bvjDYPrTv1I1dXLY+IO6P95q6c3zAxOLJoOfoBFmjD8ttT+iG4gh+V4mV0yott2niDAOrRW/HrLj0jXSpOHCXEmiMaNQT7rkUtuPZvbZM7DZknZsemR36CfLNzyovKyeRJmGIPPn X-Microsoft-Antispam-PRVS: <DM5PR12MB1146C84B9A5F044759B05550ECB80@DM5PR12MB1146.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:DM5PR12MB1146; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1146; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 4:67y8D6II6GqOMDKGzkNOYnDeGFOfHlpxu0MuxvUOO6i+l8hNFRx0/EkTazs1cVrDK0EHhcYvJcoNh+EV7/w2uneQk2wOJLu3tRCCrSll4OyXYuD/e8eqyRDThGtU5368W1S7SuGWzekteJDQrD9aXa5RvZlu5Xk/yERfXY20yQMb5sGkj4LqZ2G9jJl/qkrqOCW/09Z004U6aD4rsWcA4cPAEv6hOBEqOcvMECLCeiIwwXLIc0uw9TGf9Dyhlx8CBG6XAQoBmms9Ph+uJNln/6TqN/N+uIvGYw9Q4HaXeif8O3qbvQiuQQa2aEqqWTtVuNW7QZMTWO4zOH2V5mnbbe4azvwL9h/SVAOgZ4huAk3hHoYUd8HVLsb8BhUN5Wmdw7eNos/J071Dv8lFJv8EXbFTEYJh9r11O7rlgP289BQYH3jXx/fMr9rvh/lzLdhX9EGnHToe92bDJJMEhzzE9sG7Sd/7LkIye5LD16gWx4M= X-Forefront-PRVS: 01221E3973 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(199003)(189002)(92566002)(2950100002)(230700001)(103116003)(6916009)(105586002)(6666003)(110136003)(77096005)(2351001)(66066001)(101416001)(1076002)(33646002)(4326007)(2906002)(97746001)(50466002)(97736004)(586003)(6116002)(3846002)(4001350100001)(68736007)(42186005)(53416004)(76176999)(106356001)(81166006)(50986999)(54356999)(81156014)(47776003)(8676002)(7736002)(5660300001)(305945005)(189998001)(69596002)(83506001)(23676002)(86362001)(7846002)(9686002)(71626007); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1146; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMTQ2OzIzOkZ4K21xR09NcVd1UTBZcis1R0Q5Q3JLUEgv?= =?utf-8?B?cUxSYzNrd2RjL0VsRWVjVjBjMjQ2RmZlWGFDNmJYb3gvTmZ5QU9ETUdVU05C?= =?utf-8?B?Mno4UkR0bWZoaHM0Z1ZhaTNvK1l1ckFGcHdLS2UvMldHTGU2eUFsTW1hblNl?= =?utf-8?B?OVRKMXgxa3RLeEsxeGdLelp3R3VaN0NvRzFMNkg1KzltOGRzNlFzSW1jZDAy?= =?utf-8?B?aTMrWnR0Qk8waXR1SXZhbmFCTnBmYkMzNnd5Q3pGU3ZZY3dFeGJGYnNYbnNz?= =?utf-8?B?S2JhbFhkakh6UmRVTkhGYWxoMVZpWDNscUhYeXNYNmp4d2RYQ2lTNkE1ZUdY?= =?utf-8?B?VmtrYzBCdWZ2cE5kc2hsRlkxTTI3ZzRUTlZhSGlhQ3E2OXp6N2ptYUpRcjJh?= =?utf-8?B?UXFuVnBhTTVKRGN3NUhSR2NKSDNRSmdWTm1LSVNWQ1lNQlNxTGdNQzZ5OTR4?= =?utf-8?B?UFhQNTd6Q01BclJkMlpNY2dINURVaUJNdm1qOWs0aGUzT01od1pEQzczWjRZ?= =?utf-8?B?Q2o4cGVPYkZ3cDdTUkUrWXp5eEc4RkZHSzBzSGdsTF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YUVSV0g1OTJyenhVVkFLemlxTGE5Q1Jq?= =?utf-8?B?eXV0WWxzRlNGQ1o1cmhSQVU5a2lpNDVKV1hrTjFwU2NkYitWdEwwWU5qM3BO?= =?utf-8?B?NnIweksvVXh0QUFieWN3Y2M4emU3am1nVjZYSTF0Wm80WWNlMFBWbEpxcy96?= =?utf-8?B?L0dMMG40eUsraHprWkwybGxWOUM4SG85YS82OHV3WXpuOG9pZVhUUmtnPT0=?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 6:0g7JMFUESy2T/B/VpLGXJ0YPFrVHt1DfU+MYRvIKNoEu8gmRZCju+N5VDGDrn3TcuAXeVksjpIaFnH/kN7JePj+SkcX0O+7CHzc2+I7e22Sb6SMRggKzBH8Rt2lWuSK2KS1e13Iwcj9DJOdkYfVYznCt+MyWBGirUWQ+h18sjWjFb+WHsd/1Tw29BUmO8/o77S+4tIks2NDRDJ3cusDdq/mAdLMcYWNQAKusBdr0mF0v+rZCIRtPaYkjp2z/8Nit3q5suo3pbuScvN+xehsUaZzrL49wxkvnY1xWAvfpW3uKcq25rO6A0hK2F2rEukqTDHnj22fNF7fwCl1u4DhBqxvM+TB6mNCQeGXR4KGbcJc=; 5:qCUcl7AZ+OquIk0fQc+05QBdqzKwYj+OWsbZ6g3Z59yPdW5wQMp9BComy2UozTHRyA+YAp6Sg3vIcy4mB8GzrSt+tVQpcLq47UcFfV3oI4naXaJ6ymHMy2c8yQRwmcJpjkEHxqbB9guqW5QCYjSBvw==; 24:KZSPio746VbMy7YRz/pv6waHUsLv4P/8UcYpOdslaX/n+yaHJbwlMcfSInXrD0FfHIp85OAmJcm1oeEamAInK6nhirItxzft8xdz4nV5FE8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1146; 7:xwtpGpUIUXk4rB9yn4IEah9fGYUWU8BsZb+IE/1p2u2kGI57l7nnIWwgqS9jUhmUUzhSTRWKPUfDlPha33/VA+u5eYM8LdgAoZc/TH3qUA/QJP9wZg6edU444QFMN4OKx0RQWpSk5ShXgGzKcGWNusZ+GtCM74Y1mliDRV8MsB3JcFy9r0DtOsmoc1wn5DdmNWLDYZ4dhuRzEWJokzhs0rkwBcdi9JQIRg/aela2WiqnF7eXqXJKlyEGY+2ADIrxLE2Lf1Nv6u3s4SH0JofdA/JcQ7e8AtJhQGjz0VdiC0EfgSOr9H7RVU9zipqcJWmUgt2PqLkXpCRMGFe30goG3XtLq/33ClHb9AaFismTRvY=; 20:vxExvhvDmIcqrrk/j0O5SOydR93NQEHvBpFGYjpiyag4eOXeN2yGEdu3UO1J5YcoGFDLzEfRi1NwUO5Y6EsPQfcGfbxk+hnDbVYpEELgUKgY9RyqM1V11JuxNBjSARS5LYNIMg+Knx+orhVJ365Y0rTuzmMjtGtZbPLzPNkbiH9+1wVyCY7PpkAlAv7TmdATcyfMFOTQg7vOhJE8SN/60L2jKJEDU1fUdMahqYZ53ADMPZi2IMFk040USK0vD9T9 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2016 23:10:11.1569 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1146 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-main.c b/drivers/net/ethernet/amd/xgbe/xgbe-main.c index 697483a..7655753 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-main.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-main.c @@ -236,8 +236,7 @@ void xgbe_set_counts(struct xgbe_prv_data *pdata) pdata->tx_q_count = pdata->tx_ring_count; - pdata->rx_ring_count = min_t(unsigned int, - netif_get_num_default_rss_queues(), + pdata->rx_ring_count = min_t(unsigned int, num_online_cpus(), pdata->hw_feat.rx_ch_cnt); pdata->rx_ring_count = min_t(unsigned int, pdata->rx_ring_count, pdata->rx_max_channel_count);
Remove the call to netif_get_num_default_rss_queues() and replace it with num_online_cpus() to allow for the possibility of using all of the hardware DMA channels available. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> --- drivers/net/ethernet/amd/xgbe/xgbe-main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)