Page MenuHomeFreeBSD

D41439.1795547003.diff
No OneTemporary

Authored By
Unknown
Size
748 B
Referenced Files
None
Subscribers
None

D41439.1795547003.diff

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

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)

Event Timeline