From 44f2eb96bd7e367ca8e4387418ab92de9a6280df Mon Sep 17 00:00:00 2001 From: Zbigniew Bodek Date: Thu, 25 Feb 2016 14:19:02 +0000 Subject: [PATCH] Enable HWSTATS capability for VNIC VNIC manages counters in hardware hence it is desired to have this option enabled to avoid redundant stats update in ether_input_internal(). Reviewed by: wma Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5323 --- sys/dev/vnic/nicvf_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/vnic/nicvf_main.c b/sys/dev/vnic/nicvf_main.c index c845355630b..a995510eddf 100644 --- a/sys/dev/vnic/nicvf_main.c +++ b/sys/dev/vnic/nicvf_main.c @@ -360,6 +360,7 @@ nicvf_setup_ifnet(struct nicvf *nic) */ /* IP/TCP/UDP HW checksums */ if_setcapabilitiesbit(ifp, IFCAP_HWCSUM, 0); + if_setcapabilitiesbit(ifp, IFCAP_HWSTATS, 0); if_sethwassistbits(ifp, (CSUM_IP | CSUM_TCP | CSUM_UDP), 0); #ifdef DEVICE_POLLING