|
@@ -3441,6 +3441,7 @@ EXPORT_SYMBOL(netdev_max_backlog);
|
|
|
|
|
|
int netdev_tstamp_prequeue __read_mostly = 1;
|
|
int netdev_tstamp_prequeue __read_mostly = 1;
|
|
int netdev_budget __read_mostly = 300;
|
|
int netdev_budget __read_mostly = 300;
|
|
|
|
+unsigned int __read_mostly netdev_budget_usecs = 2000;
|
|
int weight_p __read_mostly = 64; /* old backlog weight */
|
|
int weight_p __read_mostly = 64; /* old backlog weight */
|
|
int dev_weight_rx_bias __read_mostly = 1; /* bias for backlog weight */
|
|
int dev_weight_rx_bias __read_mostly = 1; /* bias for backlog weight */
|
|
int dev_weight_tx_bias __read_mostly = 1; /* bias for output_queue quota */
|
|
int dev_weight_tx_bias __read_mostly = 1; /* bias for output_queue quota */
|
|
@@ -5307,7 +5308,8 @@ out_unlock:
|
|
static __latent_entropy void net_rx_action(struct softirq_action *h)
|
|
static __latent_entropy void net_rx_action(struct softirq_action *h)
|
|
{
|
|
{
|
|
struct softnet_data *sd = this_cpu_ptr(&softnet_data);
|
|
struct softnet_data *sd = this_cpu_ptr(&softnet_data);
|
|
- unsigned long time_limit = jiffies + 2;
|
|
|
|
|
|
+ unsigned long time_limit = jiffies +
|
|
|
|
+ usecs_to_jiffies(netdev_budget_usecs);
|
|
int budget = netdev_budget;
|
|
int budget = netdev_budget;
|
|
LIST_HEAD(list);
|
|
LIST_HEAD(list);
|
|
LIST_HEAD(repoll);
|
|
LIST_HEAD(repoll);
|