Netdev List
 help / color / mirror / Atom feed
From: David Ahern <dsahern@gmail.com>
To: Jianbo Liu <jianbol@mellanox.com>,
	netdev@vger.kernel.org, davem@davemloft.net, jiri@resnulli.us
Subject: Re: [PATCH iproute2/net-next] tc: flower: Add support for QinQ
Date: Sun, 15 Jul 2018 14:09:26 -0600	[thread overview]
Message-ID: <af917427-3772-d0c2-a86c-96ff09b7ca98@gmail.com> (raw)
In-Reply-To: <20180630100133.14645-1-jianbol@mellanox.com>

On 6/30/18 4:01 AM, Jianbo Liu wrote:
> To support matching on both outer and inner vlan headers,
> we add new cvlan_id/cvlan_prio/cvlan_ethtype for inner vlan header.
> 
> Example:
> # tc filter add dev eth0 protocol 802.1ad parent ffff: \
>     flower vlan_id 1000 vlan_ethtype 802.1q \
>         cvlan_id 100 cvlan_ethtype ipv4 \
>     action vlan pop \
>     action vlan pop \
>     action mirred egress redirect dev eth1
> 
> # tc filter show dev eth0 ingress
> filter protocol 802.1ad pref 1 flower chain 0
> filter protocol 802.1ad pref 1 flower chain 0 handle 0x1
>   vlan_id 1000
>   vlan_ethtype 802.1Q
>   cvlan_id 100
>   cvlan_ethtype ip
>   eth_type ipv4
>   in_hw
> 
> Signed-off-by: Jianbo Liu <jianbol@mellanox.com>
> Acked-by: Jiri Pirko <jiri@mellanox.com>
> ---
>  include/uapi/linux/pkt_cls.h |   4 ++
>  man/man8/tc-flower.8         |  23 ++++++++++
>  tc/f_flower.c                | 103 ++++++++++++++++++++++++++++++++++++++-----
>  3 files changed, 118 insertions(+), 12 deletions(-)
> 

applied to iproute2-next. Thanks


> diff --git a/tc/f_flower.c b/tc/f_flower.c
> index ba8eb66..71f2bc1 100644
> --- a/tc/f_flower.c
> +++ b/tc/f_flower.c
> @@ -50,6 +50,9 @@ static void explain(void)
>  		"                       vlan_id VID |\n"
>  		"                       vlan_prio PRIORITY |\n"
>  		"                       vlan_ethtype [ ipv4 | ipv6 | ETH-TYPE ] |\n"
> +		"                       cvlan_id VID |\n"
> +		"                       cvlan_prio PRIORITY |\n"
> +		"                       cvlan_ethtype [ ipv4 | ipv6 | ETH-TYPE ] |\n"

This tendency for 1 option for line makes the output really long and is
not user friendly.

      reply	other threads:[~2018-07-15 20:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-30 10:01 [PATCH iproute2/net-next] tc: flower: Add support for QinQ Jianbo Liu
2018-07-15 20:09 ` David Ahern [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=af917427-3772-d0c2-a86c-96ff09b7ca98@gmail.com \
    --to=dsahern@gmail.com \
    --cc=davem@davemloft.net \
    --cc=jianbol@mellanox.com \
    --cc=jiri@resnulli.us \
    --cc=netdev@vger.kernel.org \
    /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