diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2013-10-09 19:04:40 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2013-10-09 19:04:40 +0000 |
commit | 4cdc1f5421c5e44b6004e9f4bb1f98dc034bde52 (patch) | |
tree | a73da61112c51368ee56913bcb5771167291b7ca /sys/dev/ixgbe | |
parent | acb9d2c7f022fc412e3618b7a4c18546f8903b0b (diff) | |
download | src-4cdc1f5421c5e44b6004e9f4bb1f98dc034bde52.tar.gz src-4cdc1f5421c5e44b6004e9f4bb1f98dc034bde52.zip |
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)
Notes
Notes:
svn path=/head/; revision=256218
Diffstat (limited to 'sys/dev/ixgbe')
-rw-r--r-- | sys/dev/ixgbe/ixgbe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c index 3434125fc488..e913bd5eec52 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; /* |