Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108565692
D41439.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
808 B
Referenced Files
None
Subscribers
None
D41439.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
@@ -2272,7 +2272,7 @@
create_netdev(device_t dev)
{
struct netfront_info *np;
- int err;
+ int err, cap_enabled;
if_t ifp;
np = device_get_softc(dev);
@@ -2304,7 +2304,11 @@
if_sethwassist(ifp, XN_CSUM_FEATURES);
/* Enable all supported features at device creation. */
if_setcapabilities(ifp, IFCAP_HWCSUM|IFCAP_TSO4|IFCAP_LRO);
- if_setcapenable(ifp, if_getcapabilities(ifp));
+ cap_enabled = if_getcapabilities(ifp);
+ if (!xn_enable_lro) {
+ cap_enabled &= ~IFCAP_LRO;
+ }
+ if_setcapenable(ifp, cap_enabled);
if_sethwtsomax(ifp, 65536 - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN));
if_sethwtsomaxsegcount(ifp, MAX_TX_REQ_FRAGS);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 10:03 AM (2 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16194003
Default Alt Text
D41439.diff (808 B)
Attached To
Mode
D41439: netfront: fix the support for disabling LRO at boot time
Attached
Detach File
Event Timeline
Log In to Comment