summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/bnxe/bnxe_mm_l4.c
blob: 9792a1c60246d70753930c7a724a5a94757c9644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License (the "License").
 * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 * or http://www.opensolaris.org/os/licensing.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information: Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */

/*
 * Copyright 2014 QLogic Corporation
 * The contents of this file are subject to the terms of the
 * QLogic End User License (the "License").
 * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the License at
 * http://www.qlogic.com/Resources/Documents/DriverDownloadHelp/
 * QLogic_End_User_Software_License.txt
 * See the License for the specific language governing permissions
 * and limitations under the License.
 */

#include "bnxe.h"

void
mm_acquire_tcp_lock(
    lm_device_t *pdev,
    lm_tcp_con_t *tcp_con)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void
mm_release_tcp_lock(
    lm_device_t *pdev,
    lm_tcp_con_t *tcp_con)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void MM_ACQUIRE_TOE_LOCK(lm_device_t *pDev)
{
    BNXE_LOCK_ENTER_TOE((um_device_t *)pDev);
}


void MM_RELEASE_TOE_LOCK(lm_device_t *pDev)
{
    BNXE_LOCK_EXIT_TOE((um_device_t *)pDev);
}


void MM_ACQUIRE_TOE_GRQ_LOCK_DPC(lm_device_t *pdev, u8_t idx)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void MM_RELEASE_TOE_GRQ_LOCK_DPC(lm_device_t *pdev, u8_t idx)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void MM_ACQUIRE_TOE_GRQ_LOCK(lm_device_t *pdev, u8_t idx)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void MM_RELEASE_TOE_GRQ_LOCK(lm_device_t *pdev, u8_t idx)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void mm_tcp_complete_path_upload_request(
    struct _lm_device_t * pdev,
    lm_path_state_t     * path
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void mm_tcp_complete_neigh_upload_request(
    struct _lm_device_t * pdev,
    lm_neigh_state_t    * neigh
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void mm_tcp_comp_slow_path_request(
    struct _lm_device_t *pdev,
    lm_tcp_state_t *tcp,
    lm_tcp_slow_path_request_t *sp_request)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void mm_tcp_complete_bufs(
    struct _lm_device_t *pdev,
    lm_tcp_state_t      *tcp,
    lm_tcp_con_t        *tcp_con,   /* Rx OR Tx connection */
    s_list_t            *buf_list,  /* list of lm_tcp_buffer_t */
    lm_status_t         lm_status   /* completion status for all given TBs */)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


u8_t mm_tcp_indicating_bufs(
    lm_tcp_con_t * con        /* connection to be checked */
    )
{
    BnxeDbgBreak(NULL);
    return 0;
}


void mm_tcp_abort_bufs (
    IN    struct _lm_device_t     * pdev,  /* device handle */
    IN    lm_tcp_state_t          * tcp,   /* L4 state handle */
    IN    lm_tcp_con_t            * con,   /* connection handle */
    IN    lm_status_t               status /* status to abort buffers with */
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void mm_tcp_indicate_rst_received(
    IN   lm_device_t     * pdev,
    IN   lm_tcp_state_t  * tcp
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void mm_tcp_indicate_fin_received(
    IN   struct _lm_device_t     * pdev,   /* device handle */
    IN   lm_tcp_state_t          * tcp     /* L4 state handle */
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void mm_tcp_graceful_disconnect_done(
    IN   struct _lm_device_t     * pdev,    /* device handle */
    IN   lm_tcp_state_t          * tcp,     /* L4 state handle */
    IN   lm_status_t               status   /* May be SUCCESS, ABORTED or UPLOAD IN PROGRESS */
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
}


u32_t mm_tcp_rx_indicate_gen_buf (
    struct _lm_device_t * pdev,
    lm_tcp_state_t      * tcp,
    lm_frag_list_t      * frag_list,
    void                * return_buffer_ctx
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
    return 0;
}


void mm_tcp_rx_indicate_gen (
    struct _lm_device_t * pdev,
    lm_tcp_state_t      * tcp
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
}


static void _schedule_work_item_for_alloc_gen_bufs(um_device_t * pdev)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


static void _schedule_work_item_for_free_gen_bufs(
    um_device_t * pdev,
    lm_tcp_gen_buf_t * gen_buf
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
}


u32_t mm_tcp_get_gen_bufs(
    struct _lm_device_t * pdev,
    d_list_t            * gb_list,
    u32_t                 nbufs,
    u8_t                  sb_idx
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
    return 0;
}


void mm_tcp_return_gen_bufs(
    lm_device_t      * pdev,
    lm_tcp_gen_buf_t * gen_buf,
    u32_t              flags,
    u8_t               grq_idxxx
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void mm_tcp_return_list_of_gen_bufs(
    struct _lm_device_t * pdev,
    d_list_t            * returned_list_of_gen_bufs,
    u32_t                 flags,
    u8_t                  grq_idxxx
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
}


u32_t mm_tcp_copy_to_tcp_buf(
    lm_device_t     * pdev,
    lm_tcp_state_t  * tcp_state,
    lm_tcp_buffer_t * tcp_buf,         /* TCP buffer to copy to      */
    u8_t            * mem_buf,         /* Memory buffer to copy from */
    u32_t             tcp_buf_offset,
    u32_t             nbytes
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
    return 0;
}


void
mm_tcp_indicate_retrieve_indication(
    lm_device_t *pdev,
    lm_tcp_state_t *tcp_state,
    l4_upload_reason_t upload_reason)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


void mm_tcp_update_required_gen_bufs(
    struct _lm_device_t * pdev,
    u32_t  new_mss,
    u32_t  old_mss,
    u32_t  new_initial_rcv_wnd,
    u32_t  old_initial_rcv_wnd)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


lm_status_t mm_tcp_post_empty_slow_path_request(
    struct _lm_device_t * pdev,
    lm_tcp_state_t      * tcp,
    u32_t                 request_type)
{
    BnxeDbgBreak((um_device_t *)pdev);
    return 0;
}


void mm_tcp_del_tcp_state(
    struct _lm_device_t * pdev,
    lm_tcp_state_t * tcp)
{
    BnxeDbgBreak((um_device_t *)pdev);
}


u32_t mm_tcp_rx_peninsula_to_rq_copy_dmae(
    struct _lm_device_t * pdev,
    lm_tcp_state_t      * tcp,
    lm_address_t          gen_buf_phys,
    u32_t                 gen_buf_offset,
    lm_tcp_buffer_t     * tcp_buf,
    u32_t                 tcp_buf_offset,
    u32_t                 nbytes
    )
{
    BnxeDbgBreak((um_device_t *)pdev);
    return 0;
}