t4_connect.c (318803) | t4_connect.c (330307) |
---|---|
1/*- 2 * Copyright (c) 2012 Chelsio Communications, Inc. 3 * All rights reserved. 4 * Written by: Navdeep Parhar <np@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2012 Chelsio Communications, Inc. 3 * All rights reserved. 4 * Written by: Navdeep Parhar <np@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/tom/t4_connect.c 318803 2017-05-24 19:57:22Z np $"); | 29__FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/tom/t4_connect.c 330307 2018-03-03 02:30:52Z np $"); |
30 31#include "opt_inet.h" 32#include "opt_inet6.h" 33 34#ifdef TCP_OFFLOAD 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/kernel.h> --- 216 unchanged lines hidden (view full) --- 254 opt2 |= F_RX_COALESCE_VALID; 255 else { 256 opt2 |= F_T5_OPT_2_VALID; 257 opt2 |= F_T5_ISS; 258 } 259 if (sc->tt.rx_coalesce) 260 opt2 |= V_RX_COALESCE(M_RX_COALESCE); 261 | 30 31#include "opt_inet.h" 32#include "opt_inet6.h" 33 34#ifdef TCP_OFFLOAD 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/kernel.h> --- 216 unchanged lines hidden (view full) --- 254 opt2 |= F_RX_COALESCE_VALID; 255 else { 256 opt2 |= F_T5_OPT_2_VALID; 257 opt2 |= F_T5_ISS; 258 } 259 if (sc->tt.rx_coalesce) 260 opt2 |= V_RX_COALESCE(M_RX_COALESCE); 261 |
262 if (sc->tt.cong_algorithm != -1) 263 opt2 |= V_CONG_CNTRL(sc->tt.cong_algorithm & M_CONG_CNTRL); 264 |
|
262#ifdef USE_DDP_RX_FLOW_CONTROL 263 if (toep->ulp_mode == ULP_MODE_TCPDDP) 264 opt2 |= F_RX_FC_VALID | F_RX_FC_DDP; 265#endif 266 267 return (htobe32(opt2)); 268} 269 --- 229 unchanged lines hidden --- | 265#ifdef USE_DDP_RX_FLOW_CONTROL 266 if (toep->ulp_mode == ULP_MODE_TCPDDP) 267 opt2 |= F_RX_FC_VALID | F_RX_FC_DDP; 268#endif 269 270 return (htobe32(opt2)); 271} 272 --- 229 unchanged lines hidden --- |