patches for DPDK stable branches
 help / color / mirror / Atom feed
* Re: [dpdk-stable] [PATCH] net/mlx5: fix VLAN stripping indication
       [not found] <1487511285-32833-1-git-send-email-shahafs@mellanox.com>
@ 2017-02-20 15:59 ` Nélio Laranjeiro
  0 siblings, 0 replies; 3+ messages in thread
From: Nélio Laranjeiro @ 2017-02-20 15:59 UTC (permalink / raw)
  To: dev, stable; +Cc: Shahaf Shuler, adrien.mazarguil

On Sun, Feb 19, 2017 at 03:34:45PM +0200, Shahaf Shuler wrote:
> The indication on vlan stripping was taken from the wrong location in the
> completion entry.
> 
> Fixes: 9964b965ad69 ("net/mlx5: re-add Rx scatter support")
> CC: stable@dpdk.org
> 
> Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
> ---
>  drivers/net/mlx5/mlx5_rxtx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c
> index 2703765..805aa5a 100644
> --- a/drivers/net/mlx5/mlx5_rxtx.c
> +++ b/drivers/net/mlx5/mlx5_rxtx.c
> @@ -1447,7 +1447,7 @@
>  					pkt->ol_flags |=
>  						rxq_cq_to_ol_flags(rxq, cqe);
>  				}
> -				if (cqe->hdr_type_etc &
> +				if (ntohs(cqe->hdr_type_etc) &
>  				    MLX5_CQE_VLAN_STRIPPED) {
>  					pkt->ol_flags |= PKT_RX_VLAN_PKT |
>  						PKT_RX_VLAN_STRIPPED;
> -- 
> 1.8.3.1
> 

Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>

-- 
Nélio Laranjeiro
6WIND

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [PATCH] net/mlx5: fix VLAN stripping indication
  2017-02-20 11:14 Shahaf Shuler
@ 2017-02-20 16:41 ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2017-02-20 16:41 UTC (permalink / raw)
  To: Shahaf Shuler, adrien.mazarguil, nelio.laranjeiro; +Cc: dev, stable

On 2/20/2017 11:14 AM, Shahaf Shuler wrote:
> The indication on vlan stripping was taken from the wrong location in the
> completion entry.
> 
> Fixes: 9964b965ad69 ("net/mlx5: re-add Rx scatter support")
> CC: stable@dpdk.org
> 
> Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>

Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dpdk-stable] [PATCH] net/mlx5: fix VLAN stripping indication
@ 2017-02-20 11:14 Shahaf Shuler
  2017-02-20 16:41 ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Shahaf Shuler @ 2017-02-20 11:14 UTC (permalink / raw)
  To: adrien.mazarguil, nelio.laranjeiro; +Cc: dev, stable

The indication on vlan stripping was taken from the wrong location in the
completion entry.

Fixes: 9964b965ad69 ("net/mlx5: re-add Rx scatter support")
CC: stable@dpdk.org

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
---
 drivers/net/mlx5/mlx5_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c
index 2703765..805aa5a 100644
--- a/drivers/net/mlx5/mlx5_rxtx.c
+++ b/drivers/net/mlx5/mlx5_rxtx.c
@@ -1447,7 +1447,7 @@
 					pkt->ol_flags |=
 						rxq_cq_to_ol_flags(rxq, cqe);
 				}
-				if (cqe->hdr_type_etc &
+				if (ntohs(cqe->hdr_type_etc) &
 				    MLX5_CQE_VLAN_STRIPPED) {
 					pkt->ol_flags |= PKT_RX_VLAN_PKT |
 						PKT_RX_VLAN_STRIPPED;
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-20 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1487511285-32833-1-git-send-email-shahafs@mellanox.com>
2017-02-20 15:59 ` [dpdk-stable] [PATCH] net/mlx5: fix VLAN stripping indication Nélio Laranjeiro
2017-02-20 11:14 Shahaf Shuler
2017-02-20 16:41 ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).