Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ipsec: Deprecated the old IPsec Tunnel interface
[vpp.git]
/
src
/
vnet
/
tcp
/
tcp_inlines.h
diff --git
a/src/vnet/tcp/tcp_inlines.h
b/src/vnet/tcp/tcp_inlines.h
index
cb18860
..
25bf738
100644
(file)
--- a/
src/vnet/tcp/tcp_inlines.h
+++ b/
src/vnet/tcp/tcp_inlines.h
@@
-182,7
+182,7
@@
tcp_available_cc_snd_space (const tcp_connection_t * tc)
always_inline u8
tcp_is_lost_fin (tcp_connection_t * tc)
{
always_inline u8
tcp_is_lost_fin (tcp_connection_t * tc)
{
- if ((tc->flags & TCP_CONN_FINSNT) && (tc->snd_
una_max
- tc->snd_una == 1))
+ if ((tc->flags & TCP_CONN_FINSNT) && (tc->snd_
nxt
- tc->snd_una == 1))
return 1;
return 0;
}
return 1;
return 0;
}
@@
-218,8
+218,7
@@
tcp_time_now_us (u32 thread_index)
always_inline u32
tcp_set_time_now (tcp_worker_ctx_t * wrk)
{
always_inline u32
tcp_set_time_now (tcp_worker_ctx_t * wrk)
{
- wrk->time_now = clib_cpu_time_now () * tcp_main.tstamp_ticks_per_clock;
- return wrk->time_now;
+ return wrk->time_now = (u64) (vlib_time_now (wrk->vm) * TCP_TSTP_HZ);
}
always_inline tcp_connection_t *
}
always_inline tcp_connection_t *