summaryrefslogtreecommitdiff
path: root/drivers/net/ena
diff options
context:
space:
mode:
authorRafal Kozik <rk@semihalf.com>2018-12-14 14:18:39 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-12-21 16:22:40 +0100
commiteccbe2ffdc755a9e759c6ba480f6c15ccb1163c7 (patch)
tree68ecd84732e9799d4fa0ada633e351124c7f9fa9 /drivers/net/ena
parentb01ead202beb45346d7daeb2f2b1a608006af644 (diff)
downloaddpdk-next-eventdev-eccbe2ffdc755a9e759c6ba480f6c15ccb1163c7.zip
dpdk-next-eventdev-eccbe2ffdc755a9e759c6ba480f6c15ccb1163c7.tar.gz
dpdk-next-eventdev-eccbe2ffdc755a9e759c6ba480f6c15ccb1163c7.tar.xz
net/ena: fix invalid reference to variable in union
Use empty_rx_reqs instead of empty_tx_reqs. As those two variables are part of union this not cause any failure, but for consistency should be changed. Fixes: c2034976673d ("net/ena: add Rx out of order completion") Cc: stable@dpdk.org Signed-off-by: Rafal Kozik <rk@semihalf.com> Acked-by: Michal Krawczyk <mk@semihalf.com>
Diffstat (limited to 'drivers/net/ena')
-rw-r--r--drivers/net/ena/ena_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index 3aa32a3..1416556 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -1387,7 +1387,7 @@ static int ena_rx_queue_setup(struct rte_eth_dev *dev,
}
for (i = 0; i < nb_desc; i++)
- rxq->empty_tx_reqs[i] = i;
+ rxq->empty_rx_reqs[i] = i;
/* Store pointer to this queue in upper layer */
rxq->configured = 1;