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"); }