* Free an existing TX rate limit tag based on the "inp->inp_snd_tag", * if any: */
| 3543 | * if any: |
| 3544 | */ |
| 3545 | void |
| 3546 | in_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 | |
| 3564 | int |
| 3565 | in_pcboutput_txrtlmt_locked(struct inpcb *inp, struct ifnet *ifp, struct mbuf *mb, uint32_t max_pacing_rate) |
no test coverage detected