Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177899713
D41439.1795547003.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
748 B
Referenced Files
None
Subscribers
None
D41439.1795547003.diff
View Options
diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c
--- a/sys/dev/xen/netfront/netfront.c
+++ b/sys/dev/xen/netfront/netfront.c
@@ -637,7 +637,8 @@
message = "writing feature-sg";
goto abort_transaction;
}
- if ((if_getcapenable(info->xn_ifp) & IFCAP_LRO) != 0) {
+ if (xn_enable_lro &&
+ (if_getcapenable(info->xn_ifp) & IFCAP_LRO) != 0) {
err = xs_printf(xst, node, "feature-gso-tcpv4", "%d", 1);
if (err != 0) {
message = "writing feature-gso-tcpv4";
@@ -2079,7 +2080,7 @@
val = 0;
if_setcapabilitiesbit(np->xn_ifp, 0, IFCAP_TSO4 | IFCAP_LRO);
- if (val) {
+ if (val && xn_enable_lro) {
if_setcapabilitiesbit(np->xn_ifp, IFCAP_TSO4 | IFCAP_LRO, 0);
printf(" feature-gso-tcp4");
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 24, 7:03 PM (23 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41960976
Default Alt Text
D41439.1795547003.diff (748 B)
Attached To
Mode
D41439: netfront: fix the support for disabling LRO at boot time
Attached
Detach File
Event Timeline