Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net pktq_rps_hash(): Make the "funcp" argument const.



details:   https://anonhg.NetBSD.org/src/rev/a7a770a4e0d0
branches:  trunk
changeset: 369784:a7a770a4e0d0
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Sep 01 05:04:22 2022 +0000

description:
pktq_rps_hash(): Make the "funcp" argument const.

diffstat:

 sys/net/pktqueue.c |  6 +++---
 sys/net/pktqueue.h |  5 +++--
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r 1b20e4fcb89a -r a7a770a4e0d0 sys/net/pktqueue.c
--- a/sys/net/pktqueue.c        Thu Sep 01 02:35:06 2022 +0000
+++ b/sys/net/pktqueue.c        Thu Sep 01 05:04:22 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pktqueue.c,v 1.17 2022/09/01 02:35:06 thorpej Exp $    */
+/*     $NetBSD: pktqueue.c,v 1.18 2022/09/01 05:04:22 thorpej Exp $    */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pktqueue.c,v 1.17 2022/09/01 02:35:06 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pktqueue.c,v 1.18 2022/09/01 05:04:22 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -223,7 +223,7 @@
 }
 
 uint32_t
-pktq_rps_hash(pktq_rps_hash_func_t *funcp, const struct mbuf *m)
+pktq_rps_hash(const pktq_rps_hash_func_t *funcp, const struct mbuf *m)
 {
        pktq_rps_hash_func_t func = atomic_load_relaxed(funcp);
 
diff -r 1b20e4fcb89a -r a7a770a4e0d0 sys/net/pktqueue.h
--- a/sys/net/pktqueue.h        Thu Sep 01 02:35:06 2022 +0000
+++ b/sys/net/pktqueue.h        Thu Sep 01 05:04:22 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pktqueue.h,v 1.5 2021/10/11 05:13:11 knakahara Exp $   */
+/*     $NetBSD: pktqueue.h,v 1.6 2022/09/01 05:04:22 thorpej Exp $     */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -56,7 +56,8 @@
 void           pktq_flush(pktqueue_t *);
 int            pktq_set_maxlen(pktqueue_t *, size_t);
 
-uint32_t       pktq_rps_hash(pktq_rps_hash_func_t *, const struct mbuf *);
+uint32_t       pktq_rps_hash(const pktq_rps_hash_func_t *,
+                   const struct mbuf *);
 extern const pktq_rps_hash_func_t      pktq_rps_hash_default;
 
 uint64_t       pktq_get_count(pktqueue_t *, pktq_count_t);



Home | Main Index | Thread Index | Old Index