| 349 | } |
| 350 | |
| 351 | static inline void |
| 352 | ixgbe_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 | |
| 376 | static inline void |
| 377 | ixgbe_vf_reset_msg(struct rte_eth_dev *dev, uint16_t vf) |
no test coverage detected