blob: 9588ae77926790d645212903522ca83940e9558f [file] [log] [blame]
Yuval Mintz32a47e72016-05-11 16:36:12 +03001/* QLogic qed NIC Driver
Mintz, Yuvale8f1cb52017-01-01 13:57:00 +02002 * Copyright (c) 2015-2017 QLogic Corporation
Yuval Mintz32a47e72016-05-11 16:36:12 +03003 *
Mintz, Yuvale8f1cb52017-01-01 13:57:00 +02004 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:
9 *
10 * Redistribution and use in source and binary forms, with or
11 * without modification, are permitted provided that the following
12 * conditions are met:
13 *
14 * - Redistributions of source code must retain the above
15 * copyright notice, this list of conditions and the following
16 * disclaimer.
17 *
18 * - Redistributions in binary form must reproduce the above
19 * copyright notice, this list of conditions and the following
20 * disclaimer in the documentation and /or other materials
21 * provided with the distribution.
22 *
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 * SOFTWARE.
Yuval Mintz32a47e72016-05-11 16:36:12 +030031 */
32
33#ifndef _QED_VF_H
34#define _QED_VF_H
35
Yuval Mintzdacd88d2016-05-11 16:36:16 +030036#include "qed_l2.h"
Yuval Mintz36558c32016-05-11 16:36:17 +030037#include "qed_mcp.h"
Yuval Mintzdacd88d2016-05-11 16:36:16 +030038
39#define T_ETH_INDIRECTION_TABLE_SIZE 128
40#define T_ETH_RSS_KEY_SIZE 10
41
Yuval Mintz1408cc1f2016-05-11 16:36:14 +030042struct vf_pf_resc_request {
43 u8 num_rxqs;
44 u8 num_txqs;
45 u8 num_sbs;
46 u8 num_mac_filters;
47 u8 num_vlan_filters;
48 u8 num_mc_filters;
Mintz, Yuval08bc8f12017-06-04 13:31:06 +030049 u8 num_cids;
50 u8 padding;
Yuval Mintz1408cc1f2016-05-11 16:36:14 +030051};
52
53struct hw_sb_info {
54 u16 hw_sb_id;
55 u8 sb_qid;
56 u8 padding[5];
57};
58
Yuval Mintzdacd88d2016-05-11 16:36:16 +030059#define TLV_BUFFER_SIZE 1024
60
Yuval Mintz37bff2b2016-05-11 16:36:13 +030061enum {
62 PFVF_STATUS_WAITING,
63 PFVF_STATUS_SUCCESS,
64 PFVF_STATUS_FAILURE,
65 PFVF_STATUS_NOT_SUPPORTED,
66 PFVF_STATUS_NO_RESOURCE,
67 PFVF_STATUS_FORCED,
Yuval Mintz7eff82b2016-10-14 05:19:22 -040068 PFVF_STATUS_MALICIOUS,
Yuval Mintz37bff2b2016-05-11 16:36:13 +030069};
70
71/* vf pf channel tlvs */
72/* general tlv header (used for both vf->pf request and pf->vf response) */
73struct channel_tlv {
74 u16 type;
75 u16 length;
76};
77
78/* header of first vf->pf tlv carries the offset used to calculate reponse
79 * buffer address
80 */
81struct vfpf_first_tlv {
82 struct channel_tlv tl;
83 u32 padding;
84 u64 reply_address;
85};
86
87/* header of pf->vf tlvs, carries the status of handling the request */
88struct pfvf_tlv {
89 struct channel_tlv tl;
90 u8 status;
91 u8 padding[3];
92};
93
94/* response tlv used for most tlvs */
95struct pfvf_def_resp_tlv {
96 struct pfvf_tlv hdr;
97};
98
99/* used to terminate and pad a tlv list */
100struct channel_list_end_tlv {
101 struct channel_tlv tl;
102 u8 padding[4];
103};
104
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300105#define VFPF_ACQUIRE_OS_LINUX (0)
106#define VFPF_ACQUIRE_OS_WINDOWS (1)
107#define VFPF_ACQUIRE_OS_ESX (2)
108#define VFPF_ACQUIRE_OS_SOLARIS (3)
109#define VFPF_ACQUIRE_OS_LINUX_USERSPACE (4)
110
111struct vfpf_acquire_tlv {
112 struct vfpf_first_tlv first_tlv;
113
114 struct vf_pf_vfdev_info {
Yuval Mintza044df82016-08-22 13:25:09 +0300115#define VFPF_ACQUIRE_CAP_PRE_FP_HSI (1 << 0) /* VF pre-FP hsi version */
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300116#define VFPF_ACQUIRE_CAP_100G (1 << 1) /* VF can support 100g */
Mintz, Yuval08bc8f12017-06-04 13:31:06 +0300117 /* A requirement for supporting multi-Tx queues on a single queue-zone,
118 * VF would pass qids as additional information whenever passing queue
119 * references.
120 */
121#define VFPF_ACQUIRE_CAP_QUEUE_QIDS BIT(2)
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300122 u64 capabilities;
123 u8 fw_major;
124 u8 fw_minor;
125 u8 fw_revision;
126 u8 fw_engineering;
127 u32 driver_version;
128 u16 opaque_fid; /* ME register value */
129 u8 os_type; /* VFPF_ACQUIRE_OS_* value */
Yuval Mintz1fe614d2016-06-05 13:11:11 +0300130 u8 eth_fp_hsi_major;
131 u8 eth_fp_hsi_minor;
132 u8 padding[3];
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300133 } vfdev_info;
134
135 struct vf_pf_resc_request resc_request;
136
137 u64 bulletin_addr;
138 u32 bulletin_size;
139 u32 padding;
140};
141
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300142/* receive side scaling tlv */
143struct vfpf_vport_update_rss_tlv {
144 struct channel_tlv tl;
145
146 u8 update_rss_flags;
147#define VFPF_UPDATE_RSS_CONFIG_FLAG BIT(0)
148#define VFPF_UPDATE_RSS_CAPS_FLAG BIT(1)
149#define VFPF_UPDATE_RSS_IND_TABLE_FLAG BIT(2)
150#define VFPF_UPDATE_RSS_KEY_FLAG BIT(3)
151
152 u8 rss_enable;
153 u8 rss_caps;
154 u8 rss_table_size_log; /* The table size is 2 ^ rss_table_size_log */
155 u16 rss_ind_table[T_ETH_INDIRECTION_TABLE_SIZE];
156 u32 rss_key[T_ETH_RSS_KEY_SIZE];
157};
158
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300159struct pfvf_storm_stats {
160 u32 address;
161 u32 len;
162};
163
164struct pfvf_stats_info {
165 struct pfvf_storm_stats mstats;
166 struct pfvf_storm_stats pstats;
167 struct pfvf_storm_stats tstats;
168 struct pfvf_storm_stats ustats;
169};
170
171struct pfvf_acquire_resp_tlv {
172 struct pfvf_tlv hdr;
173
174 struct pf_vf_pfdev_info {
175 u32 chip_num;
176 u32 mfw_ver;
177
178 u16 fw_major;
179 u16 fw_minor;
180 u16 fw_rev;
181 u16 fw_eng;
182
183 u64 capabilities;
184#define PFVF_ACQUIRE_CAP_DEFAULT_UNTAGGED BIT(0)
185#define PFVF_ACQUIRE_CAP_100G BIT(1) /* If set, 100g PF */
186/* There are old PF versions where the PF might mistakenly override the sanity
187 * mechanism [version-based] and allow a VF that can't be supported to pass
188 * the acquisition phase.
189 * To overcome this, PFs now indicate that they're past that point and the new
190 * VFs would fail probe on the older PFs that fail to do so.
191 */
192#define PFVF_ACQUIRE_CAP_POST_FW_OVERRIDE BIT(2)
193
Mintz, Yuval08bc8f12017-06-04 13:31:06 +0300194 /* PF expects queues to be received with additional qids */
195#define PFVF_ACQUIRE_CAP_QUEUE_QIDS BIT(3)
196
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300197 u16 db_size;
198 u8 indices_per_sb;
199 u8 os_type;
200
201 /* These should match the PF's qed_dev values */
202 u16 chip_rev;
203 u8 dev_type;
204
205 u8 padding;
206
207 struct pfvf_stats_info stats_info;
208
209 u8 port_mac[ETH_ALEN];
Yuval Mintz1fe614d2016-06-05 13:11:11 +0300210
211 /* It's possible PF had to configure an older fastpath HSI
212 * [in case VF is newer than PF]. This is communicated back
213 * to the VF. It can also be used in case of error due to
214 * non-matching versions to shed light in VF about failure.
215 */
216 u8 major_fp_hsi;
217 u8 minor_fp_hsi;
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300218 } pfdev_info;
219
220 struct pf_vf_resc {
221#define PFVF_MAX_QUEUES_PER_VF 16
222#define PFVF_MAX_SBS_PER_VF 16
223 struct hw_sb_info hw_sbs[PFVF_MAX_SBS_PER_VF];
224 u8 hw_qid[PFVF_MAX_QUEUES_PER_VF];
225 u8 cid[PFVF_MAX_QUEUES_PER_VF];
226
227 u8 num_rxqs;
228 u8 num_txqs;
229 u8 num_sbs;
230 u8 num_mac_filters;
231 u8 num_vlan_filters;
232 u8 num_mc_filters;
Mintz, Yuval08bc8f12017-06-04 13:31:06 +0300233 u8 num_cids;
234 u8 padding;
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300235 } resc;
236
237 u32 bulletin_size;
238 u32 padding;
239};
240
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300241struct pfvf_start_queue_resp_tlv {
242 struct pfvf_tlv hdr;
243 u32 offset; /* offset to consumer/producer of queue */
244 u8 padding[4];
245};
246
Mintz, Yuval08bc8f12017-06-04 13:31:06 +0300247/* Extended queue information - additional index for reference inside qzone.
248 * If commmunicated between VF/PF, each TLV relating to queues should be
249 * extended by one such [or have a future base TLV that already contains info].
250 */
251struct vfpf_qid_tlv {
252 struct channel_tlv tl;
253 u8 qid;
254 u8 padding[3];
255};
256
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300257/* Setup Queue */
258struct vfpf_start_rxq_tlv {
259 struct vfpf_first_tlv first_tlv;
260
261 /* physical addresses */
262 u64 rxq_addr;
263 u64 deprecated_sge_addr;
264 u64 cqe_pbl_addr;
265
266 u16 cqe_pbl_size;
267 u16 hw_sb;
268 u16 rx_qid;
269 u16 hc_rate; /* desired interrupts per sec. */
270
271 u16 bd_max_bytes;
272 u16 stat_id;
273 u8 sb_index;
274 u8 padding[3];
275};
276
277struct vfpf_start_txq_tlv {
278 struct vfpf_first_tlv first_tlv;
279
280 /* physical addresses */
281 u64 pbl_addr;
282 u16 pbl_size;
283 u16 stat_id;
284 u16 tx_qid;
285 u16 hw_sb;
286
287 u32 flags; /* VFPF_QUEUE_FLG_X flags */
288 u16 hc_rate; /* desired interrupts per sec. */
289 u8 sb_index;
290 u8 padding[3];
291};
292
293/* Stop RX Queue */
294struct vfpf_stop_rxqs_tlv {
295 struct vfpf_first_tlv first_tlv;
296
297 u16 rx_qid;
Mintz, Yuval4c4fa792017-03-19 13:08:17 +0200298
299 /* this field is deprecated and should *always* be set to '1' */
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300300 u8 num_rxqs;
301 u8 cqe_completion;
302 u8 padding[4];
303};
304
305/* Stop TX Queues */
306struct vfpf_stop_txqs_tlv {
307 struct vfpf_first_tlv first_tlv;
308
309 u16 tx_qid;
Mintz, Yuval4c4fa792017-03-19 13:08:17 +0200310
311 /* this field is deprecated and should *always* be set to '1' */
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300312 u8 num_txqs;
313 u8 padding[5];
314};
315
316struct vfpf_update_rxq_tlv {
317 struct vfpf_first_tlv first_tlv;
318
319 u64 deprecated_sge_addr[PFVF_MAX_QUEUES_PER_VF];
320
321 u16 rx_qid;
322 u8 num_rxqs;
323 u8 flags;
324#define VFPF_RXQ_UPD_INIT_SGE_DEPRECATE_FLAG BIT(0)
325#define VFPF_RXQ_UPD_COMPLETE_CQE_FLAG BIT(1)
326#define VFPF_RXQ_UPD_COMPLETE_EVENT_FLAG BIT(2)
327
328 u8 padding[4];
329};
330
331/* Set Queue Filters */
332struct vfpf_q_mac_vlan_filter {
333 u32 flags;
334#define VFPF_Q_FILTER_DEST_MAC_VALID 0x01
335#define VFPF_Q_FILTER_VLAN_TAG_VALID 0x02
336#define VFPF_Q_FILTER_SET_MAC 0x100 /* set/clear */
337
338 u8 mac[ETH_ALEN];
339 u16 vlan_tag;
340
341 u8 padding[4];
342};
343
344/* Start a vport */
345struct vfpf_vport_start_tlv {
346 struct vfpf_first_tlv first_tlv;
347
348 u64 sb_addr[PFVF_MAX_SBS_PER_VF];
349
350 u32 tpa_mode;
351 u16 dep1;
352 u16 mtu;
353
354 u8 vport_id;
355 u8 inner_vlan_removal;
356
357 u8 only_untagged;
358 u8 max_buffers_per_cqe;
359
360 u8 padding[4];
361};
362
363/* Extended tlvs - need to add rss, mcast, accept mode tlvs */
364struct vfpf_vport_update_activate_tlv {
365 struct channel_tlv tl;
366 u8 update_rx;
367 u8 update_tx;
368 u8 active_rx;
369 u8 active_tx;
370};
371
Yuval Mintz17b235c2016-05-11 16:36:18 +0300372struct vfpf_vport_update_tx_switch_tlv {
373 struct channel_tlv tl;
374 u8 tx_switching;
375 u8 padding[3];
376};
377
378struct vfpf_vport_update_vlan_strip_tlv {
379 struct channel_tlv tl;
380 u8 remove_vlan;
381 u8 padding[3];
382};
383
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300384struct vfpf_vport_update_mcast_bin_tlv {
385 struct channel_tlv tl;
386 u8 padding[4];
387
388 u64 bins[8];
389};
390
391struct vfpf_vport_update_accept_param_tlv {
392 struct channel_tlv tl;
393 u8 update_rx_mode;
394 u8 update_tx_mode;
395 u8 rx_accept_filter;
396 u8 tx_accept_filter;
397};
398
Yuval Mintz17b235c2016-05-11 16:36:18 +0300399struct vfpf_vport_update_accept_any_vlan_tlv {
400 struct channel_tlv tl;
401 u8 update_accept_any_vlan_flg;
402 u8 accept_any_vlan;
403
404 u8 padding[2];
405};
406
407struct vfpf_vport_update_sge_tpa_tlv {
408 struct channel_tlv tl;
409
410 u16 sge_tpa_flags;
411#define VFPF_TPA_IPV4_EN_FLAG BIT(0)
412#define VFPF_TPA_IPV6_EN_FLAG BIT(1)
413#define VFPF_TPA_PKT_SPLIT_FLAG BIT(2)
414#define VFPF_TPA_HDR_DATA_SPLIT_FLAG BIT(3)
415#define VFPF_TPA_GRO_CONSIST_FLAG BIT(4)
416
417 u8 update_sge_tpa_flags;
418#define VFPF_UPDATE_SGE_DEPRECATED_FLAG BIT(0)
419#define VFPF_UPDATE_TPA_EN_FLAG BIT(1)
420#define VFPF_UPDATE_TPA_PARAM_FLAG BIT(2)
421
422 u8 max_buffers_per_cqe;
423
424 u16 deprecated_sge_buff_size;
425 u16 tpa_max_size;
426 u16 tpa_min_size_to_start;
427 u16 tpa_min_size_to_cont;
428
429 u8 tpa_max_aggs_num;
430 u8 padding[7];
431};
432
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300433/* Primary tlv as a header for various extended tlvs for
434 * various functionalities in vport update ramrod.
435 */
436struct vfpf_vport_update_tlv {
437 struct vfpf_first_tlv first_tlv;
438};
439
440struct vfpf_ucast_filter_tlv {
441 struct vfpf_first_tlv first_tlv;
442
443 u8 opcode;
444 u8 type;
445
446 u8 mac[ETH_ALEN];
447
448 u16 vlan;
449 u16 padding[3];
450};
451
Chopra, Manisheaf3c0c2017-04-24 10:00:49 -0700452/* tunnel update param tlv */
453struct vfpf_update_tunn_param_tlv {
454 struct vfpf_first_tlv first_tlv;
455
456 u8 tun_mode_update_mask;
457 u8 tunn_mode;
458 u8 update_tun_cls;
459 u8 vxlan_clss;
460 u8 l2gre_clss;
461 u8 ipgre_clss;
462 u8 l2geneve_clss;
463 u8 ipgeneve_clss;
464 u8 update_geneve_port;
465 u8 update_vxlan_port;
466 u16 geneve_port;
467 u16 vxlan_port;
468 u8 padding[2];
469};
470
471struct pfvf_update_tunn_param_tlv {
472 struct pfvf_tlv hdr;
473
474 u16 tunn_feature_mask;
475 u8 vxlan_mode;
476 u8 l2geneve_mode;
477 u8 ipgeneve_mode;
478 u8 l2gre_mode;
479 u8 ipgre_mode;
480 u8 vxlan_clss;
481 u8 l2gre_clss;
482 u8 ipgre_clss;
483 u8 l2geneve_clss;
484 u8 ipgeneve_clss;
485 u16 vxlan_udp_port;
486 u16 geneve_udp_port;
487};
488
Yuval Mintz32a47e72016-05-11 16:36:12 +0300489struct tlv_buffer_size {
490 u8 tlv_buffer[TLV_BUFFER_SIZE];
491};
492
493union vfpf_tlvs {
Yuval Mintz37bff2b2016-05-11 16:36:13 +0300494 struct vfpf_first_tlv first_tlv;
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300495 struct vfpf_acquire_tlv acquire;
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300496 struct vfpf_start_rxq_tlv start_rxq;
497 struct vfpf_start_txq_tlv start_txq;
498 struct vfpf_stop_rxqs_tlv stop_rxqs;
499 struct vfpf_stop_txqs_tlv stop_txqs;
Yuval Mintz17b235c2016-05-11 16:36:18 +0300500 struct vfpf_update_rxq_tlv update_rxq;
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300501 struct vfpf_vport_start_tlv start_vport;
502 struct vfpf_vport_update_tlv vport_update;
503 struct vfpf_ucast_filter_tlv ucast_filter;
Chopra, Manisheaf3c0c2017-04-24 10:00:49 -0700504 struct vfpf_update_tunn_param_tlv tunn_param_update;
Yuval Mintz37bff2b2016-05-11 16:36:13 +0300505 struct channel_list_end_tlv list_end;
Yuval Mintz32a47e72016-05-11 16:36:12 +0300506 struct tlv_buffer_size tlv_buf_size;
507};
508
509union pfvf_tlvs {
Yuval Mintz37bff2b2016-05-11 16:36:13 +0300510 struct pfvf_def_resp_tlv default_resp;
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300511 struct pfvf_acquire_resp_tlv acquire_resp;
Yuval Mintz32a47e72016-05-11 16:36:12 +0300512 struct tlv_buffer_size tlv_buf_size;
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300513 struct pfvf_start_queue_resp_tlv queue_start;
Chopra, Manisheaf3c0c2017-04-24 10:00:49 -0700514 struct pfvf_update_tunn_param_tlv tunn_param_resp;
Yuval Mintz32a47e72016-05-11 16:36:12 +0300515};
516
Yuval Mintz08feecd2016-05-11 16:36:20 +0300517enum qed_bulletin_bit {
Yuval Mintzeff16962016-05-11 16:36:21 +0300518 /* Alert the VF that a forced MAC was set by the PF */
519 MAC_ADDR_FORCED = 0,
Yuval Mintz08feecd2016-05-11 16:36:20 +0300520 /* Alert the VF that a forced VLAN was set by the PF */
521 VLAN_ADDR_FORCED = 2,
522
523 /* Indicate that `default_only_untagged' contains actual data */
524 VFPF_BULLETIN_UNTAGGED_DEFAULT = 3,
525 VFPF_BULLETIN_UNTAGGED_DEFAULT_FORCED = 4,
526
Yuval Mintzeff16962016-05-11 16:36:21 +0300527 /* Alert the VF that suggested mac was sent by the PF.
528 * MAC_ADDR will be disabled in case MAC_ADDR_FORCED is set.
529 */
530 VFPF_BULLETIN_MAC_ADDR = 5
Yuval Mintz08feecd2016-05-11 16:36:20 +0300531};
532
Yuval Mintz32a47e72016-05-11 16:36:12 +0300533struct qed_bulletin_content {
534 /* crc of structure to ensure is not in mid-update */
535 u32 crc;
536
537 u32 version;
538
539 /* bitmap indicating which fields hold valid values */
540 u64 valid_bitmap;
Yuval Mintz36558c32016-05-11 16:36:17 +0300541
542 /* used for MAC_ADDR or MAC_ADDR_FORCED */
543 u8 mac[ETH_ALEN];
544
545 /* If valid, 1 => only untagged Rx if no vlan is configured */
546 u8 default_only_untagged;
547 u8 padding;
548
549 /* The following is a 'copy' of qed_mcp_link_state,
550 * qed_mcp_link_params and qed_mcp_link_capabilities. Since it's
551 * possible the structs will increase further along the road we cannot
552 * have it here; Instead we need to have all of its fields.
553 */
554 u8 req_autoneg;
555 u8 req_autoneg_pause;
556 u8 req_forced_rx;
557 u8 req_forced_tx;
558 u8 padding2[4];
559
560 u32 req_adv_speed;
561 u32 req_forced_speed;
562 u32 req_loopback;
563 u32 padding3;
564
565 u8 link_up;
566 u8 full_duplex;
567 u8 autoneg;
568 u8 autoneg_complete;
569 u8 parallel_detection;
570 u8 pfc_enabled;
571 u8 partner_tx_flow_ctrl_en;
572 u8 partner_rx_flow_ctrl_en;
573 u8 partner_adv_pause;
574 u8 sfp_tx_fault;
Chopra, Manish97379f12017-04-24 10:00:48 -0700575 u16 vxlan_udp_port;
576 u16 geneve_udp_port;
577 u8 padding4[2];
Yuval Mintz36558c32016-05-11 16:36:17 +0300578
579 u32 speed;
580 u32 partner_adv_speed;
581
582 u32 capability_speed;
Yuval Mintz08feecd2016-05-11 16:36:20 +0300583
584 /* Forced vlan */
585 u16 pvid;
586 u16 padding5;
Yuval Mintz32a47e72016-05-11 16:36:12 +0300587};
588
589struct qed_bulletin {
590 dma_addr_t phys;
591 struct qed_bulletin_content *p_virt;
592 u32 size;
593};
594
Yuval Mintz37bff2b2016-05-11 16:36:13 +0300595enum {
596 CHANNEL_TLV_NONE, /* ends tlv sequence */
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300597 CHANNEL_TLV_ACQUIRE,
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300598 CHANNEL_TLV_VPORT_START,
599 CHANNEL_TLV_VPORT_UPDATE,
600 CHANNEL_TLV_VPORT_TEARDOWN,
601 CHANNEL_TLV_START_RXQ,
602 CHANNEL_TLV_START_TXQ,
603 CHANNEL_TLV_STOP_RXQS,
604 CHANNEL_TLV_STOP_TXQS,
Yuval Mintz17b235c2016-05-11 16:36:18 +0300605 CHANNEL_TLV_UPDATE_RXQ,
Yuval Mintz0b55e272016-05-11 16:36:15 +0300606 CHANNEL_TLV_INT_CLEANUP,
607 CHANNEL_TLV_CLOSE,
608 CHANNEL_TLV_RELEASE,
Yuval Mintz37bff2b2016-05-11 16:36:13 +0300609 CHANNEL_TLV_LIST_END,
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300610 CHANNEL_TLV_UCAST_FILTER,
611 CHANNEL_TLV_VPORT_UPDATE_ACTIVATE,
Yuval Mintz17b235c2016-05-11 16:36:18 +0300612 CHANNEL_TLV_VPORT_UPDATE_TX_SWITCH,
613 CHANNEL_TLV_VPORT_UPDATE_VLAN_STRIP,
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300614 CHANNEL_TLV_VPORT_UPDATE_MCAST,
615 CHANNEL_TLV_VPORT_UPDATE_ACCEPT_PARAM,
616 CHANNEL_TLV_VPORT_UPDATE_RSS,
Yuval Mintz17b235c2016-05-11 16:36:18 +0300617 CHANNEL_TLV_VPORT_UPDATE_ACCEPT_ANY_VLAN,
618 CHANNEL_TLV_VPORT_UPDATE_SGE_TPA,
Chopra, Manisheaf3c0c2017-04-24 10:00:49 -0700619 CHANNEL_TLV_UPDATE_TUNN_PARAM,
Mintz, Yuval08bc8f12017-06-04 13:31:06 +0300620 CHANNEL_TLV_RESERVED,
621 CHANNEL_TLV_QID,
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300622 CHANNEL_TLV_MAX,
623
624 /* Required for iterating over vport-update tlvs.
625 * Will break in case non-sequential vport-update tlvs.
626 */
Yuval Mintz17b235c2016-05-11 16:36:18 +0300627 CHANNEL_TLV_VPORT_UPDATE_MAX = CHANNEL_TLV_VPORT_UPDATE_SGE_TPA + 1,
Yuval Mintz37bff2b2016-05-11 16:36:13 +0300628};
629
Mintz, Yuval08bc8f12017-06-04 13:31:06 +0300630/* Default number of CIDs [total of both Rx and Tx] to be requested
631 * by default, and maximum possible number.
632 */
633#define QED_ETH_VF_DEFAULT_NUM_CIDS (32)
634#define QED_ETH_VF_MAX_NUM_CIDS (250)
635
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300636/* This data is held in the qed_hwfn structure for VFs only. */
637struct qed_vf_iov {
638 union vfpf_tlvs *vf2pf_request;
639 dma_addr_t vf2pf_request_phys;
640 union pfvf_tlvs *pf2vf_reply;
641 dma_addr_t pf2vf_reply_phys;
642
643 /* Should be taken whenever the mailbox buffers are accessed */
644 struct mutex mutex;
645 u8 *offset;
646
647 /* Bulletin Board */
648 struct qed_bulletin bulletin;
649 struct qed_bulletin_content bulletin_shadow;
650
651 /* we set aside a copy of the acquire response */
652 struct pfvf_acquire_resp_tlv acquire_resp;
Yuval Mintzd8c2c7e2016-08-22 13:25:11 +0300653
654 /* In case PF originates prior to the fp-hsi version comparison,
655 * this has to be propagated as it affects the fastpath.
656 */
657 bool b_pre_fp_hsi;
Mintz, Yuval50a20712017-06-01 15:29:09 +0300658
659 /* Current day VFs are passing the SBs physical address on vport
660 * start, and as they lack an IGU mapping they need to store the
661 * addresses of previously registered SBs.
662 * Even if we were to change configuration flow, due to backward
663 * compatibility [with older PFs] we'd still need to store these.
664 */
665 struct qed_sb_info *sbs_info[PFVF_MAX_SBS_PER_VF];
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300666};
667
668#ifdef CONFIG_QED_SRIOV
669/**
Yuval Mintz36558c32016-05-11 16:36:17 +0300670 * @brief Read the VF bulletin and act on it if needed
671 *
672 * @param p_hwfn
673 * @param p_change - qed fills 1 iff bulletin board has changed, 0 otherwise.
674 *
675 * @return enum _qed_status
676 */
677int qed_vf_read_bulletin(struct qed_hwfn *p_hwfn, u8 *p_change);
678
679/**
680 * @brief Get link paramters for VF from qed
681 *
682 * @param p_hwfn
683 * @param params - the link params structure to be filled for the VF
684 */
685void qed_vf_get_link_params(struct qed_hwfn *p_hwfn,
686 struct qed_mcp_link_params *params);
687
688/**
689 * @brief Get link state for VF from qed
690 *
691 * @param p_hwfn
692 * @param link - the link state structure to be filled for the VF
693 */
694void qed_vf_get_link_state(struct qed_hwfn *p_hwfn,
695 struct qed_mcp_link_state *link);
696
697/**
698 * @brief Get link capabilities for VF from qed
699 *
700 * @param p_hwfn
701 * @param p_link_caps - the link capabilities structure to be filled for the VF
702 */
703void qed_vf_get_link_caps(struct qed_hwfn *p_hwfn,
704 struct qed_mcp_link_capabilities *p_link_caps);
705
706/**
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300707 * @brief Get number of Rx queues allocated for VF by qed
708 *
709 * @param p_hwfn
710 * @param num_rxqs - allocated RX queues
711 */
712void qed_vf_get_num_rxqs(struct qed_hwfn *p_hwfn, u8 *num_rxqs);
713
714/**
Mintz, Yuval0db711b2017-06-04 13:31:00 +0300715 * @brief Get number of Rx queues allocated for VF by qed
716 *
717 * @param p_hwfn
718 * @param num_txqs - allocated RX queues
719 */
720void qed_vf_get_num_txqs(struct qed_hwfn *p_hwfn, u8 *num_txqs);
721
722/**
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300723 * @brief Get port mac address for VF
724 *
725 * @param p_hwfn
726 * @param port_mac - destination location for port mac
727 */
728void qed_vf_get_port_mac(struct qed_hwfn *p_hwfn, u8 *port_mac);
729
730/**
731 * @brief Get number of VLAN filters allocated for VF by qed
732 *
733 * @param p_hwfn
734 * @param num_rxqs - allocated VLAN filters
735 */
736void qed_vf_get_num_vlan_filters(struct qed_hwfn *p_hwfn,
737 u8 *num_vlan_filters);
738
739/**
Mintz, Yuvalb0fca312016-10-31 22:26:54 +0200740 * @brief Get number of MAC filters allocated for VF by qed
741 *
742 * @param p_hwfn
743 * @param num_rxqs - allocated MAC filters
744 */
745void qed_vf_get_num_mac_filters(struct qed_hwfn *p_hwfn, u8 *num_mac_filters);
746
747/**
Yuval Mintzeff16962016-05-11 16:36:21 +0300748 * @brief Check if VF can set a MAC address
749 *
750 * @param p_hwfn
751 * @param mac
752 *
753 * @return bool
754 */
755bool qed_vf_check_mac(struct qed_hwfn *p_hwfn, u8 *mac);
756
757/**
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300758 * @brief Set firmware version information in dev_info from VFs acquire response tlv
759 *
760 * @param p_hwfn
761 * @param fw_major
762 * @param fw_minor
763 * @param fw_rev
764 * @param fw_eng
765 */
766void qed_vf_get_fw_version(struct qed_hwfn *p_hwfn,
767 u16 *fw_major, u16 *fw_minor,
768 u16 *fw_rev, u16 *fw_eng);
769
770/**
771 * @brief hw preparation for VF
772 * sends ACQUIRE message
773 *
774 * @param p_hwfn
775 *
776 * @return int
777 */
778int qed_vf_hw_prepare(struct qed_hwfn *p_hwfn);
779
780/**
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300781 * @brief VF - start the RX Queue by sending a message to the PF
782 * @param p_hwfn
Mintz, Yuval3da7a372016-11-29 16:47:06 +0200783 * @param p_cid - Only relative fields are relevant
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300784 * @param bd_max_bytes - maximum number of bytes per bd
785 * @param bd_chain_phys_addr - physical address of bd chain
786 * @param cqe_pbl_addr - physical address of pbl
787 * @param cqe_pbl_size - pbl size
788 * @param pp_prod - pointer to the producer to be
789 * used in fastpath
790 *
791 * @return int
792 */
793int qed_vf_pf_rxq_start(struct qed_hwfn *p_hwfn,
Mintz, Yuval3da7a372016-11-29 16:47:06 +0200794 struct qed_queue_cid *p_cid,
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300795 u16 bd_max_bytes,
796 dma_addr_t bd_chain_phys_addr,
797 dma_addr_t cqe_pbl_addr,
798 u16 cqe_pbl_size, void __iomem **pp_prod);
799
800/**
801 * @brief VF - start the TX queue by sending a message to the
802 * PF.
803 *
804 * @param p_hwfn
805 * @param tx_queue_id - zero based within the VF
806 * @param sb - status block for this queue
807 * @param sb_index - index within the status block
808 * @param bd_chain_phys_addr - physical address of tx chain
809 * @param pp_doorbell - pointer to address to which to
810 * write the doorbell too..
811 *
812 * @return int
813 */
Mintz, Yuval3da7a372016-11-29 16:47:06 +0200814int
815qed_vf_pf_txq_start(struct qed_hwfn *p_hwfn,
816 struct qed_queue_cid *p_cid,
817 dma_addr_t pbl_addr,
818 u16 pbl_size, void __iomem **pp_doorbell);
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300819
820/**
821 * @brief VF - stop the RX queue by sending a message to the PF
822 *
823 * @param p_hwfn
Mintz, Yuval3da7a372016-11-29 16:47:06 +0200824 * @param p_cid
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300825 * @param cqe_completion
826 *
827 * @return int
828 */
829int qed_vf_pf_rxq_stop(struct qed_hwfn *p_hwfn,
Mintz, Yuval3da7a372016-11-29 16:47:06 +0200830 struct qed_queue_cid *p_cid, bool cqe_completion);
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300831
832/**
833 * @brief VF - stop the TX queue by sending a message to the PF
834 *
835 * @param p_hwfn
836 * @param tx_qid
837 *
838 * @return int
839 */
Mintz, Yuval3da7a372016-11-29 16:47:06 +0200840int qed_vf_pf_txq_stop(struct qed_hwfn *p_hwfn, struct qed_queue_cid *p_cid);
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300841
842/**
843 * @brief VF - send a vport update command
844 *
845 * @param p_hwfn
846 * @param params
847 *
848 * @return int
849 */
850int qed_vf_pf_vport_update(struct qed_hwfn *p_hwfn,
851 struct qed_sp_vport_update_params *p_params);
852
853/**
Yuval Mintz0b55e272016-05-11 16:36:15 +0300854 *
855 * @brief VF - send a close message to PF
856 *
857 * @param p_hwfn
858 *
859 * @return enum _qed_status
860 */
861int qed_vf_pf_reset(struct qed_hwfn *p_hwfn);
862
863/**
864 * @brief VF - free vf`s memories
865 *
866 * @param p_hwfn
867 *
868 * @return enum _qed_status
869 */
870int qed_vf_pf_release(struct qed_hwfn *p_hwfn);
Yuval Mintz36558c32016-05-11 16:36:17 +0300871
Yuval Mintz0b55e272016-05-11 16:36:15 +0300872/**
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300873 * @brief qed_vf_get_igu_sb_id - Get the IGU SB ID for a given
874 * sb_id. For VFs igu sbs don't have to be contiguous
875 *
876 * @param p_hwfn
877 * @param sb_id
878 *
879 * @return INLINE u16
880 */
881u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id);
Yuval Mintz0b55e272016-05-11 16:36:15 +0300882
883/**
Mintz, Yuval50a20712017-06-01 15:29:09 +0300884 * @brief Stores [or removes] a configured sb_info.
885 *
886 * @param p_hwfn
887 * @param sb_id - zero-based SB index [for fastpath]
888 * @param sb_info - may be NULL [during removal].
889 */
890void qed_vf_set_sb_info(struct qed_hwfn *p_hwfn,
891 u16 sb_id, struct qed_sb_info *p_sb);
892
893/**
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300894 * @brief qed_vf_pf_vport_start - perform vport start for VF.
895 *
896 * @param p_hwfn
897 * @param vport_id
898 * @param mtu
899 * @param inner_vlan_removal
900 * @param tpa_mode
901 * @param max_buffers_per_cqe,
902 * @param only_untagged - default behavior regarding vlan acceptance
903 *
904 * @return enum _qed_status
905 */
906int qed_vf_pf_vport_start(struct qed_hwfn *p_hwfn,
907 u8 vport_id,
908 u16 mtu,
909 u8 inner_vlan_removal,
910 enum qed_tpa_mode tpa_mode,
Yuval Mintz08feecd2016-05-11 16:36:20 +0300911 u8 max_buffers_per_cqe, u8 only_untagged);
Yuval Mintzdacd88d2016-05-11 16:36:16 +0300912
913/**
914 * @brief qed_vf_pf_vport_stop - stop the VF's vport
915 *
916 * @param p_hwfn
917 *
918 * @return enum _qed_status
919 */
920int qed_vf_pf_vport_stop(struct qed_hwfn *p_hwfn);
921
922int qed_vf_pf_filter_ucast(struct qed_hwfn *p_hwfn,
923 struct qed_filter_ucast *p_param);
924
925void qed_vf_pf_filter_mcast(struct qed_hwfn *p_hwfn,
926 struct qed_filter_mcast *p_filter_cmd);
927
928/**
Yuval Mintz0b55e272016-05-11 16:36:15 +0300929 * @brief qed_vf_pf_int_cleanup - clean the SB of the VF
930 *
931 * @param p_hwfn
932 *
933 * @return enum _qed_status
934 */
935int qed_vf_pf_int_cleanup(struct qed_hwfn *p_hwfn);
Yuval Mintz36558c32016-05-11 16:36:17 +0300936
937/**
938 * @brief - return the link params in a given bulletin board
939 *
940 * @param p_hwfn
941 * @param p_params - pointer to a struct to fill with link params
942 * @param p_bulletin
943 */
944void __qed_vf_get_link_params(struct qed_hwfn *p_hwfn,
945 struct qed_mcp_link_params *p_params,
946 struct qed_bulletin_content *p_bulletin);
947
948/**
949 * @brief - return the link state in a given bulletin board
950 *
951 * @param p_hwfn
952 * @param p_link - pointer to a struct to fill with link state
953 * @param p_bulletin
954 */
955void __qed_vf_get_link_state(struct qed_hwfn *p_hwfn,
956 struct qed_mcp_link_state *p_link,
957 struct qed_bulletin_content *p_bulletin);
958
959/**
960 * @brief - return the link capabilities in a given bulletin board
961 *
962 * @param p_hwfn
963 * @param p_link - pointer to a struct to fill with link capabilities
964 * @param p_bulletin
965 */
966void __qed_vf_get_link_caps(struct qed_hwfn *p_hwfn,
967 struct qed_mcp_link_capabilities *p_link_caps,
968 struct qed_bulletin_content *p_bulletin);
969
970void qed_iov_vf_task(struct work_struct *work);
Chopra, Manisheaf3c0c2017-04-24 10:00:49 -0700971void qed_vf_set_vf_start_tunn_update_param(struct qed_tunnel_info *p_tun);
972int qed_vf_pf_tunnel_param_update(struct qed_hwfn *p_hwfn,
973 struct qed_tunnel_info *p_tunn);
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300974#else
Yuval Mintz36558c32016-05-11 16:36:17 +0300975static inline void qed_vf_get_link_params(struct qed_hwfn *p_hwfn,
976 struct qed_mcp_link_params *params)
977{
978}
979
980static inline void qed_vf_get_link_state(struct qed_hwfn *p_hwfn,
981 struct qed_mcp_link_state *link)
982{
983}
984
985static inline void
986qed_vf_get_link_caps(struct qed_hwfn *p_hwfn,
987 struct qed_mcp_link_capabilities *p_link_caps)
988{
989}
990
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300991static inline void qed_vf_get_num_rxqs(struct qed_hwfn *p_hwfn, u8 *num_rxqs)
992{
993}
994
Mintz, Yuval0db711b2017-06-04 13:31:00 +0300995static inline void qed_vf_get_num_txqs(struct qed_hwfn *p_hwfn, u8 *num_txqs)
996{
997}
998
Yuval Mintz1408cc1f2016-05-11 16:36:14 +0300999static inline void qed_vf_get_port_mac(struct qed_hwfn *p_hwfn, u8 *port_mac)
1000{
1001}
1002
1003static inline void qed_vf_get_num_vlan_filters(struct qed_hwfn *p_hwfn,
1004 u8 *num_vlan_filters)
1005{
1006}
1007
Mintz, Yuvalb0fca312016-10-31 22:26:54 +02001008static inline void qed_vf_get_num_mac_filters(struct qed_hwfn *p_hwfn,
1009 u8 *num_mac_filters)
1010{
1011}
1012
Yuval Mintzeff16962016-05-11 16:36:21 +03001013static inline bool qed_vf_check_mac(struct qed_hwfn *p_hwfn, u8 *mac)
1014{
1015 return false;
1016}
1017
Yuval Mintz1408cc1f2016-05-11 16:36:14 +03001018static inline void qed_vf_get_fw_version(struct qed_hwfn *p_hwfn,
1019 u16 *fw_major, u16 *fw_minor,
1020 u16 *fw_rev, u16 *fw_eng)
1021{
1022}
1023
1024static inline int qed_vf_hw_prepare(struct qed_hwfn *p_hwfn)
1025{
1026 return -EINVAL;
1027}
1028
Yuval Mintzdacd88d2016-05-11 16:36:16 +03001029static inline int qed_vf_pf_rxq_start(struct qed_hwfn *p_hwfn,
Mintz, Yuval3da7a372016-11-29 16:47:06 +02001030 struct qed_queue_cid *p_cid,
Yuval Mintzdacd88d2016-05-11 16:36:16 +03001031 u16 bd_max_bytes,
1032 dma_addr_t bd_chain_phys_adr,
1033 dma_addr_t cqe_pbl_addr,
1034 u16 cqe_pbl_size, void __iomem **pp_prod)
1035{
1036 return -EINVAL;
1037}
1038
1039static inline int qed_vf_pf_txq_start(struct qed_hwfn *p_hwfn,
Mintz, Yuval3da7a372016-11-29 16:47:06 +02001040 struct qed_queue_cid *p_cid,
Yuval Mintzdacd88d2016-05-11 16:36:16 +03001041 dma_addr_t pbl_addr,
1042 u16 pbl_size, void __iomem **pp_doorbell)
1043{
1044 return -EINVAL;
1045}
1046
1047static inline int qed_vf_pf_rxq_stop(struct qed_hwfn *p_hwfn,
Mintz, Yuval3da7a372016-11-29 16:47:06 +02001048 struct qed_queue_cid *p_cid,
1049 bool cqe_completion)
Yuval Mintzdacd88d2016-05-11 16:36:16 +03001050{
1051 return -EINVAL;
1052}
1053
Mintz, Yuval3da7a372016-11-29 16:47:06 +02001054static inline int qed_vf_pf_txq_stop(struct qed_hwfn *p_hwfn,
1055 struct qed_queue_cid *p_cid)
Yuval Mintzdacd88d2016-05-11 16:36:16 +03001056{
1057 return -EINVAL;
1058}
1059
1060static inline int
1061qed_vf_pf_vport_update(struct qed_hwfn *p_hwfn,
1062 struct qed_sp_vport_update_params *p_params)
1063{
1064 return -EINVAL;
1065}
1066
Yuval Mintz0b55e272016-05-11 16:36:15 +03001067static inline int qed_vf_pf_reset(struct qed_hwfn *p_hwfn)
1068{
1069 return -EINVAL;
1070}
1071
1072static inline int qed_vf_pf_release(struct qed_hwfn *p_hwfn)
1073{
1074 return -EINVAL;
1075}
1076
Yuval Mintz1408cc1f2016-05-11 16:36:14 +03001077static inline u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id)
1078{
1079 return 0;
1080}
Yuval Mintz0b55e272016-05-11 16:36:15 +03001081
Yuval Mintzdacd88d2016-05-11 16:36:16 +03001082static inline int qed_vf_pf_vport_start(struct qed_hwfn *p_hwfn,
1083 u8 vport_id,
1084 u16 mtu,
1085 u8 inner_vlan_removal,
1086 enum qed_tpa_mode tpa_mode,
Yuval Mintz08feecd2016-05-11 16:36:20 +03001087 u8 max_buffers_per_cqe,
1088 u8 only_untagged)
Yuval Mintzdacd88d2016-05-11 16:36:16 +03001089{
1090 return -EINVAL;
1091}
1092
1093static inline int qed_vf_pf_vport_stop(struct qed_hwfn *p_hwfn)
1094{
1095 return -EINVAL;
1096}
1097
1098static inline int qed_vf_pf_filter_ucast(struct qed_hwfn *p_hwfn,
1099 struct qed_filter_ucast *p_param)
1100{
1101 return -EINVAL;
1102}
1103
1104static inline void qed_vf_pf_filter_mcast(struct qed_hwfn *p_hwfn,
1105 struct qed_filter_mcast *p_filter_cmd)
1106{
1107}
1108
Yuval Mintz0b55e272016-05-11 16:36:15 +03001109static inline int qed_vf_pf_int_cleanup(struct qed_hwfn *p_hwfn)
1110{
1111 return -EINVAL;
1112}
Yuval Mintz36558c32016-05-11 16:36:17 +03001113
1114static inline void __qed_vf_get_link_params(struct qed_hwfn *p_hwfn,
1115 struct qed_mcp_link_params
1116 *p_params,
1117 struct qed_bulletin_content
1118 *p_bulletin)
1119{
1120}
1121
1122static inline void __qed_vf_get_link_state(struct qed_hwfn *p_hwfn,
1123 struct qed_mcp_link_state *p_link,
1124 struct qed_bulletin_content
1125 *p_bulletin)
1126{
1127}
1128
1129static inline void
1130__qed_vf_get_link_caps(struct qed_hwfn *p_hwfn,
1131 struct qed_mcp_link_capabilities *p_link_caps,
1132 struct qed_bulletin_content *p_bulletin)
1133{
1134}
1135
1136static inline void qed_iov_vf_task(struct work_struct *work)
1137{
1138}
Chopra, Manisheaf3c0c2017-04-24 10:00:49 -07001139
1140static inline void
1141qed_vf_set_vf_start_tunn_update_param(struct qed_tunnel_info *p_tun)
1142{
1143}
1144
1145static inline int qed_vf_pf_tunnel_param_update(struct qed_hwfn *p_hwfn,
1146 struct qed_tunnel_info *p_tunn)
1147{
1148 return -EINVAL;
1149}
Yuval Mintz1408cc1f2016-05-11 16:36:14 +03001150#endif
1151
Yuval Mintz32a47e72016-05-11 16:36:12 +03001152#endif