MODULE_PARM_DESC(irq_adapt_high_thresh,
"Threshold score for increasing IRQ moderation");
-/* This is the weight assigned to each of the (per-channel) virtual
- * NAPI devices.
- */
-static int napi_weight = 64;
-
static const struct efx_channel_type efx_default_channel_type;
/*************
struct efx_nic *efx = channel->efx;
channel->napi_dev = efx->net_dev;
- netif_napi_add_weight(channel->napi_dev, &channel->napi_str, efx_poll,
- napi_weight);
+ netif_napi_add(channel->napi_dev, &channel->napi_str, efx_poll, 64);
}
void efx_init_napi(struct efx_nic *efx)
MODULE_PARM_DESC(ef4_separate_tx_channels,
"Use separate channels for TX and RX");
-/* This is the weight assigned to each of the (per-channel) virtual
- * NAPI devices.
- */
-static int napi_weight = 64;
-
/* This is the time (in jiffies) between invocations of the hardware
* monitor.
* On Falcon-based NICs, this will:
struct ef4_nic *efx = channel->efx;
channel->napi_dev = efx->net_dev;
- netif_napi_add_weight(channel->napi_dev, &channel->napi_str, ef4_poll,
- napi_weight);
+ netif_napi_add(channel->napi_dev, &channel->napi_str, ef4_poll, 64);
}
static void ef4_init_napi(struct ef4_nic *efx)
MODULE_PARM_DESC(irq_adapt_high_thresh,
"Threshold score for increasing IRQ moderation");
-/* This is the weight assigned to each of the (per-channel) virtual
- * NAPI devices.
- */
-static int napi_weight = 64;
-
static const struct efx_channel_type efx_default_channel_type;
/*************
struct efx_nic *efx = channel->efx;
channel->napi_dev = efx->net_dev;
- netif_napi_add_weight(channel->napi_dev, &channel->napi_str, efx_poll,
- napi_weight);
+ netif_napi_add(channel->napi_dev, &channel->napi_str, efx_poll, 64);
}
void efx_siena_init_napi(struct efx_nic *efx)