Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142097410
D8619.id22552.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
770 B
Referenced Files
None
Subscribers
None
D8619.id22552.diff
View Options
Index: head/sys/dev/hyperv/netvsc/if_hn.c
===================================================================
--- head/sys/dev/hyperv/netvsc/if_hn.c
+++ head/sys/dev/hyperv/netvsc/if_hn.c
@@ -706,6 +706,10 @@
if (sc->hn_rndis_agg_size < size)
size = sc->hn_rndis_agg_size;
+ /* NOTE: We only aggregate packets using chimney sending buffers. */
+ if (size > (uint32_t)sc->hn_chim_szmax)
+ size = sc->hn_chim_szmax;
+
if (size <= 2 * HN_PKTSIZE_MIN(sc->hn_rndis_agg_align)) {
/* Disable */
size = 0;
@@ -717,10 +721,6 @@
if (size > INT_MAX)
size = INT_MAX;
- /* NOTE: We only aggregate packets using chimney sending buffers. */
- if (size > (uint32_t)sc->hn_chim_szmax)
- size = sc->hn_chim_szmax;
-
/*
* Setup aggregation packet count.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 17, 12:31 AM (3 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27674659
Default Alt Text
D8619.id22552.diff (770 B)
Attached To
Mode
D8619: hyperv/hn: Fix multi-packet RNDIS message aggregation size setting.
Attached
Detach File
Event Timeline
Log In to Comment