offload.h (331769) | offload.h (345664) |
---|---|
1/*- 2 * Copyright (c) 2010 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: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * | 1/*- 2 * Copyright (c) 2010 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: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * $FreeBSD: stable/11/sys/dev/cxgbe/offload.h 331769 2018-03-30 18:06:29Z hselasky $ | 27 * $FreeBSD: stable/11/sys/dev/cxgbe/offload.h 345664 2019-03-28 23:43:38Z jhb $ |
28 * 29 */ 30 31#ifndef __T4_OFFLOAD_H__ 32#define __T4_OFFLOAD_H__ 33 34#define INIT_ULPTX_WRH(w, wrlen, atomic, tid) do { \ 35 (w)->wr_hi = htonl(V_FW_WR_OP(FW_ULPTX_WR) | V_FW_WR_ATOMIC(atomic)); \ --- 83 unchanged lines hidden (view full) --- 119 struct t4_range stag; 120 struct t4_range rq; 121 struct t4_range pbl; 122 struct t4_range qp; 123 struct t4_range cq; 124 struct t4_range srq; 125 struct t4_range ocq; 126 struct t4_range l2t; | 28 * 29 */ 30 31#ifndef __T4_OFFLOAD_H__ 32#define __T4_OFFLOAD_H__ 33 34#define INIT_ULPTX_WRH(w, wrlen, atomic, tid) do { \ 35 (w)->wr_hi = htonl(V_FW_WR_OP(FW_ULPTX_WR) | V_FW_WR_ATOMIC(atomic)); \ --- 83 unchanged lines hidden (view full) --- 119 struct t4_range stag; 120 struct t4_range rq; 121 struct t4_range pbl; 122 struct t4_range qp; 123 struct t4_range cq; 124 struct t4_range srq; 125 struct t4_range ocq; 126 struct t4_range l2t; |
127 struct t4_range key; |
|
127}; 128 129enum { 130 ULD_TOM = 0, 131 ULD_IWARP, 132 ULD_ISCSI, 133 ULD_MAX = ULD_ISCSI 134}; --- 8 unchanged lines hidden (view full) --- 143 int (*deactivate)(struct adapter *); 144}; 145 146struct tom_tunables { 147 int cong_algorithm; 148 int sndbuf; 149 int ddp; 150 int rx_coalesce; | 128}; 129 130enum { 131 ULD_TOM = 0, 132 ULD_IWARP, 133 ULD_ISCSI, 134 ULD_MAX = ULD_ISCSI 135}; --- 8 unchanged lines hidden (view full) --- 144 int (*deactivate)(struct adapter *); 145}; 146 147struct tom_tunables { 148 int cong_algorithm; 149 int sndbuf; 150 int ddp; 151 int rx_coalesce; |
152 int tls; 153 int *tls_rx_ports; 154 int num_tls_rx_ports; |
|
151 int tx_align; 152 int tx_zcopy; 153}; 154/* iWARP driver tunables */ 155struct iw_tunables { 156 int wc_en; 157}; 158#ifdef TCP_OFFLOAD 159int t4_register_uld(struct uld_info *); 160int t4_unregister_uld(struct uld_info *); 161int t4_activate_uld(struct adapter *, int); 162int t4_deactivate_uld(struct adapter *, int); 163void t4_iscsi_init(struct adapter *, u_int, const u_int *); 164int uld_active(struct adapter *, int); 165#endif 166#endif | 155 int tx_align; 156 int tx_zcopy; 157}; 158/* iWARP driver tunables */ 159struct iw_tunables { 160 int wc_en; 161}; 162#ifdef TCP_OFFLOAD 163int t4_register_uld(struct uld_info *); 164int t4_unregister_uld(struct uld_info *); 165int t4_activate_uld(struct adapter *, int); 166int t4_deactivate_uld(struct adapter *, int); 167void t4_iscsi_init(struct adapter *, u_int, const u_int *); 168int uld_active(struct adapter *, int); 169#endif 170#endif |