From patchwork Sat Mar 5 02:24:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 12770228 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F630C433EF for ; Sat, 5 Mar 2022 02:26:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=N7zx+tAhNeRFx+IQqPSGdbiTtIZJuVb9hJoHljoEqNo=; b=YlTlUU3WjYvGOB kKM7qbkkzzWBxkoqQyWnnADgexaW2fEjrcVOlzRnQbDVTHoTdcqKiQ1MzyWy4/82U7jGpzawls4Pr hZSGwp5D1aHtYT5MBSpQ9hVm9Qqnvqdlg99phpkSyC3p1y4ZNYlP1uxTpRluH087ycSW6olWkLHsS u1iNKz6tngVzw+0MQKYvcFK9CxcJuEEWfY8Ld5CbiktsYwqSq/RWY8BmSVoe1e4CYXDfw39xB09aH 9GF8MwY6saWhvohSPFSbzmHwhk0jCtXUsZcPY3WoTWMV2JDe7UqDoPeTDztejXkLGIHDpqMwN2nrg wOGueCnB/KJkQA1Ecg0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQK6g-00CaUe-78; Sat, 05 Mar 2022 02:25:18 +0000 Received: from mx0d-0054df01.pphosted.com ([67.231.150.19]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQK6c-00CaTl-0E for linux-arm-kernel@lists.infradead.org; Sat, 05 Mar 2022 02:25:15 +0000 Received: from pps.filterd (m0209000.ppops.net [127.0.0.1]) by mx0c-0054df01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 22524FEi004428; Fri, 4 Mar 2022 21:24:57 -0500 Received: from can01-qb1-obe.outbound.protection.outlook.com (mail-qb1can01lp2054.outbound.protection.outlook.com [104.47.60.54]) by mx0c-0054df01.pphosted.com (PPS) with ESMTPS id 3ek4hy8qgy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Mar 2022 21:24:57 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Or8iKaxTh880tipjEOqKOq/r/pteniZTdMYBvNc2d65gOAwyhNtnDxIuv1DHGle3Yw8XlI6ryMHGJXzusjBvJ5x/9/j0acMVBXBQBMlLo+Rf0Zxo50KFmVD74msE6CjuVJhMwarrL5UUGghw+zxbJlWL6vkE+VTUedAf+3giO2aJVSpsxe+SKmaSwHrdzRR/5tieg4VRHo2u/KzED1LtZxwA10M3mJJ7G1jQTqBgJx5lN8YdcCF/LiJTAvp+xYPw3Y8/YcIqiB+i80r1MVtxqxI0mVZOoVnxobFY4Dv6Q5xm/gThQUnsXWlz5yVp2tUlt9F5dQMTVYd4735Me8NVkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c2vUB5oGrTbxXTYEnA724ecAYb7WcwoB7YOZ/ekHZZI=; b=PHg5/j4lmrnJhrcCwr09gcRudbrxCGykJrxFEGmEIjQxSQiBr6rHTKJcBprHZ4srn1k1XD2+bucjwWg61B+bOoSKJUnE5p3ejwfG8INpC4t06GDFpEljHjVaEpInIpwRF1jEmobcwCebHc5NoFgtSUtI6ZG2yyqgKlaumriRvWvN4R8JnA0jChGNW9cNppgx3YUeg7Zz75KWJFruDz4vcCTZyIvH8vevBUcy/sr76NxQVkKuoqKduC7ZJVkfZUQGhkJ7fMuR8fd7RjiVg1MeOMFXCLj6FeK0ic2fnQ2J/anRMVZrkDLe0Ef6cMPto1Kg2SnH9Muv/4F+bMLdi3Ij+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=calian.com; dmarc=pass action=none header.from=calian.com; dkim=pass header.d=calian.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=calian.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c2vUB5oGrTbxXTYEnA724ecAYb7WcwoB7YOZ/ekHZZI=; b=2Goc2ieFJswuEtaAiYSVcoE7XNDmZtBuizk+4d3xMP7HAZ5eYW7EYl7eMgM5cNDN5nN7ExvvUkoIQH0BpfAVuNgBYXsamq1Xuz/NOBXy6QYksVhmGSwCwnFHbVv37pSCCZznOSntE21MZ8tsyTWgqblZb1Wkh+w8h4pRwXrrgj8= Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (10.167.1.243) by YTBPR01MB3184.CANPRD01.PROD.OUTLOOK.COM (10.255.47.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Sat, 5 Mar 2022 02:24:55 +0000 Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::e8a8:1158:905f:8230]) by YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::e8a8:1158:905f:8230%7]) with mapi id 15.20.5038.017; Sat, 5 Mar 2022 02:24:55 +0000 From: Robert Hancock To: netdev@vger.kernel.org Cc: radhey.shyam.pandey@xilinx.com, davem@davemloft.net, kuba@kernel.org, michal.simek@xilinx.com, linux@armlinux.org.uk, daniel@iogearbox.net, linux-arm-kernel@lists.infradead.org, Robert Hancock Subject: [PATCH net-next v3 0/7] NAPI/GRO support for axienet driver Date: Fri, 4 Mar 2022 20:24:36 -0600 Message-Id: <20220305022443.2708763-1-robert.hancock@calian.com> X-Mailer: git-send-email 2.31.1 X-ClientProxiedBy: MW4PR03CA0304.namprd03.prod.outlook.com (2603:10b6:303:dd::9) To YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 75cc9e1b-56fe-432e-4f8a-08d9fe4f55f8 X-MS-TrafficTypeDiagnostic: YTBPR01MB3184:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qMNJzKbY5n8NfLKg8Mh+n7h2u0Qfd22Bgfz5h/E+IgPbCu9lqgaElyHcQgeVd/g93XBD21gumwFT+V7SlM8gqfUi7orpjW/X8xuL6svkoVXXmE9HXfHT7joXwfqD1O+ic0tPjPa23o05YaB3bKEhkJTZSkwWGVYmmYoaDV/7L40zwjv+LK8hYeQNISr7DDmJAhx4/iNJSBo9happDKEbH0wy+/PVHycMi7UqHOeC4SdWjc/grmwm6g55KnPgqBhG99eEgOWmJQEiwx74WTvWXr/Fl4ZoF5Z17Z0fP/exke6V+cJsjcvPGKRtsTbPvS3yp9cx7tPiAKkSxjDkC+GsqYzYzFOZujopN6udfNGQsgGfjGPK7RX/IJGCBbWF/nSz5noV6Fr8ElCfywSMUzFh1FJ62L3zttvZsTF1o0h2HEsXbuaQi0ke5xnifturSSaAPojYADQtI3AYML7FIMIp1bXLQW4lN0LB93EsRCKhHA3S5K5hKhNvp/9HSb08GUnAglJhvPacOg73pTWVTRvjvDxQPGc05C38b68LNhNQe0jENYbAGrnwvLfzAYTd5LiHR732cvw1OaBJCML/zTjoYvj27GxJEH61OVYn8gwUNiYwoT41cMJQ5zHI6ipkTeYvd1bjRHJ0XZa8gJ7Gg1tYca5y8+ELrOw+Axrb6RZwwJpLyEGKjyvLfc/LwzfjKugK7rMKsIRN/CJZke+9hScKvQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(36756003)(2906002)(107886003)(5660300002)(26005)(186003)(83380400001)(6916009)(4326008)(2616005)(1076003)(8936002)(44832011)(4744005)(6486002)(38350700002)(38100700002)(508600001)(86362001)(316002)(6666004)(52116002)(8676002)(66556008)(66476007)(66946007)(6506007)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yieK3KigbNP/V1L5y4WB2fI9IdhWsTXGixqykg1ulDzDUhjGDIaPWStxc7vEjlIL0MX0Qnx6z6V2GrHOGX9g6MTjey/2r28DmSKJKNAFycl9xccR/7DNvv8Pt+hGdHxdSvOzy8v0bu+QQ0OA2AorqQIPv/vAfBXhdgRp5a4Rv+sNMSK6rS15YodCvJ212OxfzmPfc7JZ/OwthK2iqSfLPTf50j81h7ul1G1/s2jEbPLWjYrtb1dGBGdV76tIL0dJ1QPrfXSUdMqG5TrU17K7CZPjnMCSMNsIBZJrc82PLSZ86sXTqvFfQ8MnrGW/F9aMXpg4cAGjjVI/N5dfw391L9LB3iVK4QQ8elxVCfP7iQRZ8a2Flv0W/VnXvHCe3yD39QkwjTZPs0583qwxH4mR1YvX6yhWtikvZHm+q3sXWvrw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wyCsOsUNpMl5lNRxfYgMmjTIZty9l89PQoxTSGDrgIqRvLjXn36asE6YdWC/KKqdNmkvYQAGjykrT/6+g4WrrTdKUSk6HMSO+K70nSL7zAe82d/eP8derPyJ/COXWAZyYfGDlkFr4GQLCNM8rOt6Kb5Fz8cvTuApsUTSKZ5zBxMzgfoGxiE0emZau/3fVc4c9WqKTLHqAl2ncJ8= X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75cc9e1b-56fe-432e-4f8a-08d9fe4f55f8 X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2022 02:24:54.9732 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 23b57807-562f-49ad-92c4-3bb0f07a1fdf X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /nncPvDjJCOe0q5ECNuc5NSsNxi6x63owisqwkwdTZB55NEHXFlxfVDggiwh4b+UDVa2CCLpHnGzq92S6l7/IxC7E8dV1HxsFPBSxQmx5f8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTBPR01MB3184 X-Proofpoint-ORIG-GUID: xRjpaFfOt7-m1K_gN_XnMncuR3fo3hMB X-Proofpoint-GUID: xRjpaFfOt7-m1K_gN_XnMncuR3fo3hMB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-04_09,2022-03-04_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 malwarescore=0 impostorscore=0 clxscore=1015 priorityscore=1501 adultscore=0 mlxlogscore=711 phishscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203050007 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220304_182514_201392_96523B39 X-CRM114-Status: UNSURE ( 6.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for NAPI and GRO receive in the Xilinx AXI Ethernet driver, and some other related cleanups. Changes since v2: -fix undocumented members in axienet_local struct Changes since v1: -fix 32-bit ARM compile error -fix undocumented function parameter Robert Hancock (7): net: axienet: fix RX ring refill allocation failure handling net: axienet: Clean up device used for DMA calls net: axienet: Clean up DMA start/stop and error handling net: axienet: don't set IRQ timer when IRQ delay not used net: axienet: implement NAPI and GRO receive net: axienet: reduce default RX interrupt threshold to 1 net: axienet: add coalesce timer ethtool configuration drivers/net/ethernet/xilinx/xilinx_axienet.h | 18 +- .../net/ethernet/xilinx/xilinx_axienet_main.c | 498 +++++++++--------- 2 files changed, 266 insertions(+), 250 deletions(-)