diff options
Diffstat (limited to 'include/net/request_sock.h')
-rw-r--r-- | include/net/request_sock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h index 334717bf9ef6..b7c7eecbe64d 100644 --- a/include/net/request_sock.h +++ b/include/net/request_sock.h | |||
@@ -224,17 +224,17 @@ static inline int reqsk_queue_added(struct request_sock_queue *queue) | |||
224 | return prev_qlen; | 224 | return prev_qlen; |
225 | } | 225 | } |
226 | 226 | ||
227 | static inline int reqsk_queue_len(struct request_sock_queue *queue) | 227 | static inline int reqsk_queue_len(const struct request_sock_queue *queue) |
228 | { | 228 | { |
229 | return queue->listen_opt != NULL ? queue->listen_opt->qlen : 0; | 229 | return queue->listen_opt != NULL ? queue->listen_opt->qlen : 0; |
230 | } | 230 | } |
231 | 231 | ||
232 | static inline int reqsk_queue_len_young(struct request_sock_queue *queue) | 232 | static inline int reqsk_queue_len_young(const struct request_sock_queue *queue) |
233 | { | 233 | { |
234 | return queue->listen_opt->qlen_young; | 234 | return queue->listen_opt->qlen_young; |
235 | } | 235 | } |
236 | 236 | ||
237 | static inline int reqsk_queue_is_full(struct request_sock_queue *queue) | 237 | static inline int reqsk_queue_is_full(const struct request_sock_queue *queue) |
238 | { | 238 | { |
239 | return queue->listen_opt->qlen >> queue->listen_opt->max_qlen_log; | 239 | return queue->listen_opt->qlen >> queue->listen_opt->max_qlen_log; |
240 | } | 240 | } |