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

Function sfc_rx_rss_config

dpdk/drivers/net/sfc/sfc_rx.c:1536–1560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1534}
1535
1536static int
1537sfc_rx_rss_config(struct sfc_adapter *sa)
1538{
1539 struct sfc_rss *rss = &sfc_sa2shared(sa)->rss;
1540 int rc = 0;
1541
1542 if (rss->channels > 0) {
1543 rc = efx_rx_scale_mode_set(sa->nic, EFX_RSS_CONTEXT_DEFAULT,
1544 rss->hash_alg, rss->hash_types,
1545 B_TRUE);
1546 if (rc != 0)
1547 goto finish;
1548
1549 rc = efx_rx_scale_key_set(sa->nic, EFX_RSS_CONTEXT_DEFAULT,
1550 rss->key, sizeof(rss->key));
1551 if (rc != 0)
1552 goto finish;
1553
1554 rc = efx_rx_scale_tbl_set(sa->nic, EFX_RSS_CONTEXT_DEFAULT,
1555 rss->tbl, RTE_DIM(rss->tbl));
1556 }
1557
1558finish:
1559 return rc;
1560}
1561
1562struct sfc_rxq_info *
1563sfc_rxq_info_by_ethdev_qid(struct sfc_adapter_shared *sas,

Callers 1

sfc_rx_startFunction · 0.85

Calls 4

sfc_sa2sharedFunction · 0.85
efx_rx_scale_mode_setFunction · 0.85
efx_rx_scale_key_setFunction · 0.85
efx_rx_scale_tbl_setFunction · 0.85

Tested by

no test coverage detected