aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/tcp/tcp.c')
-rw-r--r--src/vnet/tcp/tcp.c2
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;
}
/**