| 7448 | } |
| 7449 | |
| 7450 | uint32_t |
| 7451 | ixgbe_reta_reg_get(enum ixgbe_mac_type mac_type, uint16_t reta_idx) { |
| 7452 | switch (mac_type) { |
| 7453 | case ixgbe_mac_X550: |
| 7454 | case ixgbe_mac_X550EM_x: |
| 7455 | case ixgbe_mac_X550EM_a: |
| 7456 | if (reta_idx < RTE_ETH_RSS_RETA_SIZE_128) |
| 7457 | return IXGBE_RETA(reta_idx >> 2); |
| 7458 | else |
| 7459 | return IXGBE_ERETA((reta_idx - RTE_ETH_RSS_RETA_SIZE_128) >> 2); |
| 7460 | case ixgbe_mac_X550_vf: |
| 7461 | case ixgbe_mac_X550EM_x_vf: |
| 7462 | case ixgbe_mac_X550EM_a_vf: |
| 7463 | return IXGBE_VFRETA(reta_idx >> 2); |
| 7464 | default: |
| 7465 | return IXGBE_RETA(reta_idx >> 2); |
| 7466 | } |
| 7467 | } |
| 7468 | |
| 7469 | uint32_t |
| 7470 | ixgbe_mrqc_reg_get(enum ixgbe_mac_type mac_type) { |
no outgoing calls
no test coverage detected