rps: cleanups

struct softnet_data holds many queues, so consistent use "sd" name
instead of "queue" is better.

Adds a rps_ipi_queued() helper to cleanup enqueue_to_backlog()

Adds a _and_irq_disable suffix to net_rps_action() name, as David
suggested.

incr_input_queue_head() becomes input_queue_head_incr()

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eric Dumazet
2010-04-19 21:17:14 +00:00
committed by David S. Miller
parent f5acb907dc
commit e36fa2f7e9
2 changed files with 82 additions and 71 deletions

View File

@@ -1401,10 +1401,10 @@ struct softnet_data {
struct napi_struct backlog;
};
static inline void incr_input_queue_head(struct softnet_data *queue)
static inline void input_queue_head_incr(struct softnet_data *sd)
{
#ifdef CONFIG_RPS
queue->input_queue_head++;
sd->input_queue_head++;
#endif
}