diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-19 17:17:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-20 04:18:05 -0400 |
commit | e36fa2f7e92f25aab2e3d787dcfe3590817f19d3 (patch) | |
tree | b1bd60b14131dacc72a80efbd2f062935cc43e25 /include | |
parent | f5acb907dc24c3822f408211bad1cd6e5d0433cf (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 83ab3da149ad..3c5ed5f5274e 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1401,10 +1401,10 @@ struct softnet_data { | |||
1401 | struct napi_struct backlog; | 1401 | struct napi_struct backlog; |
1402 | }; | 1402 | }; |
1403 | 1403 | ||
1404 | static inline void incr_input_queue_head(struct softnet_data *queue) | 1404 | static inline void input_queue_head_incr(struct softnet_data *sd) |
1405 | { | 1405 | { |
1406 | #ifdef CONFIG_RPS | 1406 | #ifdef CONFIG_RPS |
1407 | queue->input_queue_head++; | 1407 | sd->input_queue_head++; |
1408 | #endif | 1408 | #endif |
1409 | } | 1409 | } |
1410 | 1410 | ||