MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ixgbe_init_ops_vf

Function ixgbe_init_ops_vf

dpdk/drivers/net/ixgbe/base/ixgbe_vf.c:22–59  ·  view source on GitHub ↗

* ixgbe_init_ops_vf - Initialize the pointers for vf * @hw: pointer to hardware structure * * This will assign function pointers, adapter-specific functions can * override the assignment of generic function pointers by assigning * their own adapter-specific function pointers. * Does not touch the hardware. **/

Source from the content-addressed store, hash-verified

20 * Does not touch the hardware.
21 **/
22s32 ixgbe_init_ops_vf(struct ixgbe_hw *hw)
23{
24 /* MAC */
25 hw->mac.ops.init_hw = ixgbe_init_hw_vf;
26 hw->mac.ops.reset_hw = ixgbe_reset_hw_vf;
27 hw->mac.ops.start_hw = ixgbe_start_hw_vf;
28 /* Cannot clear stats on VF */
29 hw->mac.ops.clear_hw_cntrs = NULL;
30 hw->mac.ops.get_media_type = NULL;
31 hw->mac.ops.get_mac_addr = ixgbe_get_mac_addr_vf;
32 hw->mac.ops.stop_adapter = ixgbe_stop_adapter_vf;
33 hw->mac.ops.get_bus_info = NULL;
34 hw->mac.ops.negotiate_api_version = ixgbevf_negotiate_api_version;
35
36 /* Link */
37 hw->mac.ops.setup_link = ixgbe_setup_mac_link_vf;
38 hw->mac.ops.check_link = ixgbe_check_mac_link_vf;
39 hw->mac.ops.get_link_capabilities = NULL;
40
41 /* RAR, Multicast, VLAN */
42 hw->mac.ops.set_rar = ixgbe_set_rar_vf;
43 hw->mac.ops.set_uc_addr = ixgbevf_set_uc_addr_vf;
44 hw->mac.ops.init_rx_addrs = NULL;
45 hw->mac.ops.update_mc_addr_list = ixgbe_update_mc_addr_list_vf;
46 hw->mac.ops.update_xcast_mode = ixgbevf_update_xcast_mode;
47 hw->mac.ops.enable_mc = NULL;
48 hw->mac.ops.disable_mc = NULL;
49 hw->mac.ops.clear_vfta = NULL;
50 hw->mac.ops.set_vfta = ixgbe_set_vfta_vf;
51 hw->mac.ops.set_rlpml = ixgbevf_rlpml_set_vf;
52
53 hw->mac.max_tx_queues = 1;
54 hw->mac.max_rx_queues = 1;
55
56 hw->mbx.ops.init_params = ixgbe_init_mbx_params_vf;
57
58 return IXGBE_SUCCESS;
59}
60
61/* ixgbe_virt_clr_reg - Set register to default (power on) state.
62 * @hw: pointer to hardware structure

Callers 2

ixgbevf_hv_init_ops_vfFunction · 0.85
ixgbe_init_shared_codeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected