Add some documenting NET_EPOCH_ASSERTs.

This commit is contained in:
Gleb Smirnoff 2020-01-22 02:37:47 +00:00
parent f6a2a6b163
commit bab98355f9
3 changed files with 5 additions and 0 deletions

View File

@ -1394,6 +1394,7 @@ tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m,
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);

View File

@ -1751,6 +1751,9 @@ syncache_respond(struct syncache *sc, const struct mbuf *m0, int flags)
#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) :

View File

@ -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