1316485Sdavidcs/* 2316485Sdavidcs * Copyright (c) 2017-2018 Cavium, Inc. 3316485Sdavidcs * All rights reserved. 4316485Sdavidcs * 5316485Sdavidcs * Redistribution and use in source and binary forms, with or without 6316485Sdavidcs * modification, are permitted provided that the following conditions 7316485Sdavidcs * are met: 8316485Sdavidcs * 9316485Sdavidcs * 1. Redistributions of source code must retain the above copyright 10316485Sdavidcs * notice, this list of conditions and the following disclaimer. 11316485Sdavidcs * 2. Redistributions in binary form must reproduce the above copyright 12316485Sdavidcs * notice, this list of conditions and the following disclaimer in the 13316485Sdavidcs * documentation and/or other materials provided with the distribution. 14316485Sdavidcs * 15316485Sdavidcs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16316485Sdavidcs * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17316485Sdavidcs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18316485Sdavidcs * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 19316485Sdavidcs * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20316485Sdavidcs * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21316485Sdavidcs * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22316485Sdavidcs * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23316485Sdavidcs * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24316485Sdavidcs * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25316485Sdavidcs * POSSIBILITY OF SUCH DAMAGE. 26316485Sdavidcs * 27316485Sdavidcs * $FreeBSD: stable/11/sys/dev/qlnx/qlnxe/ecore_vf.h 337517 2018-08-09 01:17:35Z davidcs $ 28316485Sdavidcs * 29316485Sdavidcs */ 30316485Sdavidcs 31316485Sdavidcs#ifndef __ECORE_VF_H__ 32316485Sdavidcs#define __ECORE_VF_H__ 33316485Sdavidcs 34316485Sdavidcs#include "ecore_status.h" 35316485Sdavidcs#include "ecore_vf_api.h" 36316485Sdavidcs#include "ecore_l2_api.h" 37316485Sdavidcs#include "ecore_vfpf_if.h" 38316485Sdavidcs 39316485Sdavidcs/* Default number of CIDs [total of both Rx and Tx] to be requested 40337517Sdavidcs * by default, and maximum possible number. 41316485Sdavidcs */ 42316485Sdavidcs#define ECORE_ETH_VF_DEFAULT_NUM_CIDS (32) 43337517Sdavidcs#define ECORE_ETH_VF_MAX_NUM_CIDS (255) 44316485Sdavidcs 45316485Sdavidcs/* This data is held in the ecore_hwfn structure for VFs only. */ 46316485Sdavidcsstruct ecore_vf_iov { 47316485Sdavidcs union vfpf_tlvs *vf2pf_request; 48316485Sdavidcs dma_addr_t vf2pf_request_phys; 49316485Sdavidcs union pfvf_tlvs *pf2vf_reply; 50316485Sdavidcs dma_addr_t pf2vf_reply_phys; 51316485Sdavidcs 52316485Sdavidcs /* Should be taken whenever the mailbox buffers are accessed */ 53316485Sdavidcs osal_mutex_t mutex; 54316485Sdavidcs u8 *offset; 55316485Sdavidcs 56316485Sdavidcs /* Bulletin Board */ 57316485Sdavidcs struct ecore_bulletin bulletin; 58316485Sdavidcs struct ecore_bulletin_content bulletin_shadow; 59316485Sdavidcs 60316485Sdavidcs /* we set aside a copy of the acquire response */ 61316485Sdavidcs struct pfvf_acquire_resp_tlv acquire_resp; 62316485Sdavidcs 63316485Sdavidcs /* In case PF originates prior to the fp-hsi version comparison, 64316485Sdavidcs * this has to be propagated as it affects the fastpath. 65316485Sdavidcs */ 66316485Sdavidcs bool b_pre_fp_hsi; 67316485Sdavidcs 68316485Sdavidcs /* Current day VFs are passing the SBs physical address on vport 69316485Sdavidcs * start, and as they lack an IGU mapping they need to store the 70316485Sdavidcs * addresses of previously registered SBs. 71316485Sdavidcs * Even if we were to change configuration flow, due to backward 72320164Sdavidcs * compatability [with older PFs] we'd still need to store these. 73316485Sdavidcs */ 74316485Sdavidcs struct ecore_sb_info *sbs_info[PFVF_MAX_SBS_PER_VF]; 75337517Sdavidcs 76337517Sdavidcs#ifdef CONFIG_ECORE_SW_CHANNEL 77337517Sdavidcs /* Would be set if the VF is to try communicating with it PF 78337517Sdavidcs * using a hw channel. 79337517Sdavidcs */ 80337517Sdavidcs bool b_hw_channel; 81337517Sdavidcs#endif 82337517Sdavidcs 83337517Sdavidcs /* Determines whether VF utilizes doorbells via limited register 84337517Sdavidcs * bar or via the doorbell bar. 85337517Sdavidcs */ 86337517Sdavidcs bool b_doorbell_bar; 87316485Sdavidcs}; 88316485Sdavidcs 89316485Sdavidcs/** 90337517Sdavidcs * @brief VF - Get coalesce per VF's relative queue. 91337517Sdavidcs * 92337517Sdavidcs * @param p_hwfn 93337517Sdavidcs * @param p_coal - coalesce value in micro second for VF queues. 94337517Sdavidcs * @param p_cid - queue cid 95337517Sdavidcs * 96337517Sdavidcs **/ 97337517Sdavidcsenum _ecore_status_t ecore_vf_pf_get_coalesce(struct ecore_hwfn *p_hwfn, 98337517Sdavidcs u16 *p_coal, 99337517Sdavidcs struct ecore_queue_cid *p_cid); 100337517Sdavidcs/** 101316485Sdavidcs * @brief VF - Set Rx/Tx coalesce per VF's relative queue. 102337517Sdavidcs * Coalesce value '0' will omit the configuration. 103316485Sdavidcs * 104337517Sdavidcs * @param p_hwfn 105337517Sdavidcs * @param rx_coal - coalesce value in micro second for rx queue 106337517Sdavidcs * @param tx_coal - coalesce value in micro second for tx queue 107337517Sdavidcs * @param p_cid - queue cid 108316485Sdavidcs * 109316485Sdavidcs **/ 110316485Sdavidcsenum _ecore_status_t ecore_vf_pf_set_coalesce(struct ecore_hwfn *p_hwfn, 111316485Sdavidcs u16 rx_coal, u16 tx_coal, 112316485Sdavidcs struct ecore_queue_cid *p_cid); 113316485Sdavidcs 114316485Sdavidcs#ifdef CONFIG_ECORE_SRIOV 115316485Sdavidcs/** 116316485Sdavidcs * @brief hw preparation for VF 117316485Sdavidcs * sends ACQUIRE message 118316485Sdavidcs * 119316485Sdavidcs * @param p_hwfn 120316485Sdavidcs * 121316485Sdavidcs * @return enum _ecore_status_t 122316485Sdavidcs */ 123316485Sdavidcsenum _ecore_status_t ecore_vf_hw_prepare(struct ecore_hwfn *p_hwfn); 124316485Sdavidcs 125316485Sdavidcs/** 126316485Sdavidcs * @brief VF - start the RX Queue by sending a message to the PF 127316485Sdavidcs * 128316485Sdavidcs * @param p_hwfn 129316485Sdavidcs * @param p_cid - Only relative fields are relevant 130316485Sdavidcs * @param bd_max_bytes - maximum number of bytes per bd 131316485Sdavidcs * @param bd_chain_phys_addr - physical address of bd chain 132316485Sdavidcs * @param cqe_pbl_addr - physical address of pbl 133316485Sdavidcs * @param cqe_pbl_size - pbl size 134316485Sdavidcs * @param pp_prod - pointer to the producer to be 135316485Sdavidcs * used in fasthpath 136316485Sdavidcs * 137316485Sdavidcs * @return enum _ecore_status_t 138316485Sdavidcs */ 139316485Sdavidcsenum _ecore_status_t ecore_vf_pf_rxq_start(struct ecore_hwfn *p_hwfn, 140316485Sdavidcs struct ecore_queue_cid *p_cid, 141316485Sdavidcs u16 bd_max_bytes, 142316485Sdavidcs dma_addr_t bd_chain_phys_addr, 143316485Sdavidcs dma_addr_t cqe_pbl_addr, 144316485Sdavidcs u16 cqe_pbl_size, 145316485Sdavidcs void OSAL_IOMEM **pp_prod); 146316485Sdavidcs 147316485Sdavidcs/** 148316485Sdavidcs * @brief VF - start the TX queue by sending a message to the 149316485Sdavidcs * PF. 150316485Sdavidcs * 151316485Sdavidcs * @param p_hwfn 152316485Sdavidcs * @param p_cid 153316485Sdavidcs * @param bd_chain_phys_addr - physical address of tx chain 154316485Sdavidcs * @param pp_doorbell - pointer to address to which to 155316485Sdavidcs * write the doorbell too.. 156316485Sdavidcs * 157316485Sdavidcs * @return enum _ecore_status_t 158316485Sdavidcs */ 159316485Sdavidcsenum _ecore_status_t 160316485Sdavidcsecore_vf_pf_txq_start(struct ecore_hwfn *p_hwfn, 161316485Sdavidcs struct ecore_queue_cid *p_cid, 162316485Sdavidcs dma_addr_t pbl_addr, u16 pbl_size, 163316485Sdavidcs void OSAL_IOMEM **pp_doorbell); 164316485Sdavidcs 165316485Sdavidcs/** 166316485Sdavidcs * @brief VF - stop the RX queue by sending a message to the PF 167316485Sdavidcs * 168316485Sdavidcs * @param p_hwfn 169316485Sdavidcs * @param p_cid 170316485Sdavidcs * @param cqe_completion 171316485Sdavidcs * 172316485Sdavidcs * @return enum _ecore_status_t 173316485Sdavidcs */ 174316485Sdavidcsenum _ecore_status_t ecore_vf_pf_rxq_stop(struct ecore_hwfn *p_hwfn, 175316485Sdavidcs struct ecore_queue_cid *p_cid, 176316485Sdavidcs bool cqe_completion); 177316485Sdavidcs 178316485Sdavidcs/** 179316485Sdavidcs * @brief VF - stop the TX queue by sending a message to the PF 180316485Sdavidcs * 181316485Sdavidcs * @param p_hwfn 182316485Sdavidcs * @param p_cid 183316485Sdavidcs * 184316485Sdavidcs * @return enum _ecore_status_t 185316485Sdavidcs */ 186316485Sdavidcsenum _ecore_status_t ecore_vf_pf_txq_stop(struct ecore_hwfn *p_hwfn, 187316485Sdavidcs struct ecore_queue_cid *p_cid); 188316485Sdavidcs 189316485Sdavidcs/* TODO - fix all the !SRIOV prototypes */ 190316485Sdavidcs 191320164Sdavidcs#ifndef LINUX_REMOVE 192316485Sdavidcs/** 193316485Sdavidcs * @brief VF - update the RX queue by sending a message to the 194316485Sdavidcs * PF 195316485Sdavidcs * 196316485Sdavidcs * @param p_hwfn 197316485Sdavidcs * @param pp_cid - list of queue-cids which we want to update 198316485Sdavidcs * @param num_rxqs 199316485Sdavidcs * @param comp_cqe_flg 200316485Sdavidcs * @param comp_event_flg 201316485Sdavidcs * 202316485Sdavidcs * @return enum _ecore_status_t 203316485Sdavidcs */ 204316485Sdavidcsenum _ecore_status_t ecore_vf_pf_rxqs_update(struct ecore_hwfn *p_hwfn, 205316485Sdavidcs struct ecore_queue_cid **pp_cid, 206316485Sdavidcs u8 num_rxqs, 207316485Sdavidcs u8 comp_cqe_flg, 208316485Sdavidcs u8 comp_event_flg); 209320164Sdavidcs#endif 210316485Sdavidcs 211316485Sdavidcs/** 212316485Sdavidcs * @brief VF - send a vport update command 213316485Sdavidcs * 214316485Sdavidcs * @param p_hwfn 215316485Sdavidcs * @param params 216316485Sdavidcs * 217316485Sdavidcs * @return enum _ecore_status_t 218316485Sdavidcs */ 219316485Sdavidcsenum _ecore_status_t ecore_vf_pf_vport_update(struct ecore_hwfn *p_hwfn, 220316485Sdavidcs struct ecore_sp_vport_update_params *p_params); 221316485Sdavidcs 222316485Sdavidcs/** 223316485Sdavidcs * @brief VF - send a close message to PF 224316485Sdavidcs * 225316485Sdavidcs * @param p_hwfn 226316485Sdavidcs * 227316485Sdavidcs * @return enum _ecore_status 228316485Sdavidcs */ 229316485Sdavidcsenum _ecore_status_t ecore_vf_pf_reset(struct ecore_hwfn *p_hwfn); 230316485Sdavidcs 231316485Sdavidcs/** 232316485Sdavidcs * @brief VF - free vf`s memories 233316485Sdavidcs * 234316485Sdavidcs * @param p_hwfn 235316485Sdavidcs * 236316485Sdavidcs * @return enum _ecore_status 237316485Sdavidcs */ 238316485Sdavidcsenum _ecore_status_t ecore_vf_pf_release(struct ecore_hwfn *p_hwfn); 239316485Sdavidcs 240316485Sdavidcs/** 241316485Sdavidcs * @brief ecore_vf_get_igu_sb_id - Get the IGU SB ID for a given 242316485Sdavidcs * sb_id. For VFs igu sbs don't have to be contiguous 243316485Sdavidcs * 244316485Sdavidcs * @param p_hwfn 245316485Sdavidcs * @param sb_id 246316485Sdavidcs * 247316485Sdavidcs * @return INLINE u16 248316485Sdavidcs */ 249316485Sdavidcsu16 ecore_vf_get_igu_sb_id(struct ecore_hwfn *p_hwfn, 250316485Sdavidcs u16 sb_id); 251316485Sdavidcs 252316485Sdavidcs/** 253316485Sdavidcs * @brief Stores [or removes] a configured sb_info. 254316485Sdavidcs * 255316485Sdavidcs * @param p_hwfn 256316485Sdavidcs * @param sb_id - zero-based SB index [for fastpath] 257316485Sdavidcs * @param sb_info - may be OSAL_NULL [during removal]. 258316485Sdavidcs */ 259316485Sdavidcsvoid ecore_vf_set_sb_info(struct ecore_hwfn *p_hwfn, 260316485Sdavidcs u16 sb_id, struct ecore_sb_info *p_sb); 261316485Sdavidcs 262316485Sdavidcs/** 263316485Sdavidcs * @brief ecore_vf_pf_vport_start - perform vport start for VF. 264316485Sdavidcs * 265316485Sdavidcs * @param p_hwfn 266316485Sdavidcs * @param vport_id 267316485Sdavidcs * @param mtu 268316485Sdavidcs * @param inner_vlan_removal 269316485Sdavidcs * @param tpa_mode 270316485Sdavidcs * @param max_buffers_per_cqe, 271316485Sdavidcs * @param only_untagged - default behavior regarding vlan acceptance 272337517Sdavidcs * @param zero_placement_offset - if set, zero padding will be inserted 273316485Sdavidcs * 274316485Sdavidcs * @return enum _ecore_status 275316485Sdavidcs */ 276316485Sdavidcsenum _ecore_status_t ecore_vf_pf_vport_start( 277316485Sdavidcs struct ecore_hwfn *p_hwfn, 278316485Sdavidcs u8 vport_id, 279316485Sdavidcs u16 mtu, 280316485Sdavidcs u8 inner_vlan_removal, 281316485Sdavidcs enum ecore_tpa_mode tpa_mode, 282316485Sdavidcs u8 max_buffers_per_cqe, 283337517Sdavidcs u8 only_untagged, 284337517Sdavidcs u8 zero_placement_offset); 285316485Sdavidcs 286316485Sdavidcs/** 287316485Sdavidcs * @brief ecore_vf_pf_vport_stop - stop the VF's vport 288316485Sdavidcs * 289316485Sdavidcs * @param p_hwfn 290316485Sdavidcs * 291316485Sdavidcs * @return enum _ecore_status 292316485Sdavidcs */ 293316485Sdavidcsenum _ecore_status_t ecore_vf_pf_vport_stop(struct ecore_hwfn *p_hwfn); 294316485Sdavidcs 295316485Sdavidcsenum _ecore_status_t ecore_vf_pf_filter_ucast( 296316485Sdavidcs struct ecore_hwfn *p_hwfn, 297316485Sdavidcs struct ecore_filter_ucast *p_param); 298316485Sdavidcs 299316485Sdavidcsvoid ecore_vf_pf_filter_mcast(struct ecore_hwfn *p_hwfn, 300316485Sdavidcs struct ecore_filter_mcast *p_filter_cmd); 301316485Sdavidcs 302316485Sdavidcs/** 303316485Sdavidcs * @brief ecore_vf_pf_int_cleanup - clean the SB of the VF 304316485Sdavidcs * 305316485Sdavidcs * @param p_hwfn 306316485Sdavidcs * 307316485Sdavidcs * @return enum _ecore_status 308316485Sdavidcs */ 309316485Sdavidcsenum _ecore_status_t ecore_vf_pf_int_cleanup(struct ecore_hwfn *p_hwfn); 310316485Sdavidcs 311316485Sdavidcs/** 312316485Sdavidcs * @brief - return the link params in a given bulletin board 313316485Sdavidcs * 314316485Sdavidcs * @param p_params - pointer to a struct to fill with link params 315316485Sdavidcs * @param p_bulletin 316316485Sdavidcs */ 317320164Sdavidcsvoid __ecore_vf_get_link_params(struct ecore_mcp_link_params *p_params, 318316485Sdavidcs struct ecore_bulletin_content *p_bulletin); 319316485Sdavidcs 320316485Sdavidcs/** 321316485Sdavidcs * @brief - return the link state in a given bulletin board 322316485Sdavidcs * 323316485Sdavidcs * @param p_link - pointer to a struct to fill with link state 324316485Sdavidcs * @param p_bulletin 325316485Sdavidcs */ 326320164Sdavidcsvoid __ecore_vf_get_link_state(struct ecore_mcp_link_state *p_link, 327316485Sdavidcs struct ecore_bulletin_content *p_bulletin); 328316485Sdavidcs 329316485Sdavidcs/** 330316485Sdavidcs * @brief - return the link capabilities in a given bulletin board 331316485Sdavidcs * 332316485Sdavidcs * @param p_link - pointer to a struct to fill with link capabilities 333316485Sdavidcs * @param p_bulletin 334316485Sdavidcs */ 335320164Sdavidcsvoid __ecore_vf_get_link_caps(struct ecore_mcp_link_capabilities *p_link_caps, 336316485Sdavidcs struct ecore_bulletin_content *p_bulletin); 337316485Sdavidcsenum _ecore_status_t 338316485Sdavidcsecore_vf_pf_tunnel_param_update(struct ecore_hwfn *p_hwfn, 339316485Sdavidcs struct ecore_tunnel_info *p_tunn); 340316485Sdavidcsvoid ecore_vf_set_vf_start_tunn_update_param(struct ecore_tunnel_info *p_tun); 341337517Sdavidcs 342337517Sdavidcsu32 ecore_vf_hw_bar_size(struct ecore_hwfn *p_hwfn, enum BAR_ID bar_id); 343316485Sdavidcs#else 344320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_hw_prepare(struct ecore_hwfn OSAL_UNUSED *p_hwfn) {return ECORE_INVAL;} 345320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_rxq_start(struct ecore_hwfn OSAL_UNUSED *p_hwfn, struct ecore_queue_cid OSAL_UNUSED *p_cid, u16 OSAL_UNUSED bd_max_bytes, dma_addr_t OSAL_UNUSED bd_chain_phys_addr, dma_addr_t OSAL_UNUSED cqe_pbl_addr, u16 OSAL_UNUSED cqe_pbl_size, void OSAL_IOMEM OSAL_UNUSED **pp_prod) {return ECORE_INVAL;} 346320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_txq_start(struct ecore_hwfn OSAL_UNUSED *p_hwfn, struct ecore_queue_cid OSAL_UNUSED *p_cid, dma_addr_t OSAL_UNUSED pbl_addr, u16 OSAL_UNUSED pbl_size, void OSAL_IOMEM OSAL_UNUSED **pp_doorbell) {return ECORE_INVAL;} 347316485Sdavidcs 348320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_rxq_stop(struct ecore_hwfn OSAL_UNUSED *p_hwfn, struct ecore_queue_cid OSAL_UNUSED *p_cid, bool OSAL_UNUSED cqe_completion) {return ECORE_INVAL;} 349320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_txq_stop(struct ecore_hwfn OSAL_UNUSED *p_hwfn, struct ecore_queue_cid OSAL_UNUSED *p_cid) {return ECORE_INVAL;} 350320164Sdavidcs#ifndef LINUX_REMOVE 351320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_rxqs_update(struct ecore_hwfn OSAL_UNUSED *p_hwfn, struct ecore_queue_cid OSAL_UNUSED **pp_cid, u8 OSAL_UNUSED num_rxqs, u8 OSAL_UNUSED comp_cqe_flg, u8 OSAL_UNUSED comp_event_flg) {return ECORE_INVAL;} 352320164Sdavidcs#endif 353320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_vport_update(struct ecore_hwfn OSAL_UNUSED *p_hwfn, struct ecore_sp_vport_update_params OSAL_UNUSED *p_params) {return ECORE_INVAL;} 354320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_reset(struct ecore_hwfn OSAL_UNUSED *p_hwfn) {return ECORE_INVAL;} 355320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_release(struct ecore_hwfn OSAL_UNUSED *p_hwfn) {return ECORE_INVAL;} 356320164Sdavidcsstatic OSAL_INLINE u16 ecore_vf_get_igu_sb_id(struct ecore_hwfn OSAL_UNUSED *p_hwfn, u16 OSAL_UNUSED sb_id) {return 0;} 357320164Sdavidcsstatic OSAL_INLINE void ecore_vf_set_sb_info(struct ecore_hwfn OSAL_UNUSED *p_hwfn, u16 OSAL_UNUSED sb_id, struct ecore_sb_info OSAL_UNUSED *p_sb) {} 358316485Sdavidcs 359337517Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_vport_start(struct ecore_hwfn OSAL_UNUSED *p_hwfn, u8 OSAL_UNUSED vport_id, u16 OSAL_UNUSED mtu, u8 OSAL_UNUSED inner_vlan_removal, enum ecore_tpa_mode OSAL_UNUSED tpa_mode, u8 OSAL_UNUSED max_buffers_per_cqe, u8 OSAL_UNUSED only_untagged, u8 OSAL_UNUSED zero_placement_offset) {return ECORE_INVAL;} 360320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_vport_stop(struct ecore_hwfn OSAL_UNUSED *p_hwfn) {return ECORE_INVAL;} 361320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_filter_ucast(struct ecore_hwfn OSAL_UNUSED *p_hwfn, struct ecore_filter_ucast OSAL_UNUSED *p_param) {return ECORE_INVAL;} 362320164Sdavidcsstatic OSAL_INLINE void ecore_vf_pf_filter_mcast(struct ecore_hwfn OSAL_UNUSED *p_hwfn, struct ecore_filter_mcast OSAL_UNUSED *p_filter_cmd) {} 363320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_int_cleanup(struct ecore_hwfn OSAL_UNUSED *p_hwfn) {return ECORE_INVAL;} 364337517Sdavidcsstatic OSAL_INLINE void __ecore_vf_get_link_params(struct ecore_mcp_link_params OSAL_UNUSED *p_params, struct ecore_bulletin_content OSAL_UNUSED *p_bulletin) {} 365337517Sdavidcsstatic OSAL_INLINE void __ecore_vf_get_link_state(struct ecore_mcp_link_state OSAL_UNUSED *p_link, struct ecore_bulletin_content OSAL_UNUSED *p_bulletin) {} 366337517Sdavidcsstatic OSAL_INLINE void __ecore_vf_get_link_caps(struct ecore_mcp_link_capabilities OSAL_UNUSED *p_link_caps, struct ecore_bulletin_content OSAL_UNUSED *p_bulletin) {} 367320164Sdavidcsstatic OSAL_INLINE enum _ecore_status_t ecore_vf_pf_tunnel_param_update(struct ecore_hwfn OSAL_UNUSED *p_hwfn, struct ecore_tunnel_info OSAL_UNUSED *p_tunn) { return ECORE_INVAL; } 368320164Sdavidcsstatic OSAL_INLINE void ecore_vf_set_vf_start_tunn_update_param(struct ecore_tunnel_info OSAL_UNUSED *p_tun) { return; } 369337517Sdavidcs 370337517Sdavidcsstatic OSAL_INLINE u32 371337517Sdavidcsecore_vf_hw_bar_size(struct ecore_hwfn OSAL_UNUSED *p_hwfn, 372337517Sdavidcs enum BAR_ID OSAL_UNUSED bar_id) 373337517Sdavidcs{ 374337517Sdavidcs return 0; 375337517Sdavidcs} 376316485Sdavidcs#endif 377316485Sdavidcs 378316485Sdavidcs#endif /* __ECORE_VF_H__ */ 379