mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
44dd269352
commit
44f2eb96bd
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue