Update Redirection Table(RETA) of Receive Side Scaling of Ethernet device */
| 1591 | |
| 1592 | /* Update Redirection Table(RETA) of Receive Side Scaling of Ethernet device */ |
| 1593 | int |
| 1594 | nfp_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. */ |
| 1622 | int |
nothing calls this directly
no test coverage detected