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

Function nfp_net_reta_update

dpdk/drivers/net/nfp/nfp_net_common.c:1593–1619  ·  view source on GitHub ↗

Update Redirection Table(RETA) of Receive Side Scaling of Ethernet device */

Source from the content-addressed store, hash-verified

1591
1592/* Update Redirection Table(RETA) of Receive Side Scaling of Ethernet device */
1593int
1594nfp_net_reta_update(struct rte_eth_dev *dev,
1595 struct rte_eth_rss_reta_entry64 *reta_conf,
1596 uint16_t reta_size)
1597{
1598 int ret;
1599 uint32_t update;
1600 struct nfp_hw *hw;
1601 struct nfp_net_hw *net_hw;
1602
1603 net_hw = nfp_net_get_hw(dev);
1604 hw = &net_hw->super;
1605
1606 if ((hw->ctrl & NFP_NET_CFG_CTRL_RSS_ANY) == 0)
1607 return -EINVAL;
1608
1609 ret = nfp_net_rss_reta_write(dev, reta_conf, reta_size);
1610 if (ret != 0)
1611 return ret;
1612
1613 update = NFP_NET_CFG_UPDATE_RSS;
1614
1615 if (nfp_reconfig(hw, hw->ctrl, update) != 0)
1616 return -EIO;
1617
1618 return 0;
1619}
1620
1621/* Query Redirection Table(RETA) of Receive Side Scaling of Ethernet device. */
1622int

Callers

nothing calls this directly

Calls 3

nfp_net_get_hwFunction · 0.85
nfp_net_rss_reta_writeFunction · 0.85
nfp_reconfigFunction · 0.85

Tested by

no test coverage detected