Author: glebius
Date: Wed Jan 22 02:37:47 2020
New Revision: 356969
URL: https://svnweb.freebsd.org/changeset/base/356969

Log:
  Add some documenting NET_EPOCH_ASSERTs.

Modified:
  head/sys/netinet/tcp_subr.c
  head/sys/netinet/tcp_syncache.c
  head/sys/netinet6/mld6.c

Modified: head/sys/netinet/tcp_subr.c
==============================================================================
--- head/sys/netinet/tcp_subr.c Wed Jan 22 02:35:39 2020        (r356968)
+++ head/sys/netinet/tcp_subr.c Wed Jan 22 02:37:47 2020        (r356969)
@@ -1394,6 +1394,7 @@ tcp_respond(struct tcpcb *tp, void *ipgen, struct tcph
        bool incl_opts;
 
        KASSERT(tp != NULL || m != NULL, ("tcp_respond: tp and m both NULL"));
+       NET_EPOCH_ASSERT();
 
 #ifdef INET6
        isipv6 = ((struct ip *)ipgen)->ip_v == (IPV6_VERSION >> 4);

Modified: head/sys/netinet/tcp_syncache.c
==============================================================================
--- head/sys/netinet/tcp_syncache.c     Wed Jan 22 02:35:39 2020        
(r356968)
+++ head/sys/netinet/tcp_syncache.c     Wed Jan 22 02:37:47 2020        
(r356969)
@@ -1751,6 +1751,9 @@ syncache_respond(struct syncache *sc, const struct mbu
 #ifdef INET6
        struct ip6_hdr *ip6 = NULL;
 #endif
+
+       NET_EPOCH_ASSERT();
+
        hlen =
 #ifdef INET6
               (sc->sc_inc.inc_flags & INC_ISIPV6) ? sizeof(struct ip6_hdr) :

Modified: head/sys/netinet6/mld6.c
==============================================================================
--- head/sys/netinet6/mld6.c    Wed Jan 22 02:35:39 2020        (r356968)
+++ head/sys/netinet6/mld6.c    Wed Jan 22 02:37:47 2020        (r356969)
@@ -3095,6 +3095,7 @@ mld_dispatch_packet(struct mbuf *m)
        uint32_t                 ifindex;
 
        CTR2(KTR_MLD, "%s: transmit %p", __func__, m);
+       NET_EPOCH_ASSERT();
 
        /*
         * Set VNET image pointer from enqueued mbuf chain
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to