summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornp <np@FreeBSD.org>2016-06-23 21:07:15 +0000
committernp <np@FreeBSD.org>2016-06-23 21:07:15 +0000
commitaf533198e352d1ee97e831497a7a004f6f1f2740 (patch)
tree6b704ccaadb906cc6c03467f121aa4f0dc1e483a /sys
parentd5b9b0e8af15c826a00e60b69b8c77bff0d0a7c9 (diff)
downloadFreeBSD-src-af533198e352d1ee97e831497a7a004f6f1f2740.zip
FreeBSD-src-af533198e352d1ee97e831497a7a004f6f1f2740.tar.gz
Add spares to struct ifnet and socket for packet pacing and/or general
use. Update comments regarding the spare fields in struct inpcb. Bump __FreeBSD_version for the changes to the size of the structures. Reviewed by: gnn@ Approved by: re@ (gjb@) Sponsored by: Chelsio Communications
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_var.h2
-rw-r--r--sys/netinet/in_pcb.h4
-rw-r--r--sys/sys/param.h2
-rw-r--r--sys/sys/socketvar.h3
4 files changed, 8 insertions, 3 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index f0766ee..2298de5 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -311,6 +311,8 @@ struct ifnet {
* that structure can be enhanced without changing the kernel
* binary interface.
*/
+ void *if_pspare[4]; /* packet pacing / general use */
+ int if_ispare[4]; /* packet pacing / general use */
};
/* for compatibility with other BSDs */
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 17f7c3d..4e3fbe5 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -202,10 +202,10 @@ struct inpcb {
u_char inp_ip_minttl; /* (i) minimum TTL or drop */
uint32_t inp_flowid; /* (x) flow id / queue id */
u_int inp_refcount; /* (i) refcount */
- void *inp_pspare[5]; /* (x) route caching / general use */
+ void *inp_pspare[5]; /* (x) packet pacing / general use */
uint32_t inp_flowtype; /* (x) M_HASHTYPE value */
uint32_t inp_rss_listen_bucket; /* (x) overridden RSS listen bucket */
- u_int inp_ispare[4]; /* (x) route caching / user cookie /
+ u_int inp_ispare[4]; /* (x) packet pacing / user cookie /
* general use */
/* Local and foreign ports, local and foreign addr. */
diff --git a/sys/sys/param.h b/sys/sys/param.h
index e254573..5da8016 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -58,7 +58,7 @@
* in the range 5 to 9.
*/
#undef __FreeBSD_version
-#define __FreeBSD_version 1100119 /* Master, propagated to newvers */
+#define __FreeBSD_version 1100120 /* Master, propagated to newvers */
/*
* __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index 87b8a2a..3bc2bae 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -126,6 +126,9 @@ struct socket {
*/
int so_fibnum; /* routing domain for this socket */
uint32_t so_user_cookie;
+
+ void *so_pspare[2]; /* packet pacing / general use */
+ int so_ispare[2]; /* packet pacing / general use */
};
/*
OpenPOWER on IntegriCloud