summaryrefslogtreecommitdiffstats
path: root/sys/net/if_switch.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2018-12-07 16:19:40 +0000
committermpi <mpi@openbsd.org>2018-12-07 16:19:40 +0000
commit1cfe6aaaee9a634074e21c60bf8a8223ebc56dc6 (patch)
treeaaf11c3e737dfc554c7d73e7d363e2ab403af77d /sys/net/if_switch.c
parentRemove useless spl protection. (diff)
downloadwireguard-openbsd-1cfe6aaaee9a634074e21c60bf8a8223ebc56dc6.tar.xz
wireguard-openbsd-1cfe6aaaee9a634074e21c60bf8a8223ebc56dc6.zip
Stop passing `sc' when it isn't needed and use `ifp' where it's good
enough. ok sthen@, visa@
Diffstat (limited to 'sys/net/if_switch.c')
-rw-r--r--sys/net/if_switch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_switch.c b/sys/net/if_switch.c
index 93f529300d3..dc06a20fa01 100644
--- a/sys/net/if_switch.c
+++ b/sys/net/if_switch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_switch.c,v 1.23 2018/02/19 08:59:52 mpi Exp $ */
+/* $OpenBSD: if_switch.c,v 1.24 2018/12/07 16:19:40 mpi Exp $ */
/*
* Copyright (c) 2016 Kazuya GODA <goda@openbsd.org>
@@ -718,8 +718,7 @@ switch_port_egress(struct switch_softc *sc, struct switch_fwdp_queue *fwdp_q,
*/
if (!(swpo->swpo_flags & IFBIF_LOCAL) &&
((len - ETHER_HDR_LEN) > dst_if->if_mtu))
- bridge_fragment((struct bridge_softc *)sc,
- dst_if, &eh, mc);
+ bridge_fragment(&sc->sc_if, dst_if, &eh, mc);
else
switch_ifenqueue(sc, dst_if, mc,
(swpo->swpo_flags & IFBIF_LOCAL));