diff options
author | jhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f> | 2020-10-29 22:16:59 +0000 |
---|---|---|
committer | jhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f> | 2020-10-29 22:16:59 +0000 |
commit | 14986cab9530dccadef63472b79b944685356fe1 (patch) | |
tree | ee70fd33cb7c9ef5e96fbaae085d3aa181a44a13 | |
parent | ebfc03fdfb8e6bb4a68f893b20f5da7590db56a6 (diff) | |
download | freebsd-14986cab9530dccadef63472b79b944685356fe1.tar.gz freebsd-14986cab9530dccadef63472b79b944685356fe1.tar.bz2 |
Remove an extra if_ref().
In r348254, if_snd_tag_alloc() routines were changed to bump the ifp
refcount via m_snd_tag_init(). This function wasn't in the tree at
the time and wasn't updated for the new semantics, so was still doing
a separate bump after if_snd_tag_alloc() returned.
Reviewed by: gallatin
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D26999
git-svn-id: http://svn.freebsd.org/base/head@367147 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-rw-r--r-- | sys/netinet/tcp_ratelimit.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netinet/tcp_ratelimit.c b/sys/netinet/tcp_ratelimit.c index 2ec2752e46e..b9bb00081d2 100644 --- a/sys/netinet/tcp_ratelimit.c +++ b/sys/netinet/tcp_ratelimit.c @@ -470,7 +470,6 @@ rl_attach_txrtlmt(struct ifnet *ifp, error = ifp->if_snd_tag_alloc(ifp, ¶ms, tag); #ifdef INET if (error == 0) { - if_ref((*tag)->ifp); counter_u64_add(rate_limit_set_ok, 1); counter_u64_add(rate_limit_active, 1); } else |