| 514 | } |
| 515 | |
| 516 | int ena_rss_hash_update(struct rte_eth_dev *dev, |
| 517 | struct rte_eth_rss_conf *rss_conf) |
| 518 | { |
| 519 | struct ena_adapter *adapter = dev->data->dev_private; |
| 520 | int rc; |
| 521 | |
| 522 | rte_spinlock_lock(&adapter->admin_lock); |
| 523 | rc = ena_rss_hash_set(&adapter->ena_dev, rss_conf, false); |
| 524 | rte_spinlock_unlock(&adapter->admin_lock); |
| 525 | if (unlikely(rc != 0)) { |
| 526 | PMD_DRV_LOG(ERR, "Failed to set RSS hash\n"); |
| 527 | return rc; |
| 528 | } |
| 529 | |
| 530 | return 0; |
| 531 | } |
| 532 | |
| 533 | int ena_rss_hash_conf_get(struct rte_eth_dev *dev, |
| 534 | struct rte_eth_rss_conf *rss_conf) |
nothing calls this directly
no test coverage detected