summaryrefslogtreecommitdiff
path: root/sys/net/if_bridge.c
diff options
context:
space:
mode:
authorJan Klemkow <jan@cvs.openbsd.org>2023-05-16 14:32:55 +0000
committerJan Klemkow <jan@cvs.openbsd.org>2023-05-16 14:32:55 +0000
commit2d46d995289784338eb9d2fd190423b85fc46630 (patch)
treefcd1f331783ba5714481f8b8485e1c6b291b46d4 /sys/net/if_bridge.c
parent6054ba0d03a74d6440cca9aa7026e283f95581f3 (diff)
Use separate IFCAPs for LRO and TSO.
This diff introduces separate capabilities for TCP offloading. We split this into LRO (large receive offloading) and TSO (TCP segmentation offloading). LRO can be turned on/off via tcprecvoffload option of ifconfig and is not inherited to sub interfaces. TSO is inherited by sub interfaces to signal this hardware offloading capability to the network stack. With tweaks from bluhm, claudio and dlg ok bluhm, claudio
Diffstat (limited to 'sys/net/if_bridge.c')
-rw-r--r--sys/net/if_bridge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index a5ad2281a70..486b041bcfb 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.367 2023/05/13 13:35:17 bluhm Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.368 2023/05/16 14:32:54 jan Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -338,7 +338,7 @@ bridge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
*/
NET_LOCK();
- ifsettso(ifs, 0);
+ ifsetlro(ifs, 0);
NET_UNLOCK();
bif->bridge_sc = sc;
@@ -401,7 +401,7 @@ bridge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
}
NET_LOCK();
- ifsettso(ifs, 0);
+ ifsetlro(ifs, 0);
NET_UNLOCK();
bif->bridge_sc = sc;