1 /* QLogic qed NIC Driver
2 * Copyright (c) 2015-2017 QLogic Corporation
4 * 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:
10 * Redistribution and use in source and binary forms, with or
11 * without modification, are permitted provided that the following
14 * - Redistributions of source code must retain the above
15 * copyright notice, this list of conditions and the following
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.
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
39 #define T_ETH_INDIRECTION_TABLE_SIZE 128
40 #define T_ETH_RSS_KEY_SIZE 10
42 struct vf_pf_resc_request
{
58 #define TLV_BUFFER_SIZE 1024
64 PFVF_STATUS_NOT_SUPPORTED
,
65 PFVF_STATUS_NO_RESOURCE
,
67 PFVF_STATUS_MALICIOUS
,
70 /* vf pf channel tlvs */
71 /* general tlv header (used for both vf->pf request and pf->vf response) */
77 /* header of first vf->pf tlv carries the offset used to calculate reponse
80 struct vfpf_first_tlv
{
81 struct channel_tlv tl
;
86 /* header of pf->vf tlvs, carries the status of handling the request */
88 struct channel_tlv tl
;
93 /* response tlv used for most tlvs */
94 struct pfvf_def_resp_tlv
{
98 /* used to terminate and pad a tlv list */
99 struct channel_list_end_tlv
{
100 struct channel_tlv tl
;
104 #define VFPF_ACQUIRE_OS_LINUX (0)
105 #define VFPF_ACQUIRE_OS_WINDOWS (1)
106 #define VFPF_ACQUIRE_OS_ESX (2)
107 #define VFPF_ACQUIRE_OS_SOLARIS (3)
108 #define VFPF_ACQUIRE_OS_LINUX_USERSPACE (4)
110 struct vfpf_acquire_tlv
{
111 struct vfpf_first_tlv first_tlv
;
113 struct vf_pf_vfdev_info
{
114 #define VFPF_ACQUIRE_CAP_PRE_FP_HSI (1 << 0) /* VF pre-FP hsi version */
115 #define VFPF_ACQUIRE_CAP_100G (1 << 1) /* VF can support 100g */
122 u16 opaque_fid
; /* ME register value */
123 u8 os_type
; /* VFPF_ACQUIRE_OS_* value */
129 struct vf_pf_resc_request resc_request
;
136 /* receive side scaling tlv */
137 struct vfpf_vport_update_rss_tlv
{
138 struct channel_tlv tl
;
141 #define VFPF_UPDATE_RSS_CONFIG_FLAG BIT(0)
142 #define VFPF_UPDATE_RSS_CAPS_FLAG BIT(1)
143 #define VFPF_UPDATE_RSS_IND_TABLE_FLAG BIT(2)
144 #define VFPF_UPDATE_RSS_KEY_FLAG BIT(3)
148 u8 rss_table_size_log
; /* The table size is 2 ^ rss_table_size_log */
149 u16 rss_ind_table
[T_ETH_INDIRECTION_TABLE_SIZE
];
150 u32 rss_key
[T_ETH_RSS_KEY_SIZE
];
153 struct pfvf_storm_stats
{
158 struct pfvf_stats_info
{
159 struct pfvf_storm_stats mstats
;
160 struct pfvf_storm_stats pstats
;
161 struct pfvf_storm_stats tstats
;
162 struct pfvf_storm_stats ustats
;
165 struct pfvf_acquire_resp_tlv
{
168 struct pf_vf_pfdev_info
{
178 #define PFVF_ACQUIRE_CAP_DEFAULT_UNTAGGED BIT(0)
179 #define PFVF_ACQUIRE_CAP_100G BIT(1) /* If set, 100g PF */
180 /* There are old PF versions where the PF might mistakenly override the sanity
181 * mechanism [version-based] and allow a VF that can't be supported to pass
182 * the acquisition phase.
183 * To overcome this, PFs now indicate that they're past that point and the new
184 * VFs would fail probe on the older PFs that fail to do so.
186 #define PFVF_ACQUIRE_CAP_POST_FW_OVERRIDE BIT(2)
192 /* These should match the PF's qed_dev values */
198 struct pfvf_stats_info stats_info
;
200 u8 port_mac
[ETH_ALEN
];
202 /* It's possible PF had to configure an older fastpath HSI
203 * [in case VF is newer than PF]. This is communicated back
204 * to the VF. It can also be used in case of error due to
205 * non-matching versions to shed light in VF about failure.
212 #define PFVF_MAX_QUEUES_PER_VF 16
213 #define PFVF_MAX_SBS_PER_VF 16
214 struct hw_sb_info hw_sbs
[PFVF_MAX_SBS_PER_VF
];
215 u8 hw_qid
[PFVF_MAX_QUEUES_PER_VF
];
216 u8 cid
[PFVF_MAX_QUEUES_PER_VF
];
231 struct pfvf_start_queue_resp_tlv
{
233 u32 offset
; /* offset to consumer/producer of queue */
238 struct vfpf_start_rxq_tlv
{
239 struct vfpf_first_tlv first_tlv
;
241 /* physical addresses */
243 u64 deprecated_sge_addr
;
249 u16 hc_rate
; /* desired interrupts per sec. */
257 struct vfpf_start_txq_tlv
{
258 struct vfpf_first_tlv first_tlv
;
260 /* physical addresses */
267 u32 flags
; /* VFPF_QUEUE_FLG_X flags */
268 u16 hc_rate
; /* desired interrupts per sec. */
274 struct vfpf_stop_rxqs_tlv
{
275 struct vfpf_first_tlv first_tlv
;
284 struct vfpf_stop_txqs_tlv
{
285 struct vfpf_first_tlv first_tlv
;
292 struct vfpf_update_rxq_tlv
{
293 struct vfpf_first_tlv first_tlv
;
295 u64 deprecated_sge_addr
[PFVF_MAX_QUEUES_PER_VF
];
300 #define VFPF_RXQ_UPD_INIT_SGE_DEPRECATE_FLAG BIT(0)
301 #define VFPF_RXQ_UPD_COMPLETE_CQE_FLAG BIT(1)
302 #define VFPF_RXQ_UPD_COMPLETE_EVENT_FLAG BIT(2)
307 /* Set Queue Filters */
308 struct vfpf_q_mac_vlan_filter
{
310 #define VFPF_Q_FILTER_DEST_MAC_VALID 0x01
311 #define VFPF_Q_FILTER_VLAN_TAG_VALID 0x02
312 #define VFPF_Q_FILTER_SET_MAC 0x100 /* set/clear */
321 struct vfpf_vport_start_tlv
{
322 struct vfpf_first_tlv first_tlv
;
324 u64 sb_addr
[PFVF_MAX_SBS_PER_VF
];
331 u8 inner_vlan_removal
;
334 u8 max_buffers_per_cqe
;
339 /* Extended tlvs - need to add rss, mcast, accept mode tlvs */
340 struct vfpf_vport_update_activate_tlv
{
341 struct channel_tlv tl
;
348 struct vfpf_vport_update_tx_switch_tlv
{
349 struct channel_tlv tl
;
354 struct vfpf_vport_update_vlan_strip_tlv
{
355 struct channel_tlv tl
;
360 struct vfpf_vport_update_mcast_bin_tlv
{
361 struct channel_tlv tl
;
367 struct vfpf_vport_update_accept_param_tlv
{
368 struct channel_tlv tl
;
375 struct vfpf_vport_update_accept_any_vlan_tlv
{
376 struct channel_tlv tl
;
377 u8 update_accept_any_vlan_flg
;
383 struct vfpf_vport_update_sge_tpa_tlv
{
384 struct channel_tlv tl
;
387 #define VFPF_TPA_IPV4_EN_FLAG BIT(0)
388 #define VFPF_TPA_IPV6_EN_FLAG BIT(1)
389 #define VFPF_TPA_PKT_SPLIT_FLAG BIT(2)
390 #define VFPF_TPA_HDR_DATA_SPLIT_FLAG BIT(3)
391 #define VFPF_TPA_GRO_CONSIST_FLAG BIT(4)
393 u8 update_sge_tpa_flags
;
394 #define VFPF_UPDATE_SGE_DEPRECATED_FLAG BIT(0)
395 #define VFPF_UPDATE_TPA_EN_FLAG BIT(1)
396 #define VFPF_UPDATE_TPA_PARAM_FLAG BIT(2)
398 u8 max_buffers_per_cqe
;
400 u16 deprecated_sge_buff_size
;
402 u16 tpa_min_size_to_start
;
403 u16 tpa_min_size_to_cont
;
409 /* Primary tlv as a header for various extended tlvs for
410 * various functionalities in vport update ramrod.
412 struct vfpf_vport_update_tlv
{
413 struct vfpf_first_tlv first_tlv
;
416 struct vfpf_ucast_filter_tlv
{
417 struct vfpf_first_tlv first_tlv
;
428 struct tlv_buffer_size
{
429 u8 tlv_buffer
[TLV_BUFFER_SIZE
];
433 struct vfpf_first_tlv first_tlv
;
434 struct vfpf_acquire_tlv acquire
;
435 struct vfpf_start_rxq_tlv start_rxq
;
436 struct vfpf_start_txq_tlv start_txq
;
437 struct vfpf_stop_rxqs_tlv stop_rxqs
;
438 struct vfpf_stop_txqs_tlv stop_txqs
;
439 struct vfpf_update_rxq_tlv update_rxq
;
440 struct vfpf_vport_start_tlv start_vport
;
441 struct vfpf_vport_update_tlv vport_update
;
442 struct vfpf_ucast_filter_tlv ucast_filter
;
443 struct channel_list_end_tlv list_end
;
444 struct tlv_buffer_size tlv_buf_size
;
448 struct pfvf_def_resp_tlv default_resp
;
449 struct pfvf_acquire_resp_tlv acquire_resp
;
450 struct tlv_buffer_size tlv_buf_size
;
451 struct pfvf_start_queue_resp_tlv queue_start
;
454 enum qed_bulletin_bit
{
455 /* Alert the VF that a forced MAC was set by the PF */
457 /* Alert the VF that a forced VLAN was set by the PF */
458 VLAN_ADDR_FORCED
= 2,
460 /* Indicate that `default_only_untagged' contains actual data */
461 VFPF_BULLETIN_UNTAGGED_DEFAULT
= 3,
462 VFPF_BULLETIN_UNTAGGED_DEFAULT_FORCED
= 4,
464 /* Alert the VF that suggested mac was sent by the PF.
465 * MAC_ADDR will be disabled in case MAC_ADDR_FORCED is set.
467 VFPF_BULLETIN_MAC_ADDR
= 5
470 struct qed_bulletin_content
{
471 /* crc of structure to ensure is not in mid-update */
476 /* bitmap indicating which fields hold valid values */
479 /* used for MAC_ADDR or MAC_ADDR_FORCED */
482 /* If valid, 1 => only untagged Rx if no vlan is configured */
483 u8 default_only_untagged
;
486 /* The following is a 'copy' of qed_mcp_link_state,
487 * qed_mcp_link_params and qed_mcp_link_capabilities. Since it's
488 * possible the structs will increase further along the road we cannot
489 * have it here; Instead we need to have all of its fields.
492 u8 req_autoneg_pause
;
498 u32 req_forced_speed
;
506 u8 parallel_detection
;
508 u8 partner_tx_flow_ctrl_en
;
509 u8 partner_rx_flow_ctrl_en
;
510 u8 partner_adv_pause
;
515 u32 partner_adv_speed
;
517 u32 capability_speed
;
524 struct qed_bulletin
{
526 struct qed_bulletin_content
*p_virt
;
531 CHANNEL_TLV_NONE
, /* ends tlv sequence */
533 CHANNEL_TLV_VPORT_START
,
534 CHANNEL_TLV_VPORT_UPDATE
,
535 CHANNEL_TLV_VPORT_TEARDOWN
,
536 CHANNEL_TLV_START_RXQ
,
537 CHANNEL_TLV_START_TXQ
,
538 CHANNEL_TLV_STOP_RXQS
,
539 CHANNEL_TLV_STOP_TXQS
,
540 CHANNEL_TLV_UPDATE_RXQ
,
541 CHANNEL_TLV_INT_CLEANUP
,
544 CHANNEL_TLV_LIST_END
,
545 CHANNEL_TLV_UCAST_FILTER
,
546 CHANNEL_TLV_VPORT_UPDATE_ACTIVATE
,
547 CHANNEL_TLV_VPORT_UPDATE_TX_SWITCH
,
548 CHANNEL_TLV_VPORT_UPDATE_VLAN_STRIP
,
549 CHANNEL_TLV_VPORT_UPDATE_MCAST
,
550 CHANNEL_TLV_VPORT_UPDATE_ACCEPT_PARAM
,
551 CHANNEL_TLV_VPORT_UPDATE_RSS
,
552 CHANNEL_TLV_VPORT_UPDATE_ACCEPT_ANY_VLAN
,
553 CHANNEL_TLV_VPORT_UPDATE_SGE_TPA
,
556 /* Required for iterating over vport-update tlvs.
557 * Will break in case non-sequential vport-update tlvs.
559 CHANNEL_TLV_VPORT_UPDATE_MAX
= CHANNEL_TLV_VPORT_UPDATE_SGE_TPA
+ 1,
562 /* This data is held in the qed_hwfn structure for VFs only. */
564 union vfpf_tlvs
*vf2pf_request
;
565 dma_addr_t vf2pf_request_phys
;
566 union pfvf_tlvs
*pf2vf_reply
;
567 dma_addr_t pf2vf_reply_phys
;
569 /* Should be taken whenever the mailbox buffers are accessed */
574 struct qed_bulletin bulletin
;
575 struct qed_bulletin_content bulletin_shadow
;
577 /* we set aside a copy of the acquire response */
578 struct pfvf_acquire_resp_tlv acquire_resp
;
580 /* In case PF originates prior to the fp-hsi version comparison,
581 * this has to be propagated as it affects the fastpath.
586 #ifdef CONFIG_QED_SRIOV
588 * @brief Read the VF bulletin and act on it if needed
591 * @param p_change - qed fills 1 iff bulletin board has changed, 0 otherwise.
593 * @return enum _qed_status
595 int qed_vf_read_bulletin(struct qed_hwfn
*p_hwfn
, u8
*p_change
);
598 * @brief Get link paramters for VF from qed
601 * @param params - the link params structure to be filled for the VF
603 void qed_vf_get_link_params(struct qed_hwfn
*p_hwfn
,
604 struct qed_mcp_link_params
*params
);
607 * @brief Get link state for VF from qed
610 * @param link - the link state structure to be filled for the VF
612 void qed_vf_get_link_state(struct qed_hwfn
*p_hwfn
,
613 struct qed_mcp_link_state
*link
);
616 * @brief Get link capabilities for VF from qed
619 * @param p_link_caps - the link capabilities structure to be filled for the VF
621 void qed_vf_get_link_caps(struct qed_hwfn
*p_hwfn
,
622 struct qed_mcp_link_capabilities
*p_link_caps
);
625 * @brief Get number of Rx queues allocated for VF by qed
628 * @param num_rxqs - allocated RX queues
630 void qed_vf_get_num_rxqs(struct qed_hwfn
*p_hwfn
, u8
*num_rxqs
);
633 * @brief Get port mac address for VF
636 * @param port_mac - destination location for port mac
638 void qed_vf_get_port_mac(struct qed_hwfn
*p_hwfn
, u8
*port_mac
);
641 * @brief Get number of VLAN filters allocated for VF by qed
644 * @param num_rxqs - allocated VLAN filters
646 void qed_vf_get_num_vlan_filters(struct qed_hwfn
*p_hwfn
,
647 u8
*num_vlan_filters
);
650 * @brief Get number of MAC filters allocated for VF by qed
653 * @param num_rxqs - allocated MAC filters
655 void qed_vf_get_num_mac_filters(struct qed_hwfn
*p_hwfn
, u8
*num_mac_filters
);
658 * @brief Check if VF can set a MAC address
665 bool qed_vf_check_mac(struct qed_hwfn
*p_hwfn
, u8
*mac
);
668 * @brief Set firmware version information in dev_info from VFs acquire response tlv
676 void qed_vf_get_fw_version(struct qed_hwfn
*p_hwfn
,
677 u16
*fw_major
, u16
*fw_minor
,
678 u16
*fw_rev
, u16
*fw_eng
);
681 * @brief hw preparation for VF
682 * sends ACQUIRE message
688 int qed_vf_hw_prepare(struct qed_hwfn
*p_hwfn
);
691 * @brief VF - start the RX Queue by sending a message to the PF
693 * @param p_cid - Only relative fields are relevant
694 * @param bd_max_bytes - maximum number of bytes per bd
695 * @param bd_chain_phys_addr - physical address of bd chain
696 * @param cqe_pbl_addr - physical address of pbl
697 * @param cqe_pbl_size - pbl size
698 * @param pp_prod - pointer to the producer to be
703 int qed_vf_pf_rxq_start(struct qed_hwfn
*p_hwfn
,
704 struct qed_queue_cid
*p_cid
,
706 dma_addr_t bd_chain_phys_addr
,
707 dma_addr_t cqe_pbl_addr
,
708 u16 cqe_pbl_size
, void __iomem
**pp_prod
);
711 * @brief VF - start the TX queue by sending a message to the
715 * @param tx_queue_id - zero based within the VF
716 * @param sb - status block for this queue
717 * @param sb_index - index within the status block
718 * @param bd_chain_phys_addr - physical address of tx chain
719 * @param pp_doorbell - pointer to address to which to
720 * write the doorbell too..
725 qed_vf_pf_txq_start(struct qed_hwfn
*p_hwfn
,
726 struct qed_queue_cid
*p_cid
,
728 u16 pbl_size
, void __iomem
**pp_doorbell
);
731 * @brief VF - stop the RX queue by sending a message to the PF
735 * @param cqe_completion
739 int qed_vf_pf_rxq_stop(struct qed_hwfn
*p_hwfn
,
740 struct qed_queue_cid
*p_cid
, bool cqe_completion
);
743 * @brief VF - stop the TX queue by sending a message to the PF
750 int qed_vf_pf_txq_stop(struct qed_hwfn
*p_hwfn
, struct qed_queue_cid
*p_cid
);
753 * @brief VF - send a vport update command
760 int qed_vf_pf_vport_update(struct qed_hwfn
*p_hwfn
,
761 struct qed_sp_vport_update_params
*p_params
);
765 * @brief VF - send a close message to PF
769 * @return enum _qed_status
771 int qed_vf_pf_reset(struct qed_hwfn
*p_hwfn
);
774 * @brief VF - free vf`s memories
778 * @return enum _qed_status
780 int qed_vf_pf_release(struct qed_hwfn
*p_hwfn
);
783 * @brief qed_vf_get_igu_sb_id - Get the IGU SB ID for a given
784 * sb_id. For VFs igu sbs don't have to be contiguous
791 u16
qed_vf_get_igu_sb_id(struct qed_hwfn
*p_hwfn
, u16 sb_id
);
794 * @brief qed_vf_pf_vport_start - perform vport start for VF.
799 * @param inner_vlan_removal
801 * @param max_buffers_per_cqe,
802 * @param only_untagged - default behavior regarding vlan acceptance
804 * @return enum _qed_status
806 int qed_vf_pf_vport_start(struct qed_hwfn
*p_hwfn
,
809 u8 inner_vlan_removal
,
810 enum qed_tpa_mode tpa_mode
,
811 u8 max_buffers_per_cqe
, u8 only_untagged
);
814 * @brief qed_vf_pf_vport_stop - stop the VF's vport
818 * @return enum _qed_status
820 int qed_vf_pf_vport_stop(struct qed_hwfn
*p_hwfn
);
822 int qed_vf_pf_filter_ucast(struct qed_hwfn
*p_hwfn
,
823 struct qed_filter_ucast
*p_param
);
825 void qed_vf_pf_filter_mcast(struct qed_hwfn
*p_hwfn
,
826 struct qed_filter_mcast
*p_filter_cmd
);
829 * @brief qed_vf_pf_int_cleanup - clean the SB of the VF
833 * @return enum _qed_status
835 int qed_vf_pf_int_cleanup(struct qed_hwfn
*p_hwfn
);
838 * @brief - return the link params in a given bulletin board
841 * @param p_params - pointer to a struct to fill with link params
844 void __qed_vf_get_link_params(struct qed_hwfn
*p_hwfn
,
845 struct qed_mcp_link_params
*p_params
,
846 struct qed_bulletin_content
*p_bulletin
);
849 * @brief - return the link state in a given bulletin board
852 * @param p_link - pointer to a struct to fill with link state
855 void __qed_vf_get_link_state(struct qed_hwfn
*p_hwfn
,
856 struct qed_mcp_link_state
*p_link
,
857 struct qed_bulletin_content
*p_bulletin
);
860 * @brief - return the link capabilities in a given bulletin board
863 * @param p_link - pointer to a struct to fill with link capabilities
866 void __qed_vf_get_link_caps(struct qed_hwfn
*p_hwfn
,
867 struct qed_mcp_link_capabilities
*p_link_caps
,
868 struct qed_bulletin_content
*p_bulletin
);
870 void qed_iov_vf_task(struct work_struct
*work
);
872 static inline void qed_vf_get_link_params(struct qed_hwfn
*p_hwfn
,
873 struct qed_mcp_link_params
*params
)
877 static inline void qed_vf_get_link_state(struct qed_hwfn
*p_hwfn
,
878 struct qed_mcp_link_state
*link
)
883 qed_vf_get_link_caps(struct qed_hwfn
*p_hwfn
,
884 struct qed_mcp_link_capabilities
*p_link_caps
)
888 static inline void qed_vf_get_num_rxqs(struct qed_hwfn
*p_hwfn
, u8
*num_rxqs
)
892 static inline void qed_vf_get_port_mac(struct qed_hwfn
*p_hwfn
, u8
*port_mac
)
896 static inline void qed_vf_get_num_vlan_filters(struct qed_hwfn
*p_hwfn
,
897 u8
*num_vlan_filters
)
901 static inline void qed_vf_get_num_mac_filters(struct qed_hwfn
*p_hwfn
,
906 static inline bool qed_vf_check_mac(struct qed_hwfn
*p_hwfn
, u8
*mac
)
911 static inline void qed_vf_get_fw_version(struct qed_hwfn
*p_hwfn
,
912 u16
*fw_major
, u16
*fw_minor
,
913 u16
*fw_rev
, u16
*fw_eng
)
917 static inline int qed_vf_hw_prepare(struct qed_hwfn
*p_hwfn
)
922 static inline int qed_vf_pf_rxq_start(struct qed_hwfn
*p_hwfn
,
923 struct qed_queue_cid
*p_cid
,
925 dma_addr_t bd_chain_phys_adr
,
926 dma_addr_t cqe_pbl_addr
,
927 u16 cqe_pbl_size
, void __iomem
**pp_prod
)
932 static inline int qed_vf_pf_txq_start(struct qed_hwfn
*p_hwfn
,
933 struct qed_queue_cid
*p_cid
,
935 u16 pbl_size
, void __iomem
**pp_doorbell
)
940 static inline int qed_vf_pf_rxq_stop(struct qed_hwfn
*p_hwfn
,
941 struct qed_queue_cid
*p_cid
,
947 static inline int qed_vf_pf_txq_stop(struct qed_hwfn
*p_hwfn
,
948 struct qed_queue_cid
*p_cid
)
954 qed_vf_pf_vport_update(struct qed_hwfn
*p_hwfn
,
955 struct qed_sp_vport_update_params
*p_params
)
960 static inline int qed_vf_pf_reset(struct qed_hwfn
*p_hwfn
)
965 static inline int qed_vf_pf_release(struct qed_hwfn
*p_hwfn
)
970 static inline u16
qed_vf_get_igu_sb_id(struct qed_hwfn
*p_hwfn
, u16 sb_id
)
975 static inline int qed_vf_pf_vport_start(struct qed_hwfn
*p_hwfn
,
978 u8 inner_vlan_removal
,
979 enum qed_tpa_mode tpa_mode
,
980 u8 max_buffers_per_cqe
,
986 static inline int qed_vf_pf_vport_stop(struct qed_hwfn
*p_hwfn
)
991 static inline int qed_vf_pf_filter_ucast(struct qed_hwfn
*p_hwfn
,
992 struct qed_filter_ucast
*p_param
)
997 static inline void qed_vf_pf_filter_mcast(struct qed_hwfn
*p_hwfn
,
998 struct qed_filter_mcast
*p_filter_cmd
)
1002 static inline int qed_vf_pf_int_cleanup(struct qed_hwfn
*p_hwfn
)
1007 static inline void __qed_vf_get_link_params(struct qed_hwfn
*p_hwfn
,
1008 struct qed_mcp_link_params
1010 struct qed_bulletin_content
1015 static inline void __qed_vf_get_link_state(struct qed_hwfn
*p_hwfn
,
1016 struct qed_mcp_link_state
*p_link
,
1017 struct qed_bulletin_content
1023 __qed_vf_get_link_caps(struct qed_hwfn
*p_hwfn
,
1024 struct qed_mcp_link_capabilities
*p_link_caps
,
1025 struct qed_bulletin_content
*p_bulletin
)
1029 static inline void qed_iov_vf_task(struct work_struct
*work
)