From: dlg Date: Fri, 18 Feb 2022 03:22:27 +0000 (+0000) Subject: dont bother running ethernet multicast ioctl handlers. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5ffa27dc7079e1359f65ce39d5d5e8a16c093cdd;p=openbsd dont bother running ethernet multicast ioctl handlers. while here turn ENETRESET into 0 in the ioctl path. there's no hardware to reset. --- diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c index 8eb8d497c7d..e6687e9230e 100644 --- a/sys/net/if_vxlan.c +++ b/sys/net/if_vxlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vxlan.c,v 1.87 2022/02/18 01:27:39 dlg Exp $ */ +/* $OpenBSD: if_vxlan.c,v 1.88 2022/02/18 03:22:27 dlg Exp $ */ /* * Copyright (c) 2021 David Gwynne @@ -860,11 +860,21 @@ vxlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) error = vxlan_del_addr(sc, (struct ifbareq *)data); break; + case SIOCADDMULTI: + case SIOCDELMULTI: + /* no hardware to program */ + break; + default: error = ether_ioctl(ifp, &sc->sc_ac, cmd, data); break; } + if (error == ENETRESET) { + /* no hardware to program */ + error = 0; + } + return (error); }