Move to using the inp->vnet pointer has suggested by lstewart.
This is far better since the hpts system is using the inp as its basis anyway. Unfortunately his comments came late. Sponsored by: Netflix Inc.
This commit is contained in:
parent
8a1500e525
commit
f994ead330
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335317
@ -1216,7 +1216,7 @@ tcp_input_data(struct tcp_hpts_entry *hpts, struct timeval *tv)
|
||||
inp->inp_in_input = 0;
|
||||
tp = intotcpcb(inp);
|
||||
mtx_unlock(&hpts->p_mtx);
|
||||
CURVNET_SET(tp->t_vnet);
|
||||
CURVNET_SET(inp->inp_vnet);
|
||||
if (drop_reason) {
|
||||
INP_INFO_RLOCK(&V_tcbinfo);
|
||||
ti_locked = TI_RLOCKED;
|
||||
@ -1589,7 +1589,7 @@ tcp_hptsi(struct tcp_hpts_entry *hpts, struct timeval *ctick)
|
||||
getmicrouptime(&sv);
|
||||
cts = tcp_tv_to_usectick(&sv);
|
||||
}
|
||||
CURVNET_SET(tp->t_vnet);
|
||||
CURVNET_SET(inp->inp_vnet);
|
||||
/*
|
||||
* There is a hole here, we get the refcnt on the
|
||||
* inp so it will still be preserved but to make
|
||||
|
Loading…
Reference in New Issue
Block a user