From patchwork Wed May 29 16:00:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Aptel X-Patchwork-Id: 13679161 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2059.outbound.protection.outlook.com [40.107.243.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC464158213 for ; Wed, 29 May 2024 16:02:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.59 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716998528; cv=fail; b=H1h+ZDFr+T8tpC8zQOG8QXajDH9fhqK3oPZkaQqjhe1KDqLMS94B9wMH3FKlo69skcKtuzUE95GNtl5IjbuOhKFvb1WeV4C2GqrqZuTLOl2C2PrhmAEzfSA1POsGnrmg+ZuREbvFuUrgYkDxjRFLFoQWI5FZFOBeZjFl2Z3QQ3g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716998528; c=relaxed/simple; bh=YbaatHb10JrN6OXzB3yq6tSClDWy53xkGeaqWgQAE80=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=PWKkfE8uwO0zoPg4udapw+x+3HgPBPRR2wsZOfWddYLsxQvz8GOz3QNmHcXQTJDw3+UwuYhsLGa0QuIcUxDvl3YFhpkjYVFhOCEgVh4TYe1Ccil5aHqCxIUMT1ipyz0I2KiOUqcPXXwffaMwtA8CXFYg+LXiPiHdf+0lv3sfWBA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=RYKZoCnQ; arc=fail smtp.client-ip=40.107.243.59 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="RYKZoCnQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oHKiV1QSKqUyy0HfHZ0yFvmZZYq0DqXXQfKISzG7cwrv3yUNjADTbMD3sbcGaMiNdFpCDaPnrHi18TQdNoaEdYGgixtipMVD/CpJq9pgESZDldG05qSHmzsLGRT9VhwbsqWOf1lmIIG0mVIyC65UHIKtwcsebRS/D47kR3SjJylx2jI8G5Zb8DS/fraNMg1oql6+MIHfp/Y79fcoYUR6bEmsPS2Jb86p4XlE5/nPvw95ZQcRKsntyfHuikh6qo8XJHrPnti0yzHTjnWyL2RDceEujhaHftbRjh5uNvsNn3EOP7/6/kW8eS1gubU0ETCoaDZFePkJV2nRzPT3MC2wqA== 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=gd7nQKUUtIw7iklO6cuQnQF5rbTmRc72tk68WjZE1JU=; b=kXBqDIdgPmpQ0MO2deG3PSCLUlAz3E75E7zVIEp7KTjjLPznhHSUdM6simzjxDxQ8PuBs48NSZF6ERIFyGG/KiF3YVyBQQ6xebeigVsEaNFTBd8K5BA3VVQ4bOerMjDPSOZmK5uw15ai9a5k2dH/AWAYZbif/VG5l0AqemO0fOzdCJvY6xNrlwxSbd5hWGYhjWwW7v0ZdBCzbV135g4OC/Y4U4Cow1Z2FTFGodYvRXf+/zoYRJtc0z4jtewdBM+peV6qgjVHUeElOG/SNHZxUWd+bDwNrVK9SEAivdZXHepzWLOfmQFy5yqX4j0cktbOyblrmyIm5csAnnOWYdGynw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gd7nQKUUtIw7iklO6cuQnQF5rbTmRc72tk68WjZE1JU=; b=RYKZoCnQFvXxcIJBy7t0EeYckNHBiHrr2mj/yw9adVkO9JEoGweLKk5/zZBgBJbo8Nyw+oyuzdqXKhsv8JnlbkHimZwRe2doFPkAg8YAH9BKR5Lh9z55nFJZ0GVxTYY9qpyinFR+4sWQVLKpMFDtgHYbBqb63ETVzKbcffqfhcQApIyClkkXjzxQB9aNMpowJCBdadFmQb3dUx70k7mcsDCJ15mKyae95Y7A0FR2MoXtK2JIwQHfmyGDa6UesMRSo7VNuNCCNuixdCwGhACsYj/V96VRVnXydH/TZzRHP+wdzxYSA8Rl3kNR5MEmk16kvbzbC9nZZpbfgOUjR0xMvQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from SJ1PR12MB6075.namprd12.prod.outlook.com (2603:10b6:a03:45e::8) by SJ2PR12MB7799.namprd12.prod.outlook.com (2603:10b6:a03:4d3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Wed, 29 May 2024 16:02:03 +0000 Received: from SJ1PR12MB6075.namprd12.prod.outlook.com ([fe80::3715:9750:b92c:7bee]) by SJ1PR12MB6075.namprd12.prod.outlook.com ([fe80::3715:9750:b92c:7bee%6]) with mapi id 15.20.7633.018; Wed, 29 May 2024 16:02:03 +0000 From: Aurelien Aptel To: linux-nvme@lists.infradead.org, netdev@vger.kernel.org, sagi@grimberg.me, hch@lst.de, kbusch@kernel.org, axboe@fb.com, chaitanyak@nvidia.com, davem@davemloft.net, kuba@kernel.org Subject: [PATCH v25 11/20] net/mlx5e: Refactor ico sq polling to get budget Date: Wed, 29 May 2024 16:00:44 +0000 Message-Id: <20240529160053.111531-12-aaptel@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240529160053.111531-1-aaptel@nvidia.com> References: <20240529160053.111531-1-aaptel@nvidia.com> X-ClientProxiedBy: LO2P265CA0014.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::26) To SJ1PR12MB6075.namprd12.prod.outlook.com (2603:10b6:a03:45e::8) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PR12MB6075:EE_|SJ2PR12MB7799:EE_ X-MS-Office365-Filtering-Correlation-Id: ee8f644b-a108-4a05-a4c2-08dc7ff8abd3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|1800799015; X-Microsoft-Antispam-Message-Info: ogClQ+u1eEWnqXXh/ijzWXJaQawHOB8OavEfSaceucDOtZcqOl8HtkDJ7RNvHQLJT4609UKBdhklQh6oitsneJ9no9vYItN5nXOjEcpMo1HIWkk19Fr+TubpDc/799NnVXCA6pr13sxmscO1DEiYoWxtlEQn1Whcht1mJpC8r4XZ+kEdx7bAM5vlKfGglMt9KMeJdA0Qt1r18BCLKHkY9wdvYl3hhwnaQKiuOiRU6w7SdZsYsSfZaVYYsFzEclYm8YVtkDP7/wTqZqBQwpf+90qx4r4k9R6yBVGCn/wt6CHBOvM0ByNCgHKMgJQ6gmCwwr3qWDF84+khcLXhDvBAcDIjan/WqjlcT43xcBXD57E6AkY9EeNRHBRJ3RyrJt3P7OIscx7I8h+SzdMPR8qi1zAIg3WvDg9I+MVtnURRbqrI12iUFwvAdxo4PKJeSmA91EuIx370JER6YDJIQjgiIpj6jO3DQy5E5ihSKiUpTmo2+WHF9YvipPNroNWOotzfaK6CLi0U1TQWfEq1QpS/+sRsZo0WwHSTjd4st+t+Vr9aPK94iQhlf0lkuu7ghWp6nFzuzvXjSI+LCsmfAYn2+I8Zf4JsZZQ4Lawmq+CqyDGdrNL9k38BiEf2dh+K9y4ETvUOBMfQ1+OZ4fs3gxuHyzpI6lUG49A6ArksGMYc7XB4snLbO7RwiwlaUzy6ze/mf3v51EnncwkGM7qz48nZGsV1eb7hZDbSSUmAllt4VodnB+OrXm7duUwWG/TwnfzAiXozWLLQCn39P0w8uTM37VnD09ro5wwW4lYVkJgPkYlmRVbP/DL9xF/FO95/VExR6WtE9sTpgwcxAN5rZacK44cmcOrX59GyL2a0YRQv1b6ANs2vlM2DPqBLcdvVLsi2spVqjwf8jAbe4OdPnZvuhpa2FovvdZoYWC3nCqCNv3800pI3bAm/1Tckez2oge7JRQKJ6PdNB1zu5Yz77zvkgDEJdKwT1r8bffEaGw07+/TmkLwqzU2gHrQfkSDKpZj5q+tZRmcOL+6AuGVlcCs5z+CL6YhgaahLIQcaOOrPFK+GMuE7Z9I9fBwNOnY+0RgMVZ0aul05nGhRWVzgf+SGi8hzJlQqSWz8JXnh87T3Lym25C+OEMaq41MQUCcmj+WxODBcXRZiI3z37FCDNYcFcskuQcUppKD9WJq2/perOWLW4Bv0nQCSosjtJPbdFD5UCHjgRrMyzFvsapkCZ30UvtpjNdRmyOb/nkLtVJt9j/3jPz3XlpA1fbJ1MArpL1YdO1NwBMZ8+dXOgy5MKi04AQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ1PR12MB6075.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: U4IfutKhD3MKHg8M5zLUYB4CB490fDv7Z7IKNjhQf/4lkXQqOEYEGxj9A+6RE3Uu0HRfvlvqpwDO2IoMzD9Fc1SNb90aEnakonADMDRW4FyhBYIXqJnDAUbER3JSsEJibr3AC166m1go+az8iFSMmnfJxKyYPYBKpqDvCvoQxE6BFnnuQyfQn0jw3vFnxed54xULjGlYWeMge16bHPhQe1ZA/WRs2DRQgEmvffG2KIcKqJOUFu7c62j8dIkL75pgsbMn1Ip+Bwin8NyG9qymDQSdoEwSrH59Q7iy2QjH95FUWda3GisZ+KK8JK6jhbLy51tmi0NadVQKp02ChdjHBvYbukg1gqHphaFFly73Y0aWvJyBp2vICy9N1ZP69FkgmeNUgiHyoZZkmMCznweGmSgR5XP4b9LdsrDfkhY5UXBzuQvjm/d8j2uRBRmFxjpIlktoPuuMCoq/jfOqodns97xp7z6Kz5ScM35MZv8M4piuq36+XdPUKztQdU7gkjAYRC98KyYhxazjK8/qHLD4vJdDETVFCinP1fsZJpm0T+R1kLyX51X2fALOPBwm3aP7q6cqSnSAYFHx3+HuSoOCfRndHZXMkIuFMD8VDk3x9JRLCNg8UZRzUF4zDhz+fAjeI8mo+zw8SGvP2mpZ0kxoTZjuZHviinF0k+6UONesPIkFDDaAjzFRAgJOvl7Gwwqsb0KhMPpR5cKgsXVY2fLpGB9LZKvlpAY0i5yE9uMMtdfJzau/UCyyQtgq4LbffwbMu/bNwxLTR6qyXdiRNd/bskWN2z8LfzTV38uvJElX9hZqA+m0ZCsd7uqG9umHa9JwslzT/2psURuXY+yvu1BOOkfrNZSgXOvmHILQUARfppgFfOlGwuwOWn/kDKD29IG5TtPAr+dovKZTcAJk4k1s5nH9LPvBxcayPmD2QxC1t7NKdbu9PtyQL7m0+Ibo+FlCbUOR70NlA91cRnISeZ8fHViJR0t87OookE3ex7h2n/PjB/L+RI1kVds/ZhN6uBy+O2qrOM0CPudsssmXfN805SINSc10mj7uYQWC4ZDaJ40gnLr5gUb5cOdpkbx3I+MUykz7pUzmdrfH3ofcGWO8NAL6XvkoB+Y63VYvtJpRnYkFcK8q+HhcedL0VpJBt83HcjBuCNLJduFtxqQKL6txtU61+q4BtNaEobvyVOttTXi50cEAhDO0BG1jo5xggjN3lLOBBLH1wWxiRoo+1AiIVBwvWNkLss36StkFG8+ayq5jBKRDNe4wcqHgDHx3GeDPcdMtqflc7DAJ4IA7OZqZzkr6s6vZLNIVn7atXikupzCwwe45FjaoZNpX9KD4lS936JKgzeDGNEB8pt7ftYCkaEDOm3P8+cjbKQGELeI+W+3KcTRttINASGKf8tS9fxHXPaTeCR3g+ypSC3WhfUaHw3eX3zgp0XNJVlSUoxAcP4q4NYqoSBo/5/MXzE3wyPc4cYTsyyfRXmnGTqSvNccXz/ke1AFJwBA019HakNPV1lWosTl8PD4RwLWPjCm/4rdVdUTLtarHiHLz42IjqSAo+JhFNV05mprNZuRSaHtl69Xh4f0QKCEyYYoshtByBWKz X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee8f644b-a108-4a05-a4c2-08dc7ff8abd3 X-MS-Exchange-CrossTenant-AuthSource: SJ1PR12MB6075.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 16:01:59.2996 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9gUMtre7BJfbLnmdQ+bkK5SsBoadGjDevELGCyH5Tonz1VhgTYVRqVgVhxsI2BtC0Qhr/3L/WtmYTHoOtID/yg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB7799 X-Patchwork-Delegate: kuba@kernel.org From: Or Gerlitz The mlx5e driver uses ICO SQs for internal control operations which are not visible to the network stack, such as UMR mapping for striding RQ (MPWQ) and etc more cases. The upcoming nvmeotcp offload uses ico sq for umr mapping as part of the offload. As a pre-step for nvmeotcp ico sqs which have their own napi and need to comply with budget, add the budget as parameter to the polling of cqs related to ico sqs. The polling already stops after a limit is reached, so just have the caller to provide this limit as the budget. Additionnaly, we move the mdev pointer directly on the icosq structure. This provides better separation between channels to ICO SQs for use-cases where they are not tightly coupled (such as the upcoming nvmeotcp code). No functional change here. Signed-off-by: Or Gerlitz Signed-off-by: Aurelien Aptel Reviewed-by: Tariq Toukan --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 1 + drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c | 4 ++-- drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 5 ++--- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 4 ++-- drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index e85fb71bf0b4..b02df4b15c97 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -559,6 +559,7 @@ struct mlx5e_icosq { /* control path */ struct mlx5_wq_ctrl wq_ctrl; struct mlx5e_channel *channel; + struct mlx5_core_dev *mdev; struct work_struct recover_work; } ____cacheline_aligned_in_smp; diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c index 25d751eba99b..b45497e6ab1a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c @@ -46,7 +46,7 @@ static int mlx5e_query_rq_state(struct mlx5_core_dev *dev, u32 rqn, u8 *state) static int mlx5e_wait_for_icosq_flush(struct mlx5e_icosq *icosq) { - struct mlx5_core_dev *dev = icosq->channel->mdev; + struct mlx5_core_dev *dev = icosq->mdev; unsigned long exp_time; exp_time = jiffies + msecs_to_jiffies(mlx5_tout_ms(dev, FLUSH_ON_ERROR)); @@ -91,7 +91,7 @@ static int mlx5e_rx_reporter_err_icosq_cqe_recover(void *ctx) rq = &icosq->channel->rq; if (test_bit(MLX5E_RQ_STATE_ENABLED, &icosq->channel->xskrq.state)) xskrq = &icosq->channel->xskrq; - mdev = icosq->channel->mdev; + mdev = icosq->mdev; dev = icosq->channel->netdev; err = mlx5_core_query_sq_state(mdev, icosq->sqn, &state); if (err) { diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h b/drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h index 879d698b6119..cdd7fbf218ae 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h @@ -62,7 +62,7 @@ void mlx5e_trigger_irq(struct mlx5e_icosq *sq); void mlx5e_completion_event(struct mlx5_core_cq *mcq, struct mlx5_eqe *eqe); void mlx5e_cq_error_event(struct mlx5_core_cq *mcq, enum mlx5_event event); int mlx5e_napi_poll(struct napi_struct *napi, int budget); -int mlx5e_poll_ico_cq(struct mlx5e_cq *cq); +int mlx5e_poll_ico_cq(struct mlx5e_cq *cq, int budget); /* RX */ INDIRECT_CALLABLE_DECLARE(bool mlx5e_post_rx_wqes(struct mlx5e_rq *rq)); diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index b758bc72ac36..a29b8b6bd2ac 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -1520,6 +1520,7 @@ static int mlx5e_alloc_icosq(struct mlx5e_channel *c, int err; sq->channel = c; + sq->mdev = mdev; sq->uar_map = mdev->mlx5e_res.hw_objs.bfreg.map; sq->reserved_room = param->stop_room; @@ -1978,11 +1979,9 @@ void mlx5e_deactivate_icosq(struct mlx5e_icosq *icosq) static void mlx5e_close_icosq(struct mlx5e_icosq *sq) { - struct mlx5e_channel *c = sq->channel; - if (sq->ktls_resync) mlx5e_ktls_rx_resync_destroy_resp_list(sq->ktls_resync); - mlx5e_destroy_sq(c->mdev, sq->sqn); + mlx5e_destroy_sq(sq->mdev, sq->sqn); mlx5e_free_icosq_descs(sq); mlx5e_free_icosq(sq); } diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c index b5333da20e8a..47bc37292bc3 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c @@ -993,7 +993,7 @@ static void mlx5e_handle_shampo_hd_umr(struct mlx5e_shampo_umr umr, shampo->ci = (shampo->ci + umr.len) & (shampo->hd_per_wq - 1); } -int mlx5e_poll_ico_cq(struct mlx5e_cq *cq) +int mlx5e_poll_ico_cq(struct mlx5e_cq *cq, int budget) { struct mlx5e_icosq *sq = container_of(cq, struct mlx5e_icosq, cq); struct mlx5_cqe64 *cqe; @@ -1068,7 +1068,7 @@ int mlx5e_poll_ico_cq(struct mlx5e_cq *cq) wi->wqe_type); } } while (!last_wqe); - } while ((++i < MLX5E_TX_CQ_POLL_BUDGET) && (cqe = mlx5_cqwq_get_cqe(&cq->wq))); + } while ((++i < budget) && (cqe = mlx5_cqwq_get_cqe(&cq->wq))); sq->cc = sqcc; diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c index 5873fde65c2e..d8563110a273 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c @@ -178,8 +178,8 @@ int mlx5e_napi_poll(struct napi_struct *napi, int budget) busy |= work_done == budget; - mlx5e_poll_ico_cq(&c->icosq.cq); - if (mlx5e_poll_ico_cq(&c->async_icosq.cq)) + mlx5e_poll_ico_cq(&c->icosq.cq, MLX5E_TX_CQ_POLL_BUDGET); + if (mlx5e_poll_ico_cq(&c->async_icosq.cq, MLX5E_TX_CQ_POLL_BUDGET)) /* Don't clear the flag if nothing was polled to prevent * queueing more WQEs and overflowing the async ICOSQ. */