patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Yuanhan Liu <yliu@fridaylinux.org>
To: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Cc: stable@dpdk.org, Adrien Mazarguil <adrien.mazarguil@6wind.com>,
	Yongseok Koh <yskoh@mellanox.com>
Subject: Re: [dpdk-stable] [PATCH 1/3] Revert "net/mlx5: fix flow priority on queue action"
Date: Tue, 27 Feb 2018 17:49:46 +0800	[thread overview]
Message-ID: <20180227094946.GH11744@yliu-mob> (raw)
In-Reply-To: <7b8e3cb89da9d10b3afffa2c297a417c59c6d82b.1519724131.git.nelio.laranjeiro@6wind.com>

On Tue, Feb 27, 2018 at 10:36:43AM +0100, Nelio Laranjeiro wrote:
> This patch depends on another one not backported.  For now it should be
> reverted to backport first the one missing and then re-apply this one.
> 
> This reverts commit 0ec3529b056a826cee94104e20dfd3d58d64ab67.

Series Applied to dpdk-stable/17.11.

Thanks for the backporting!

	--yliu

> ---
>  drivers/net/mlx5/mlx5_flow.c | 30 +++++++++++++++++++++++++++++-
>  1 file changed, 29 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
> index 82efddc5a..c18c77d48 100644
> --- a/drivers/net/mlx5/mlx5_flow.c
> +++ b/drivers/net/mlx5/mlx5_flow.c
> @@ -882,6 +882,8 @@ priv_flow_convert_items_validate(struct priv *priv,
>  		}
>  		if (parser->drop) {
>  			parser->drop_q.offset += cur_item->dst_sz;
> +		} else if (parser->queues_n == 1) {
> +			parser->queue[HASH_RXQ_ETH].offset += cur_item->dst_sz;
>  		} else {
>  			for (n = 0; n != hash_rxq_init_n; ++n)
>  				parser->queue[n].offset += cur_item->dst_sz;
> @@ -1124,6 +1126,19 @@ priv_flow_convert(struct priv *priv,
>  		if (!parser->drop_q.ibv_attr)
>  			return ENOMEM;
>  		parser->drop_q.offset = sizeof(struct ibv_flow_attr);
> +	} else if (parser->queues_n == 1) {
> +		unsigned int priority =
> +			attr->priority +
> +			hash_rxq_init[HASH_RXQ_ETH].flow_priority;
> +		unsigned int offset = parser->queue[HASH_RXQ_ETH].offset;
> +
> +		parser->queue[HASH_RXQ_ETH].ibv_attr =
> +			priv_flow_convert_allocate(priv, priority,
> +						   offset, error);
> +		if (!parser->queue[HASH_RXQ_ETH].ibv_attr)
> +			return ENOMEM;
> +		parser->queue[HASH_RXQ_ETH].offset =
> +			sizeof(struct ibv_flow_attr);
>  	} else {
>  		for (i = 0; i != hash_rxq_init_n; ++i) {
>  			unsigned int priority =
> @@ -1173,9 +1188,22 @@ priv_flow_convert(struct priv *priv,
>  	 * Last step. Complete missing specification to reach the RSS
>  	 * configuration.
>  	 */
> -	if (!parser->drop) {
> +	if (parser->drop) {
> +		/*
> +		 * Drop queue priority needs to be adjusted to
> +		 * their most specific layer priority.
> +		 */
> +		parser->drop_q.ibv_attr->priority =
> +			attr->priority +
> +			hash_rxq_init[parser->layer].flow_priority;
> +	} else if (parser->queues_n > 1) {
>  		priv_flow_convert_finalise(priv, parser);
>  	} else {
> +		/*
> +		 * Action queue have their priority overridden with
> +		 * Ethernet priority, this priority needs to be adjusted to
> +		 * their most specific layer priority.
> +		 */
>  		parser->queue[HASH_RXQ_ETH].ibv_attr->priority =
>  			attr->priority +
>  			hash_rxq_init[parser->layer].flow_priority;
> -- 
> 2.11.0

  reply	other threads:[~2018-02-27  9:49 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-07  9:31 [dpdk-stable] please help backporting some patches to LTS release 17.11.1 Yuanhan Liu
2018-02-08  7:44 ` [dpdk-stable] 答复: " wang.yong19
2018-02-08  8:46 ` [dpdk-stable] " Pavan Nikhilesh
2018-02-08  8:56   ` Yuanhan Liu
2018-02-11  4:54 ` Yuanhan Liu
2018-02-12 10:36 ` Burakov, Anatoly
2018-02-13 11:46   ` Yuanhan Liu
2018-02-13 11:49     ` Burakov, Anatoly
2018-02-20 11:02       ` Burakov, Anatoly
2019-03-06 10:56         ` Burakov, Anatoly
2019-03-06 19:03           ` Yongseok Koh
2019-03-07 12:04             ` Burakov, Anatoly
2019-03-07 20:10               ` Yongseok Koh
2018-02-14  8:58 ` [dpdk-stable] [PATCH 1/3] net/mlx5: fix secondary process verification Nelio Laranjeiro
2018-02-16 13:01   ` Yuanhan Liu
2018-02-14  8:58 ` [dpdk-stable] [PATCH 2/3] net/mlx5: fix port stop by verify flows are still present Nelio Laranjeiro
2018-02-14  8:58 ` [dpdk-stable] [PATCH 3/3] net/mlx5: fix flow priority on queue action Nelio Laranjeiro
2018-02-27  9:36 ` [dpdk-stable] [PATCH 1/3] Revert "net/mlx5: fix flow priority on queue action" Nelio Laranjeiro
2018-02-27  9:49   ` Yuanhan Liu [this message]
2018-02-27  9:36 ` [dpdk-stable] [PATCH 2/3] net/mlx5: remove parser/flow drop queue Nelio Laranjeiro
2018-02-27  9:36 ` [dpdk-stable] [PATCH 3/3] net/mlx5: fix flow priority on queue action Nelio Laranjeiro

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=20180227094946.GH11744@yliu-mob \
    --to=yliu@fridaylinux.org \
    --cc=adrien.mazarguil@6wind.com \
    --cc=nelio.laranjeiro@6wind.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).