ipsec: remove dependency on DPDK > 0
[vpp.git] / dpdk / dpdk-16.04_patches / 0031-enic-fix-bug-introduced-with-scatter-rx.patch
1 commit f0ca43396ebeb85228f9737a52caa68fc06aa9ee
2 Author: Nelson Escobar <neescoba@cisco.com>
3 Date:   Mon Jun 13 17:24:41 2016 -0700
4
5     enic: fix bug introduced with scatter rx
6     
7     We did not properly set the rq pointers we pass up to dpdk when
8     rx scatter was introduced.  This resulted in segfaults whenever
9     more than one rq was being used.
10
11 diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c
12 index e5b84e1..66fddb1 100644
13 --- a/drivers/net/enic/enic_ethdev.c
14 +++ b/drivers/net/enic/enic_ethdev.c
15 @@ -279,7 +279,8 @@ static int enicpmd_dev_rx_queue_setup(struct rte_eth_dev *eth_dev,
16                 return -EINVAL;
17         }
18  
19 -       eth_dev->data->rx_queues[queue_idx] = (void *)&enic->rq[queue_idx];
20 +       eth_dev->data->rx_queues[queue_idx] =
21 +               (void *)&enic->rq[enic_sop_rq(enic, queue_idx)];
22  
23         ret = enic_alloc_rq(enic, queue_idx, socket_id, mp, nb_desc);
24         if (ret) {