DPDK patches and discussions
 help / color / mirror / Atom feed
From: Shahaf Shuler <shahafs@mellanox.com>
To: Yongseok Koh <yskoh@mellanox.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH v4] net/mlx5: support multiple groups and jump action
Date: Sun, 14 Oct 2018 05:55:36 +0000	[thread overview]
Message-ID: <DB7PR05MB4426B32574D0DAD46AB843D8C3FC0@DB7PR05MB4426.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <20181012084222.10464-1-yskoh@mellanox.com>

Friday, October 12, 2018 11:43 AM, Yongseok Koh:
> Subject: [PATCH v4] net/mlx5: support multiple groups and jump action
> 
> rte_flow has 'group' attribute and 'jump' action in order to support multiple
> groups. This feature is known as multi-table support ('chain' in linux TC
> flower) in general because a group means a table of flows. Example
> commands are:
> 
> 	flow create 0 transfer priority 1 ingress
> 	     pattern eth / vlan vid is 100 / end
> 	     actions jump group 1 / end
> 
> 	flow create 0 transfer priority 1 ingress
> 	     pattern eth / vlan vid is 200 / end
> 	     actions jump group 2 / end
> 
> 	flow create 0 transfer group 1 priority 2 ingress
> 	     pattern eth / vlan vid is 100 /
> 	     	     ipv4 dst spec 192.168.40.0 dst prefix 24 / end
> 	     actions drop / end
> 
> 	flow create 0 transfer group 1 priority 2 ingress
> 	     pattern end
> 	     actions of_pop_vlan / port_id id 1 / end
> 
> 	flow create 0 transfer group 2 priority 2 ingress
> 	     pattern eth / vlan vid is 200 /
> 	     	     ipv4 dst spec 192.168.40.0 dst prefix 24 / end
> 	     actions of_pop_vlan / port_id id 2 / end
> 
> 	flow create 0 transfer group 2 priority 2 ingress
> 	     pattern end
> 	     actions port_id id 2 / end
> 
> With theses flows, if a packet having vlan 200 and src_ip as 192.168.40.1, this
> packet will firstly hit the 1st flow. Then it will hit the 5th flow because of the
> 'jump' action. As a result, the packet will be forwarded to port 2 (VF
> representor) with vlan tag being stripped off. If the packet had vlan 100
> instead, it would be dropped by the 3rd flow.
> 
> Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
> ---

Applied to next-net-mlx, thanks. 

      reply	other threads:[~2018-10-14  5:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-03  1:56 [dpdk-dev] [PATCH 0/2] " Yongseok Koh
2018-10-03  1:56 ` [dpdk-dev] [PATCH 1/2] ethdev: add jump action to description table Yongseok Koh
2018-10-03  7:12   ` Andrew Rybchenko
2018-10-03  7:31     ` Yongseok Koh
2018-10-03  1:56 ` [dpdk-dev] [PATCH 2/2] net/mlx5: support multiple groups and jump action Yongseok Koh
2018-10-08 18:06 ` [dpdk-dev] [PATCH v2] " Yongseok Koh
2018-10-09  8:18   ` Ori Kam
2018-10-09 12:50   ` Shahaf Shuler
2018-10-10  2:47     ` Yongseok Koh
2018-10-10  5:35       ` Shahaf Shuler
2018-10-10  2:54 ` [dpdk-dev] [PATCH v3] " Yongseok Koh
2018-10-12  8:42 ` [dpdk-dev] [PATCH v4] " Yongseok Koh
2018-10-14  5:55   ` Shahaf Shuler [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=DB7PR05MB4426B32574D0DAD46AB843D8C3FC0@DB7PR05MB4426.eurprd05.prod.outlook.com \
    --to=shahafs@mellanox.com \
    --cc=dev@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).