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

Function ixgbe_vf_reset_event

dpdk/drivers/net/ixgbe/ixgbe_pf.c:351–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351static inline void
352ixgbe_vf_reset_event(struct rte_eth_dev *dev, uint16_t vf)
353{
354 struct ixgbe_hw *hw =
355 IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
356 struct ixgbe_vf_info *vfinfo =
357 *(IXGBE_DEV_PRIVATE_TO_P_VFDATA(dev->data->dev_private));
358 int rar_entry = hw->mac.num_rar_entries - (vf + 1);
359 uint32_t vmolr = IXGBE_READ_REG(hw, IXGBE_VMOLR(vf));
360
361 vmolr |= (IXGBE_VMOLR_ROPE |
362 IXGBE_VMOLR_BAM | IXGBE_VMOLR_AUPE);
363 IXGBE_WRITE_REG(hw, IXGBE_VMOLR(vf), vmolr);
364
365 IXGBE_WRITE_REG(hw, IXGBE_VMVIR(vf), 0);
366
367 /* reset multicast table array for vf */
368 vfinfo[vf].num_vf_mc_hashes = 0;
369
370 /* reset rx mode */
371 set_rx_mode(dev);
372
373 hw->mac.ops.clear_rar(hw, rar_entry);
374}
375
376static inline void
377ixgbe_vf_reset_msg(struct rte_eth_dev *dev, uint16_t vf)

Callers 2

ixgbe_vf_reset_msgFunction · 0.85
ixgbe_pf_mbx_processFunction · 0.85

Calls 1

set_rx_modeFunction · 0.70

Tested by

no test coverage detected