summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixgbe/ixgbe.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-10-09 19:04:40 +0000
committerglebius <glebius@FreeBSD.org>2013-10-09 19:04:40 +0000
commit75528d8e36fb23734af42c83fe710155dc3e2d5c (patch)
treea73da61112c51368ee56913bcb5771167291b7ca /sys/dev/ixgbe/ixgbe.c
parent57b95400601bfa18b78d342b43a877efa06e81d1 (diff)
downloadFreeBSD-src-75528d8e36fb23734af42c83fe710155dc3e2d5c.zip
FreeBSD-src-75528d8e36fb23734af42c83fe710155dc3e2d5c.tar.gz
There are some high performance NICs that count statistics in hardware,
and there are ifnets, that do that via counter(9). Provide a flag that would skip cache line trashing '+=' operation in ether_input(). Sponsored by: Netflix Sponsored by: Nginx, Inc. Reviewed by: melifaro, adrian Approved by: re (marius)
Diffstat (limited to 'sys/dev/ixgbe/ixgbe.c')
-rw-r--r--sys/dev/ixgbe/ixgbe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c
index 3434125..e913bd5 100644
--- a/sys/dev/ixgbe/ixgbe.c
+++ b/sys/dev/ixgbe/ixgbe.c
@@ -2662,7 +2662,8 @@ ixgbe_setup_interface(device_t dev, struct adapter *adapter)
ifp->if_capabilities |= IFCAP_LRO;
ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING
| IFCAP_VLAN_HWTSO
- | IFCAP_VLAN_MTU;
+ | IFCAP_VLAN_MTU
+ | IFCAP_HWSTATS;
ifp->if_capenable = ifp->if_capabilities;
/*
OpenPOWER on IntegriCloud