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:

committed by
David S. Miller

parent
f5acb907dc
commit
e36fa2f7e9
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user