eth: atlantic: remove a copy of the NAPI_POLL_WEIGHT define
Defining local versions of NAPI_POLL_WEIGHT with the same values in the drivers just makes refactoring harder. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
592df36637
commit
0258f5399f
@ -65,8 +65,6 @@
|
||||
*/
|
||||
#define AQ_CFG_RESTART_DESC_THRES (AQ_CFG_SKB_FRAGS_MAX * 2)
|
||||
|
||||
#define AQ_CFG_NAPI_WEIGHT 64U
|
||||
|
||||
/*#define AQ_CFG_MAC_ADDR_PERMANENT {0x30, 0x0E, 0xE3, 0x12, 0x34, 0x56}*/
|
||||
|
||||
#define AQ_CFG_FC_MODE AQ_NIC_FC_FULL
|
||||
|
@ -1218,7 +1218,7 @@ int aq_ptp_init(struct aq_nic_s *aq_nic, unsigned int idx_vec)
|
||||
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);
|
||||
aq_ptp_poll, NAPI_POLL_WEIGHT);
|
||||
|
||||
aq_ptp->idx_vector = idx_vec;
|
||||
|
||||
|
@ -120,7 +120,7 @@ struct aq_vec_s *aq_vec_alloc(struct aq_nic_s *aq_nic, unsigned int idx,
|
||||
self->rx_rings = 0;
|
||||
|
||||
netif_napi_add(aq_nic_get_ndev(aq_nic), &self->napi,
|
||||
aq_vec_poll, AQ_CFG_NAPI_WEIGHT);
|
||||
aq_vec_poll, NAPI_POLL_WEIGHT);
|
||||
|
||||
err_exit:
|
||||
return self;
|
||||
|
Loading…
x
Reference in New Issue
Block a user