path: root/sys/dev/ixl/ixl.h
diff options
authorJohn Baldwin <jhb@FreeBSD.org>2015-04-30 18:23:38 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2015-04-30 18:23:38 +0000
commit625d12c609f482d9138d17766d090360b6b26a04 (patch)
tree978e5c26d91bccf538b9e2ae2f5a48b32ee4604b /sys/dev/ixl/ixl.h
parent59023e6ce2517426afda53adb685ad7623b8e84b (diff)
Various fixes to the stats in igb(4), ixgbe(4), and ixl(4).
- Use hardware counters for ifnet stats in igb(4) when possible. This ensures these stats include packets that bypass the regular stack via netmap. - Don't derefence values off the end of the igb(4) VF stats structure. Instead, add a dedicated if_get_counter method for igb(4) VF interfaces. - Report missed packets on igb(4) as input queue drops rather than an input error. - Report bug_ring drop counts as output queue drops for igb(4) and ixgbe(4). - Export the buf_ring drop stats for individual rings via sysctl on ixgbe(4). - Fix a typo that in ixl(4) that caused output queue drops to be reported as input queue drops and input queue drops to be unreported. Differential Revision: https://reviews.freebsd.org/D2402 Reviewed by: jfv, rstone (6) Sponsored by: Norse Corp, Inc.
Notes: svn path=/head/; revision=282280
Diffstat (limited to 'sys/dev/ixl/ixl.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ixl/ixl.h b/sys/dev/ixl/ixl.h
index df8f04f557bd..1ddfbca3d7d7 100644
--- a/sys/dev/ixl/ixl.h
+++ b/sys/dev/ixl/ixl.h
@@ -324,7 +324,7 @@
#define IXL_SET_IMCASTS(vsi, count) (vsi)->imcasts = (count)
#define IXL_SET_OMCASTS(vsi, count) (vsi)->omcasts = (count)
#define IXL_SET_IQDROPS(vsi, count) (vsi)->iqdrops = (count)
-#define IXL_SET_OQDROPS(vsi, count) (vsi)->iqdrops = (count)
+#define IXL_SET_OQDROPS(vsi, count) (vsi)->oqdrops = (count)
#define IXL_SET_NOPROTO(vsi, count) (vsi)->noproto = (count)
#define IXL_SET_IPACKETS(vsi, count) (vsi)->ifp->if_ipackets = (count)