diff options
author | Simon Zhang <yuwei1.zhang@intel.com> | 2019-09-24 21:16:56 +0800 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-10-22 11:18:01 +0000 |
commit | 4ac265adc6560ae19b3877ef1b61ac0b2ad703e2 (patch) | |
tree | 74dad0c5a3e093685d672fa38a4ea7d9e1cd282b /src/vnet/tcp/tcp.c | |
parent | be2d536f87e996ba0067af0ea5fab6dd45d20822 (diff) |
tcp: fix tso not work in single buffer issue
Type: fix
Signed-off-by: Simon Zhang <yuwei1.zhang@intel.com>
Change-Id: Iddb6fd41812e8c97af58859ef43279cfc0f9d1df
Signed-off-by: Simon Zhang <yuwei1.zhang@intel.com>
(cherry picked from commit 8a047ed741072bdb8d93b0841473eae06ae3c9d0)
Diffstat (limited to 'src/vnet/tcp/tcp.c')
-rw-r--r-- | src/vnet/tcp/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c index 8467ea4fd67..5ffb1e27ab8 100644 --- a/src/vnet/tcp/tcp.c +++ b/src/vnet/tcp/tcp.c @@ -1189,7 +1189,7 @@ tcp_session_cal_goal_size (tcp_connection_t * tc) goal_size = TCP_MAX_GSO_SZ - tc->snd_mss % TCP_MAX_GSO_SZ; goal_size = clib_min (goal_size, tc->snd_wnd / 2); - return goal_size; + return goal_size > tc->snd_mss ? goal_size : tc->snd_mss; } /** |