DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ori Kam <orika@mellanox.com>
To: "Nélio Laranjeiro" <nelio.laranjeiro@6wind.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	"Yongseok Koh" <yskoh@mellanox.com>,
	"Shahaf Shuler" <shahafs@mellanox.com>
Cc: "stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix tci mask filter
Date: Tue, 24 Jul 2018 06:27:07 +0000	[thread overview]
Message-ID: <AM4PR05MB34258DF8500F11780020B8CDDB550@AM4PR05MB3425.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <ea99ac4effbb0ab7ec01de2e068be910936fc1bf.1532330280.git.nelio.laranjeiro@6wind.com>



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Nelio Laranjeiro
> Sent: Monday, July 23, 2018 10:19 AM
> To: dev@dpdk.org; Yongseok Koh <yskoh@mellanox.com>; Shahaf Shuler
> <shahafs@mellanox.com>
> Cc: stable@dpdk.org
> Subject: [dpdk-dev] [PATCH] net/mlx5: fix tci mask filter
> 
> In mlx5_traffic_enable() the TCI mask for the VLAN is wrong causing the
> sub flow engine to reject the rule.
> 
> Fixes: 272733b5ebfd ("net/mlx5: use flow to enable unicast traffic")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
> ---
>  drivers/net/mlx5/mlx5_trigger.c | 10 ++++------
>  1 file changed, 4 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/net/mlx5/mlx5_trigger.c
> b/drivers/net/mlx5/mlx5_trigger.c
> index 4d2078bbd..d02a626ae 100644
> --- a/drivers/net/mlx5/mlx5_trigger.c
> +++ b/drivers/net/mlx5/mlx5_trigger.c
> @@ -300,9 +300,8 @@ mlx5_traffic_enable(struct rte_eth_dev *dev)
>  			struct rte_flow_item_vlan vlan_spec = {
>  				.tci = rte_cpu_to_be_16(vlan),
>  			};
> -			struct rte_flow_item_vlan vlan_mask = {
> -				.tci = 0xffff,
> -			};
> +			struct rte_flow_item_vlan vlan_mask =
> +				rte_flow_item_vlan_mask;
> 
>  			ret = mlx5_ctrl_flow_vlan(dev, &bcast, &bcast,
>  						  &vlan_spec, &vlan_mask);
> @@ -339,9 +338,8 @@ mlx5_traffic_enable(struct rte_eth_dev *dev)
>  			struct rte_flow_item_vlan vlan_spec = {
>  				.tci = rte_cpu_to_be_16(vlan),
>  			};
> -			struct rte_flow_item_vlan vlan_mask = {
> -				.tci = 0xffff,
> -			};
> +			struct rte_flow_item_vlan vlan_mask =
> +				rte_flow_item_vlan_mask;
> 
>  			ret = mlx5_ctrl_flow_vlan(dev, &unicast,
>  						  &unicast_mask,
> --

Acked-by: Ori Kam <orika@mellanox.com>

Thanks,
> 2.18.0

      parent reply	other threads:[~2018-07-24  6:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-23  7:18 Nelio Laranjeiro
2018-07-23 22:38 ` Yongseok Koh
2018-07-24 13:45   ` Shahaf Shuler
2018-07-24  6:27 ` Ori Kam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM4PR05MB34258DF8500F11780020B8CDDB550@AM4PR05MB3425.eurprd05.prod.outlook.com \
    --to=orika@mellanox.com \
    --cc=dev@dpdk.org \
    --cc=nelio.laranjeiro@6wind.com \
    --cc=shahafs@mellanox.com \
    --cc=stable@dpdk.org \
    --cc=yskoh@mellanox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).