@@ -369,7 +369,7 @@ struct napi_config {
369369 u64 irq_suspend_timeout ;
370370 u32 defer_hard_irqs ;
371371 cpumask_t affinity_mask ;
372- bool threaded ;
372+ u8 threaded ;
373373 unsigned int napi_id ;
374374};
375375
@@ -589,8 +589,9 @@ static inline bool napi_complete(struct napi_struct *n)
589589 return napi_complete_done (n , 0 );
590590}
591591
592- int netif_set_threaded (struct net_device * dev , bool threaded );
593- int dev_set_threaded (struct net_device * dev , bool threaded );
592+ void netif_threaded_enable (struct net_device * dev );
593+ int dev_set_threaded (struct net_device * dev ,
594+ enum netdev_napi_threaded threaded );
594595
595596void napi_disable (struct napi_struct * n );
596597void napi_disable_locked (struct napi_struct * n );
@@ -1872,6 +1873,7 @@ enum netdev_reg_state {
18721873 * @addr_len: Hardware address length
18731874 * @upper_level: Maximum depth level of upper devices.
18741875 * @lower_level: Maximum depth level of lower devices.
1876+ * @threaded: napi threaded state.
18751877 * @neigh_priv_len: Used in neigh_alloc()
18761878 * @dev_id: Used to differentiate devices that share
18771879 * the same link layer address
@@ -2011,8 +2013,6 @@ enum netdev_reg_state {
20112013 * switch driver and used to set the phys state of the
20122014 * switch port.
20132015 *
2014- * @threaded: napi threaded mode is enabled
2015- *
20162016 * @irq_affinity_auto: driver wants the core to store and re-assign the IRQ
20172017 * affinity. Set by netif_enable_irq_affinity(), then
20182018 * the driver must create a persistent napi by
@@ -2248,6 +2248,7 @@ struct net_device {
22482248 unsigned char addr_len ;
22492249 unsigned char upper_level ;
22502250 unsigned char lower_level ;
2251+ u8 threaded ;
22512252
22522253 unsigned short neigh_priv_len ;
22532254 unsigned short dev_id ;
@@ -2429,7 +2430,6 @@ struct net_device {
24292430 struct sfp_bus * sfp_bus ;
24302431 struct lock_class_key * qdisc_tx_busylock ;
24312432 bool proto_down ;
2432- bool threaded ;
24332433 bool irq_affinity_auto ;
24342434 bool rx_cpu_rmap_auto ;
24352435
0 commit comments