svn commit: r296033 - head/sys/dev/vnic
Zbigniew Bodek
zbb at FreeBSD.org
Thu Feb 25 14:19:04 UTC 2016
Author: zbb
Date: Thu Feb 25 14:19:02 2016
New Revision: 296033
URL: https://svnweb.freebsd.org/changeset/base/296033
Log:
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
Modified:
head/sys/dev/vnic/nicvf_main.c
Modified: head/sys/dev/vnic/nicvf_main.c
==============================================================================
--- head/sys/dev/vnic/nicvf_main.c Thu Feb 25 14:17:13 2016 (r296032)
+++ head/sys/dev/vnic/nicvf_main.c Thu Feb 25 14:19:02 2016 (r296033)
@@ -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
More information about the svn-src-all
mailing list