MCPcopy Create free account
hub / github.com/F-Stack/f-stack / in_pcbdetach_txrtlmt

Function in_pcbdetach_txrtlmt

freebsd/netinet/in_pcb.c:3545–3562  ·  view source on GitHub ↗

* Free an existing TX rate limit tag based on the "inp->inp_snd_tag", * if any: */

Source from the content-addressed store, hash-verified

3543 * if any:
3544 */
3545void
3546in_pcbdetach_txrtlmt(struct inpcb *inp)
3547{
3548 struct m_snd_tag *mst;
3549
3550 INP_WLOCK_ASSERT(inp);
3551
3552 mst = inp->inp_snd_tag;
3553 inp->inp_snd_tag = NULL;
3554
3555 if (mst == NULL)
3556 return;
3557
3558 m_snd_tag_rele(mst);
3559#ifdef INET
3560 counter_u64_add(rate_limit_active, -1);
3561#endif
3562}
3563
3564int
3565in_pcboutput_txrtlmt_locked(struct inpcb *inp, struct ifnet *ifp, struct mbuf *mb, uint32_t max_pacing_rate)

Callers 6

in_pcbdetachFunction · 0.85
in_pcboutput_eagainFunction · 0.85
tcp_rel_pacing_rateFunction · 0.85
rack_set_sockoptFunction · 0.85
bbr_set_sockoptFunction · 0.85

Calls 2

m_snd_tag_releFunction · 0.50
counter_u64_addFunction · 0.50

Tested by

no test coverage detected