From owner-svn-src-all@freebsd.org Wed Jan 15 20:36:11 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E17321FC9AE for ; Wed, 15 Jan 2020 20:36:11 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47yfHH2BmYz3yWg for ; Wed, 15 Jan 2020 20:36:11 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82a.google.com with SMTP id d5so16999952qto.0 for ; Wed, 15 Jan 2020 12:36:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=urNeYVNNxylbJ2cjz7uvjT8ZH+izCQid+xe3Gqcq4Pw=; b=Rf9JC7hTGuw2McKxWamcYzkBdkzHI4vILg77jETNi1DqpTSdGqRLH0BBVOfwfdqh61 uFBVb7Lv+xawwBc6Hl9S+5GPJJy01muxmzRQlOXldGvJKbxJ7dH68nR/SVtTqFJ+1Stu era1BgglPG1B1rqMyqLq3EmHXI6PsBPzJHkX0Ek5aBHGHPIUu7qJ6CCBOTbtxLhoJcU1 RsYjMg/l4/GJOojp6yHVB1eUjpzfTZCqhYW/90qNAHLdb/aIUO8DCmi+xjT5jWlcns2I HOFwkA7fLHk3KksnupwNbYTsMRbChXpY6b6+xbXfmMnqHgMYDSBQMtPiXsdBVYE7fEyo zoDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=urNeYVNNxylbJ2cjz7uvjT8ZH+izCQid+xe3Gqcq4Pw=; b=EZuGcZoi+3JAWxHeL+Hcoa7hp2k3BVHdg2YdGsefQfAtUSvECMODEZ14ur6XvsV8i6 AZAzb3sGouqrxy6350qW8iAbmIvIp+1x5TKnlbVLCLwmdWjpFUgInAz1oaNdPB5vmJ8F 1mrI6Pj76XglmBBMI3onRwvVCvgyZHcRCl95lPudOJE+JoQFlLmuZjb8fgVE6IlesMow ng/wfnqjVDR8eEXXHddTa99LaMh4ewbE2YxtIwG4GLr608C4cp1QbCtSU1KBHYa/6LMh 8MWJGYO/0JPMiaU/n98g9sGjxzNM7uE+8JoQPtqSIOs7ytaet0nGTR6gQF3725CcPBsZ Fs6Q== X-Gm-Message-State: APjAAAWqqwANH8FB8nbY2YNP5JJMhS9eTMeEyr482kocGs4R6VAOQFBp F6KOOYuqaibGnU6ArvFcfsp9w7x4Teelv4fJhAbAuL4R X-Google-Smtp-Source: APXvYqxQ/qdMSUNo4ldktIOdtOdTeNsTt2dht6sso2n3X40sWzs+WRlyEJ6e+GEoijdJ72O0IcQHmtMvkjnr1i8v7Fk= X-Received: by 2002:aed:3e53:: with SMTP id m19mr477184qtf.32.1579120570236; Wed, 15 Jan 2020 12:36:10 -0800 (PST) MIME-Version: 1.0 References: <202001150605.00F65Kc8011526@repo.freebsd.org> In-Reply-To: From: Warner Losh Date: Wed, 15 Jan 2020 13:35:59 -0700 Message-ID: Subject: Re: svn commit: r356755 - in head/sys: net netinet netinet6 netpfil/ipfw/nat64 sys To: Jeff Roberson Cc: Gleb Smirnoff , src-committers , svn-src-all , svn-src-head X-Rspamd-Queue-Id: 47yfHH2BmYz3yWg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=Rf9JC7hT; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::82a) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.66 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[svn-src-all@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; URI_COUNT_ODD(1.00)[3]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[a.2.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.67)[ip: (-9.36), ipnet: 2607:f8b0::/32(-2.09), asn: 15169(-1.83), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jan 2020 20:36:11 -0000 On Wed, Jan 15, 2020 at 12:45 PM Jeff Roberson wrote: > On Wed, 15 Jan 2020, Gleb Smirnoff wrote: > > > Author: glebius > > Date: Wed Jan 15 06:05:20 2020 > > New Revision: 356755 > > URL: https://svnweb.freebsd.org/changeset/base/356755 > > > > Log: > > Introduce NET_EPOCH_CALL() macro and use it everywhere where we free > > data based on the network epoch. The macro reverses the argument > > order of epoch_call(9) - first function, then its argument. NFC > > Is there some practical impact of changing the argument order or does it > just seem more natural to you? > Everywhere else in the system, it's fnp, argp for ordering the args... You'd be hard pressed to find exceptions to this rule. Since this is a new interface, we should fix it now while we still can :) Warner > Jeff > > > > > Modified: > > head/sys/net/bpf.c > > head/sys/net/if.c > > head/sys/net/if_gre.c > > head/sys/net/if_lagg.c > > head/sys/net/if_vlan.c > > head/sys/netinet/in.c > > head/sys/netinet/in_pcb.c > > head/sys/netinet/ip_gre.c > > head/sys/netinet/tcp_ratelimit.c > > head/sys/netinet6/in6.c > > head/sys/netinet6/ip6_gre.c > > head/sys/netpfil/ipfw/nat64/nat64lsn.c > > head/sys/sys/epoch.h > > > > Modified: head/sys/net/bpf.c > > > ============================================================================== > > --- head/sys/net/bpf.c Wed Jan 15 05:48:36 2020 (r356754) > > +++ head/sys/net/bpf.c Wed Jan 15 06:05:20 2020 (r356755) > > @@ -274,10 +274,10 @@ static struct filterops bpfread_filtops = { > > * > > * 2. An userland application uses ioctl() call to bpf_d descriptor. > > * All such call are serialized with global lock. BPF filters can be > > - * changed, but pointer to old filter will be freed using epoch_call(). > > + * changed, but pointer to old filter will be freed using > NET_EPOCH_CALL(). > > * Thus it should be safe for bpf_tap/bpf_mtap* code to do access to > > * filter pointers, even if change will happen during bpf_tap execution. > > - * Destroying of bpf_d descriptor also is doing using epoch_call(). > > + * Destroying of bpf_d descriptor also is doing using NET_EPOCH_CALL(). > > * > > * 3. An userland application can write packets into bpf_d descriptor. > > * There we need to be sure, that ifnet won't disappear during > bpfwrite(). > > @@ -288,7 +288,7 @@ static struct filterops bpfread_filtops = { > > * > > * 5. The kernel invokes bpfdetach() on interface destroying. All lists > > * are modified with global lock held and actual free() is done using > > - * epoch_call(). > > + * NET_EPOCH_CALL(). > > */ > > > > static void > > @@ -314,7 +314,7 @@ bpfif_rele(struct bpf_if *bp) > > > > if (!refcount_release(&bp->bif_refcnt)) > > return; > > - epoch_call(net_epoch_preempt, &bp->epoch_ctx, bpfif_free); > > + NET_EPOCH_CALL(bpfif_free, &bp->epoch_ctx); > > } > > > > static void > > @@ -330,7 +330,7 @@ bpfd_rele(struct bpf_d *d) > > > > if (!refcount_release(&d->bd_refcnt)) > > return; > > - epoch_call(net_epoch_preempt, &d->epoch_ctx, bpfd_free); > > + NET_EPOCH_CALL(bpfd_free, &d->epoch_ctx); > > } > > > > static struct bpf_program_buffer* > > @@ -2036,8 +2036,7 @@ bpf_setf(struct bpf_d *d, struct bpf_program *fp, > u_lo > > BPFD_UNLOCK(d); > > > > if (fcode != NULL) > > - epoch_call(net_epoch_preempt, &fcode->epoch_ctx, > > - bpf_program_buffer_free); > > + NET_EPOCH_CALL(bpf_program_buffer_free, &fcode->epoch_ctx); > > > > if (track_event) > > EVENTHANDLER_INVOKE(bpf_track, > > > > Modified: head/sys/net/if.c > > > ============================================================================== > > --- head/sys/net/if.c Wed Jan 15 05:48:36 2020 (r356754) > > +++ head/sys/net/if.c Wed Jan 15 06:05:20 2020 (r356755) > > @@ -654,7 +654,7 @@ if_free(struct ifnet *ifp) > > IFNET_WUNLOCK(); > > > > if (refcount_release(&ifp->if_refcount)) > > - epoch_call(net_epoch_preempt, &ifp->if_epoch_ctx, > if_destroy); > > + NET_EPOCH_CALL(if_destroy, &ifp->if_epoch_ctx); > > CURVNET_RESTORE(); > > } > > > > @@ -677,7 +677,7 @@ if_rele(struct ifnet *ifp) > > > > if (!refcount_release(&ifp->if_refcount)) > > return; > > - epoch_call(net_epoch_preempt, &ifp->if_epoch_ctx, if_destroy); > > + NET_EPOCH_CALL(if_destroy, &ifp->if_epoch_ctx); > > } > > > > void > > @@ -1826,7 +1826,7 @@ ifa_free(struct ifaddr *ifa) > > { > > > > if (refcount_release(&ifa->ifa_refcnt)) > > - epoch_call(net_epoch_preempt, &ifa->ifa_epoch_ctx, > ifa_destroy); > > + NET_EPOCH_CALL(ifa_destroy, &ifa->ifa_epoch_ctx); > > } > > > > > > @@ -3410,7 +3410,7 @@ if_freemulti(struct ifmultiaddr *ifma) > > KASSERT(ifma->ifma_refcount == 0, ("if_freemulti_epoch: refcount > %d", > > ifma->ifma_refcount)); > > > > - epoch_call(net_epoch_preempt, &ifma->ifma_epoch_ctx, > if_destroymulti); > > + NET_EPOCH_CALL(if_destroymulti, &ifma->ifma_epoch_ctx); > > } > > > > > > > > Modified: head/sys/net/if_gre.c > > > ============================================================================== > > --- head/sys/net/if_gre.c Wed Jan 15 05:48:36 2020 (r356754) > > +++ head/sys/net/if_gre.c Wed Jan 15 06:05:20 2020 (r356755) > > @@ -392,7 +392,7 @@ gre_delete_tunnel(struct gre_softc *sc) > > if ((gs = sc->gre_so) != NULL && CK_LIST_EMPTY(&gs->list)) { > > CK_LIST_REMOVE(gs, chain); > > soclose(gs->so); > > - epoch_call(net_epoch_preempt, &gs->epoch_ctx, gre_sofree); > > + NET_EPOCH_CALL(gre_sofree, &gs->epoch_ctx); > > sc->gre_so = NULL; > > } > > GRE2IFP(sc)->if_drv_flags &= ~IFF_DRV_RUNNING; > > > > Modified: head/sys/net/if_lagg.c > > > ============================================================================== > > --- head/sys/net/if_lagg.c Wed Jan 15 05:48:36 2020 (r356754) > > +++ head/sys/net/if_lagg.c Wed Jan 15 06:05:20 2020 (r356755) > > @@ -910,7 +910,7 @@ lagg_port_destroy(struct lagg_port *lp, int > rundelport > > * free port and release it's ifnet reference after a grace period > has > > * elapsed. > > */ > > - epoch_call(net_epoch_preempt, &lp->lp_epoch_ctx, > lagg_port_destroy_cb); > > + NET_EPOCH_CALL(lagg_port_destroy_cb, &lp->lp_epoch_ctx); > > /* Update lagg capabilities */ > > lagg_capabilities(sc); > > lagg_linkstate(sc); > > > > Modified: head/sys/net/if_vlan.c > > > ============================================================================== > > --- head/sys/net/if_vlan.c Wed Jan 15 05:48:36 2020 (r356754) > > +++ head/sys/net/if_vlan.c Wed Jan 15 06:05:20 2020 (r356755) > > @@ -584,7 +584,7 @@ vlan_setmulti(struct ifnet *ifp) > > while ((mc = CK_SLIST_FIRST(&sc->vlan_mc_listhead)) != NULL) { > > CK_SLIST_REMOVE_HEAD(&sc->vlan_mc_listhead, mc_entries); > > (void)if_delmulti(ifp_p, (struct sockaddr *)&mc->mc_addr); > > - epoch_call(net_epoch_preempt, &mc->mc_epoch_ctx, > vlan_mc_free); > > + NET_EPOCH_CALL(vlan_mc_free, &mc->mc_epoch_ctx); > > } > > > > /* Now program new ones. */ > > @@ -1543,7 +1543,7 @@ vlan_unconfig_locked(struct ifnet *ifp, int > departing) > > error); > > } > > CK_SLIST_REMOVE_HEAD(&ifv->vlan_mc_listhead, > mc_entries); > > - epoch_call(net_epoch_preempt, &mc->mc_epoch_ctx, > vlan_mc_free); > > + NET_EPOCH_CALL(vlan_mc_free, &mc->mc_epoch_ctx); > > } > > > > vlan_setflags(ifp, 0); /* clear special flags on parent */ > > > > Modified: head/sys/netinet/in.c > > > ============================================================================== > > --- head/sys/netinet/in.c Wed Jan 15 05:48:36 2020 (r356754) > > +++ head/sys/netinet/in.c Wed Jan 15 06:05:20 2020 (r356755) > > @@ -1087,7 +1087,7 @@ in_lltable_destroy_lle(struct llentry *lle) > > { > > > > LLE_WUNLOCK(lle); > > - epoch_call(net_epoch_preempt, &lle->lle_epoch_ctx, > in_lltable_destroy_lle_unlocked); > > + NET_EPOCH_CALL(in_lltable_destroy_lle_unlocked, > &lle->lle_epoch_ctx); > > } > > > > static struct llentry * > > @@ -1348,7 +1348,7 @@ in_lltable_alloc(struct lltable *llt, u_int flags, > con > > linkhdrsize = LLE_MAX_LINKHDR; > > if (lltable_calc_llheader(ifp, AF_INET, IF_LLADDR(ifp), > > linkhdr, &linkhdrsize, &lladdr_off) != 0) { > > - epoch_call(net_epoch_preempt, > &lle->lle_epoch_ctx, in_lltable_destroy_lle_unlocked); > > + NET_EPOCH_CALL(in_lltable_destroy_lle_unlocked, > &lle->lle_epoch_ctx); > > return (NULL); > > } > > lltable_set_entry_addr(ifp, lle, linkhdr, linkhdrsize, > > > > Modified: head/sys/netinet/in_pcb.c > > > ============================================================================== > > --- head/sys/netinet/in_pcb.c Wed Jan 15 05:48:36 2020 (r356754) > > +++ head/sys/netinet/in_pcb.c Wed Jan 15 06:05:20 2020 (r356755) > > @@ -269,8 +269,7 @@ in_pcblbgroup_free(struct inpcblbgroup *grp) > > { > > > > CK_LIST_REMOVE(grp, il_list); > > - epoch_call(net_epoch_preempt, &grp->il_epoch_ctx, > > - in_pcblbgroup_free_deferred); > > + NET_EPOCH_CALL(in_pcblbgroup_free_deferred, &grp->il_epoch_ctx); > > } > > > > static struct inpcblbgroup * > > @@ -1663,7 +1662,7 @@ in_pcbfree(struct inpcb *inp) > > /* mark as destruction in progress */ > > inp->inp_flags2 |= INP_FREED; > > INP_WUNLOCK(inp); > > - epoch_call(net_epoch_preempt, &inp->inp_epoch_ctx, > in_pcbfree_deferred); > > + NET_EPOCH_CALL(in_pcbfree_deferred, &inp->inp_epoch_ctx); > > } > > > > /* > > @@ -1704,7 +1703,7 @@ in_pcbdrop(struct inpcb *inp) > > CK_LIST_REMOVE(inp, inp_portlist); > > if (CK_LIST_FIRST(&phd->phd_pcblist) == NULL) { > > CK_LIST_REMOVE(phd, phd_hash); > > - epoch_call(net_epoch_preempt, &phd->phd_epoch_ctx, > inpcbport_free); > > + NET_EPOCH_CALL(inpcbport_free, > &phd->phd_epoch_ctx); > > } > > INP_HASH_WUNLOCK(inp->inp_pcbinfo); > > inp->inp_flags &= ~INP_INHASHLIST; > > @@ -2674,7 +2673,7 @@ in_pcbremlists(struct inpcb *inp) > > CK_LIST_REMOVE(inp, inp_portlist); > > if (CK_LIST_FIRST(&phd->phd_pcblist) == NULL) { > > CK_LIST_REMOVE(phd, phd_hash); > > - epoch_call(net_epoch_preempt, &phd->phd_epoch_ctx, > inpcbport_free); > > + NET_EPOCH_CALL(inpcbport_free, > &phd->phd_epoch_ctx); > > } > > INP_HASH_WUNLOCK(pcbinfo); > > inp->inp_flags &= ~INP_INHASHLIST; > > > > Modified: head/sys/netinet/ip_gre.c > > > ============================================================================== > > --- head/sys/netinet/ip_gre.c Wed Jan 15 05:48:36 2020 (r356754) > > +++ head/sys/netinet/ip_gre.c Wed Jan 15 06:05:20 2020 (r356755) > > @@ -235,7 +235,7 @@ in_gre_udp_input(struct mbuf *m, int off, struct > inpcb > > * If socket was closed before we have entered NET_EPOCH section, > > * INP_FREED flag should be set. Otherwise it should be safe to > > * make access to ctx data, because gre_so will be freed by > > - * gre_sofree() via epoch_call(). > > + * gre_sofree() via NET_EPOCH_CALL(). > > */ > > if (__predict_false(inp->inp_flags2 & INP_FREED)) { > > NET_EPOCH_EXIT(et); > > @@ -284,8 +284,7 @@ in_gre_setup_socket(struct gre_softc *sc) > > if (CK_LIST_EMPTY(&gs->list)) { > > CK_LIST_REMOVE(gs, chain); > > soclose(gs->so); > > - epoch_call(net_epoch_preempt, > &gs->epoch_ctx, > > - gre_sofree); > > + NET_EPOCH_CALL(gre_sofree, &gs->epoch_ctx); > > } > > gs = sc->gre_so = NULL; > > } > > > > Modified: head/sys/netinet/tcp_ratelimit.c > > > ============================================================================== > > --- head/sys/netinet/tcp_ratelimit.c Wed Jan 15 05:48:36 2020 > (r356754) > > +++ head/sys/netinet/tcp_ratelimit.c Wed Jan 15 06:05:20 2020 > (r356755) > > @@ -286,7 +286,7 @@ rs_defer_destroy(struct tcp_rate_set *rs) > > > > /* Set flag to only defer once. */ > > rs->rs_flags |= RS_FUNERAL_SCHD; > > - epoch_call(net_epoch_preempt, &rs->rs_epoch_ctx, rs_destroy); > > + NET_EPOCH_CALL(rs_destroy, &rs->rs_epoch_ctx); > > } > > > > #ifdef INET > > > > Modified: head/sys/netinet6/in6.c > > > ============================================================================== > > --- head/sys/netinet6/in6.c Wed Jan 15 05:48:36 2020 (r356754) > > +++ head/sys/netinet6/in6.c Wed Jan 15 06:05:20 2020 (r356755) > > @@ -2061,7 +2061,7 @@ in6_lltable_destroy_lle(struct llentry *lle) > > { > > > > LLE_WUNLOCK(lle); > > - epoch_call(net_epoch_preempt, &lle->lle_epoch_ctx, > in6_lltable_destroy_lle_unlocked); > > + NET_EPOCH_CALL(in6_lltable_destroy_lle_unlocked, > &lle->lle_epoch_ctx); > > } > > > > static struct llentry * > > @@ -2282,7 +2282,7 @@ in6_lltable_alloc(struct lltable *llt, u_int flags, > > linkhdrsize = LLE_MAX_LINKHDR; > > if (lltable_calc_llheader(ifp, AF_INET6, IF_LLADDR(ifp), > > linkhdr, &linkhdrsize, &lladdr_off) != 0) { > > - epoch_call(net_epoch_preempt, > &lle->lle_epoch_ctx, in6_lltable_destroy_lle_unlocked); > > + NET_EPOCH_CALL(in6_lltable_destroy_lle_unlocked, > &lle->lle_epoch_ctx); > > return (NULL); > > } > > lltable_set_entry_addr(ifp, lle, linkhdr, linkhdrsize, > > > > Modified: head/sys/netinet6/ip6_gre.c > > > ============================================================================== > > --- head/sys/netinet6/ip6_gre.c Wed Jan 15 05:48:36 2020 > (r356754) > > +++ head/sys/netinet6/ip6_gre.c Wed Jan 15 06:05:20 2020 > (r356755) > > @@ -228,7 +228,7 @@ in6_gre_udp_input(struct mbuf *m, int off, struct > inpc > > * If socket was closed before we have entered NET_EPOCH section, > > * INP_FREED flag should be set. Otherwise it should be safe to > > * make access to ctx data, because gre_so will be freed by > > - * gre_sofree() via epoch_call(). > > + * gre_sofree() via NET_EPOCH_CALL(). > > */ > > if (__predict_false(inp->inp_flags2 & INP_FREED)) { > > NET_EPOCH_EXIT(et); > > @@ -280,8 +280,7 @@ in6_gre_setup_socket(struct gre_softc *sc) > > if (CK_LIST_EMPTY(&gs->list)) { > > CK_LIST_REMOVE(gs, chain); > > soclose(gs->so); > > - epoch_call(net_epoch_preempt, > &gs->epoch_ctx, > > - gre_sofree); > > + NET_EPOCH_CALL(gre_sofree, &gs->epoch_ctx); > > } > > gs = sc->gre_so = NULL; > > } > > > > Modified: head/sys/netpfil/ipfw/nat64/nat64lsn.c > > > ============================================================================== > > --- head/sys/netpfil/ipfw/nat64/nat64lsn.c Wed Jan 15 05:48:36 2020 > (r356754) > > +++ head/sys/netpfil/ipfw/nat64/nat64lsn.c Wed Jan 15 06:05:20 2020 > (r356755) > > @@ -75,7 +75,7 @@ MALLOC_DEFINE(M_NAT64LSN, "NAT64LSN", "NAT64LSN"); > > #define NAT64LSN_EPOCH_ENTER(et) NET_EPOCH_ENTER(et) > > #define NAT64LSN_EPOCH_EXIT(et) NET_EPOCH_EXIT(et) > > #define NAT64LSN_EPOCH_ASSERT() NET_EPOCH_ASSERT() > > -#define NAT64LSN_EPOCH_CALL(c, f) epoch_call(net_epoch_preempt, > (c), (f)) > > +#define NAT64LSN_EPOCH_CALL(c, f) NET_EPOCH_CALL((f), (c)) > > > > static uma_zone_t nat64lsn_host_zone; > > static uma_zone_t nat64lsn_pgchunk_zone; > > > > Modified: head/sys/sys/epoch.h > > > ============================================================================== > > --- head/sys/sys/epoch.h Wed Jan 15 05:48:36 2020 (r356754) > > +++ head/sys/sys/epoch.h Wed Jan 15 06:05:20 2020 (r356755) > > @@ -101,6 +101,7 @@ extern epoch_t net_epoch_preempt; > > #define NET_EPOCH_ENTER(et) > epoch_enter_preempt(net_epoch_preempt, &(et)) > > #define NET_EPOCH_EXIT(et) > epoch_exit_preempt(net_epoch_preempt, &(et)) > > #define NET_EPOCH_WAIT() > epoch_wait_preempt(net_epoch_preempt) > > +#define NET_EPOCH_CALL(f, c) epoch_call(net_epoch_preempt, (c), > (f)) > > #define NET_EPOCH_ASSERT() MPASS(in_epoch(net_epoch_preempt)) > > > > #endif /* _KERNEL */ > > >