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

Function ixgbe_reta_reg_get

dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:7450–7467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7448}
7449
7450uint32_t
7451ixgbe_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
7469uint32_t
7470ixgbe_mrqc_reg_get(enum ixgbe_mac_type mac_type) {

Callers 4

ixgbe_dev_rss_reta_queryFunction · 0.85
ixgbe_rss_configureFunction · 0.85
ixgbe_config_rss_filterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected