svn commit: r327098 - head/sys/net
Warner Losh
imp at FreeBSD.org
Sat Dec 23 04:50:54 UTC 2017
Author: imp
Date: Sat Dec 23 04:50:52 2017
New Revision: 327098
URL: https://svnweb.freebsd.org/changeset/base/327098
Log:
The device tables end with a sentinel in iflib. Don't include the
sentinel in the output.
Modified:
head/sys/net/iflib.h
Modified: head/sys/net/iflib.h
==============================================================================
--- head/sys/net/iflib.h Fri Dec 22 23:27:03 2017 (r327097)
+++ head/sys/net/iflib.h Sat Dec 23 04:50:52 2017 (r327098)
@@ -176,7 +176,7 @@ typedef struct pci_vendor_info {
#define IFLIB_PNP_DESCR "U32:vendor;U32:device;U32:subvendor;U32:subdevice;" \
"U32:revision;U32:class;D:#"
#define IFLIB_PNP_INFO(b, u, t) \
- MODULE_PNP_INFO(IFLIB_PNP_DESCR, b, u, t, sizeof(t[0]), nitems(t))
+ MODULE_PNP_INFO(IFLIB_PNP_DESCR, b, u, t, sizeof(t[0]), nitems(t) - 1)
typedef struct if_txrx {
int (*ift_txd_encap) (void *, if_pkt_info_t);
More information about the svn-src-all
mailing list