Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 2016 14:19:02 +0000 (UTC)
From:      Zbigniew Bodek <zbb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296033 - head/sys/dev/vnic
Message-ID:  <201602251419.u1PEJ2GR060389@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602251419.u1PEJ2GR060389>