From fa183f01741aa54ff3ba0fcf31b7b1404b7a7e53 Mon Sep 17 00:00:00 2001 From: hselasky Date: Mon, 3 Nov 2014 12:38:29 +0000 Subject: MFC r271946 and r272595: Improve transmit sending offload, TSO, algorithm in general. This change allows all HCAs from Mellanox Technologies to function properly when TSO is enabled. See r271946 and r272595 for more details about this commit. Sponsored by: Mellanox Technologies --- sys/netinet/tcp_input.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/netinet/tcp_input.c') diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index d8d550a..92b0d58 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -3623,6 +3623,8 @@ tcp_mss(struct tcpcb *tp, int offer) if (cap.ifcap & CSUM_TSO) { tp->t_flags |= TF_TSO; tp->t_tsomax = cap.tsomax; + tp->t_tsomaxsegcount = cap.tsomaxsegcount; + tp->t_tsomaxsegsize = cap.tsomaxsegsize; } } -- cgit v1.1