[dpdk-dev] net/i40e: fix incorrect packet index reference

Message ID 1488628832-675-1-git-send-email-jerin.jacob@caviumnetworks.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Jerin Jacob March 4, 2017, noon UTC
  Fixes: ae0eb310f253 ("net/i40e: implement vector PMD for ARM")

CC: stable@dpdk.org
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Sunil Kulkarni <sunil.kulkarni@caviumnetworks.com>
---
 drivers/net/i40e/i40e_rxtx_vec_neon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Jianbo Liu March 5, 2017, 5:17 p.m. UTC | #1
On 4 March 2017 at 13:00, Jerin Jacob <jerin.jacob@caviumnetworks.com> wrote:
> Fixes: ae0eb310f253 ("net/i40e: implement vector PMD for ARM")
>
> CC: stable@dpdk.org
> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
> Signed-off-by: Sunil Kulkarni <sunil.kulkarni@caviumnetworks.com>
> ---
>  drivers/net/i40e/i40e_rxtx_vec_neon.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/i40e/i40e_rxtx_vec_neon.c b/drivers/net/i40e/i40e_rxtx_vec_neon.c
> index 011c54e..d235daa 100644
> --- a/drivers/net/i40e/i40e_rxtx_vec_neon.c
> +++ b/drivers/net/i40e/i40e_rxtx_vec_neon.c
> @@ -205,7 +205,7 @@ desc_to_ptype_v(uint64x2_t descs[4], struct rte_mbuf **rx_pkts)
>         for (i = 0; i < 4; i++) {
>                 tmp = vreinterpretq_u8_u64(vshrq_n_u64(descs[i], 30));
>                 ptype = vgetq_lane_u8(tmp, 8);
> -               rx_pkts[0]->packet_type = i40e_rxd_pkt_type_mapping(ptype);
> +               rx_pkts[i]->packet_type = i40e_rxd_pkt_type_mapping(ptype);
>         }
>
>  }

Acked-by: Jianbo Liu <jianbo.liu@linaro.org>
  
Ferruh Yigit March 8, 2017, 4:28 p.m. UTC | #2
On 3/5/2017 5:17 PM, Jianbo Liu wrote:
> On 4 March 2017 at 13:00, Jerin Jacob <jerin.jacob@caviumnetworks.com> wrote:
>> Fixes: ae0eb310f253 ("net/i40e: implement vector PMD for ARM")
>>
>> CC: stable@dpdk.org
>> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
>> Signed-off-by: Sunil Kulkarni <sunil.kulkarni@caviumnetworks.com>

> Acked-by: Jianbo Liu <jianbo.liu@linaro.org>

Applied to dpdk-next-net/master, thanks.
  

Patch

diff --git a/drivers/net/i40e/i40e_rxtx_vec_neon.c b/drivers/net/i40e/i40e_rxtx_vec_neon.c
index 011c54e..d235daa 100644
--- a/drivers/net/i40e/i40e_rxtx_vec_neon.c
+++ b/drivers/net/i40e/i40e_rxtx_vec_neon.c
@@ -205,7 +205,7 @@  desc_to_ptype_v(uint64x2_t descs[4], struct rte_mbuf **rx_pkts)
 	for (i = 0; i < 4; i++) {
 		tmp = vreinterpretq_u8_u64(vshrq_n_u64(descs[i], 30));
 		ptype = vgetq_lane_u8(tmp, 8);
-		rx_pkts[0]->packet_type = i40e_rxd_pkt_type_mapping(ptype);
+		rx_pkts[i]->packet_type = i40e_rxd_pkt_type_mapping(ptype);
 	}
 
 }