]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hyperv/hn: Avoid mbuf cluster allocation, if the packet is small.
authorSepherosa Ziehau <sephe@FreeBSD.org>
Tue, 12 Jan 2016 01:50:56 +0000 (01:50 +0000)
committerSepherosa Ziehau <sephe@FreeBSD.org>
Tue, 12 Jan 2016 01:50:56 +0000 (01:50 +0000)
commitc48d20d7c75383ca2a4a100998b919f88b3e0675
treee35a63ac0bbce4e40be5e5bbb2425ab1f490bf19
parentda949700f240c05ea006a4765bc2647025103bd4
hyperv/hn: Avoid mbuf cluster allocation, if the packet is small.

This one mainly avoids mbuf cluster allocation for TCP ACKs during
TCP sending tests.  And it gives me ~200Mbps improvement (4.7Gbps
-> 4.9Gbps), when running iperf3 TCP sending test w/ 16 connections.

While I'm here, nuke the unnecessary zeroing out pkthdr.csum_flags.

Reviewed by: adrain
Approved by: adrian (mentor)
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D4853
sys/dev/hyperv/netvsc/hv_net_vsc.h
sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c