summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
context:
space:
mode:
authorOri Kam <orika@mellanox.com>2019-10-30 23:53:19 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-11-08 23:15:04 +0100
commit63bd16292c3a519029a1b451e734b8f4489c2fd3 (patch)
tree7907278c930016beec39ab49e933bae3667b6a1f /drivers/net/mlx5/mlx5_trigger.c
parent6a338ad4f7fe7837e55f4d33b78f255387320adb (diff)
downloaddpdk-63bd16292c3a519029a1b451e734b8f4489c2fd3.zip
dpdk-63bd16292c3a519029a1b451e734b8f4489c2fd3.tar.gz
dpdk-63bd16292c3a519029a1b451e734b8f4489c2fd3.tar.xz
net/mlx5: support RSS on hairpin
Add support for rss on hairpin queues. Signed-off-by: Ori Kam <orika@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_trigger.c')
-rw-r--r--drivers/net/mlx5/mlx5_trigger.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index a4fcdb3..f66b6ee 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -269,6 +269,12 @@ mlx5_dev_start(struct rte_eth_dev *dev)
int ret;
DRV_LOG(DEBUG, "port %u starting device", dev->data->port_id);
+ ret = mlx5_dev_configure_rss_reta(dev);
+ if (ret) {
+ DRV_LOG(ERR, "port %u reta config failed: %s",
+ dev->data->port_id, strerror(rte_errno));
+ return -rte_errno;
+ }
ret = mlx5_txq_start(dev);
if (ret) {
DRV_LOG(ERR, "port %u Tx queue allocation failed: %s",