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

Function reta_set

dpdk/app/test/test_link_bonding_rssconf.c:209–223  ·  view source on GitHub ↗

* Set all RETA values in port_id to value */

Source from the content-addressed store, hash-verified

207 * Set all RETA values in port_id to value
208 */
209static int
210reta_set(uint16_t port_id, uint8_t value, int reta_size)
211{
212 struct rte_eth_rss_reta_entry64 reta_conf[512/RTE_ETH_RETA_GROUP_SIZE];
213 int i, j;
214
215 for (i = 0; i < reta_size / RTE_ETH_RETA_GROUP_SIZE; i++) {
216 /* select all fields to set */
217 reta_conf[i].mask = ~0LL;
218 for (j = 0; j < RTE_ETH_RETA_GROUP_SIZE; j++)
219 reta_conf[i].reta[j] = value;
220 }
221
222 return rte_eth_dev_rss_reta_update(port_id, reta_conf, reta_size);
223}
224
225/**
226 * Check if members RETA is synchronized with bonding port. Returns 1 if member

Callers 3

member_remove_and_addFunction · 0.85
test_propagateFunction · 0.85
test_rss_config_lazyFunction · 0.85

Calls 1

Tested by

no test coverage detected