From 8f078047f324c132247e0aab00172b202bcb1d43 Mon Sep 17 00:00:00 2001 From: kznrluk Date: Sat, 4 Feb 2023 12:46:31 +0900 Subject: [PATCH] drop the weight argument from netif_napi_add --- aq_ptp.c | 3 +-- aq_vec.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/aq_ptp.c b/aq_ptp.c index f78f5fc..fae8e3b 100644 --- a/aq_ptp.c +++ b/aq_ptp.c @@ -2127,8 +2127,7 @@ int aq_ptp_init(struct aq_nic_s *aq_nic, unsigned int idx_ptp_vec, unsigned int atomic_set(&aq_ptp->offset_egress, 0); atomic_set(&aq_ptp->offset_ingress, 0); - netif_napi_add(aq_nic_get_ndev(aq_nic), &aq_ptp->napi, - aq_ptp_poll, AQ_CFG_NAPI_WEIGHT); + netif_napi_add(aq_nic_get_ndev(aq_nic), &aq_ptp->napi, aq_ptp_poll); aq_ptp->idx_ptp_vector = idx_ptp_vec; aq_ptp->idx_gpio_vector = idx_ext_vec; diff --git a/aq_vec.c b/aq_vec.c index 7c10975..667351a 100644 --- a/aq_vec.c +++ b/aq_vec.c @@ -123,8 +123,7 @@ struct aq_vec_s *aq_vec_alloc(struct aq_nic_s *aq_nic, unsigned int idx, cpumask_set_cpu(self->aq_ring_param.cpu, &self->aq_ring_param.affinity_mask); - netif_napi_add(aq_nic_get_ndev(aq_nic), &self->napi, - aq_vec_poll, AQ_CFG_NAPI_WEIGHT); + netif_napi_add(aq_nic_get_ndev(aq_nic), &self->napi, aq_vec_poll); err_exit: return self;