All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Borkmann <daniel@iogearbox.net>
To: Jamal Hadi Salim <jhs@mojatatu.com>, davem@davemloft.net
Cc: netdev@vger.kernel.org, xiyou.wangcong@gmail.com, fw@strlen.de
Subject: Re: [PATCH v2 net-next 2/3] net sched actions: skbedit add support for mod-ing skb pkt_type
Date: Sat, 02 Jul 2016 19:35:49 +0200	[thread overview]
Message-ID: <5777FB75.2050407@iogearbox.net> (raw)
In-Reply-To: <1467456196-25712-2-git-send-email-jhs@emojatatu.com>

On 07/02/2016 12:43 PM, Jamal Hadi Salim wrote:
> From: Jamal Hadi Salim <jhs@mojatatu.com>
>
> Extremely useful for setting packet type to host so i dont
> have to modify the dst mac address using pedit (which requires
> that i know the mac address)
>
> Example usage:
> tc filter add dev eth0 parent ffff: protocol ip pref 9 u32 \
> match ip src 5.5.5.5/32 \
> flowid 1:5 action skbedit ptype host
>
> This will tag all packets incoming from 5.5.5.5 with type
> PACKET_HOST
>
> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>

Acked-by: Daniel Borkmann <daniel@iogearbox.net>

  reply	other threads:[~2016-07-02 17:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-02 10:43 [PATCH v2 net-next 1/3] net: simplify and make pkt_type_ok() available for other users Jamal Hadi Salim
2016-07-02 10:43 ` [PATCH v2 net-next 2/3] net sched actions: skbedit add support for mod-ing skb pkt_type Jamal Hadi Salim
2016-07-02 17:35   ` Daniel Borkmann [this message]
2016-07-04 22:11   ` David Miller
2016-07-02 10:43 ` [PATCH v2 net-next 3/3] net sched actions: skbedit convert to use more modern nla_put_xxx Jamal Hadi Salim
2016-07-04 22:11   ` David Miller
2016-07-02 17:29 ` [PATCH v2 net-next 1/3] net: simplify and make pkt_type_ok() available for other users Daniel Borkmann
2016-07-04 22:11 ` David Miller

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=5777FB75.2050407@iogearbox.net \
    --to=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=fw@strlen.de \
    --cc=jhs@mojatatu.com \
    --cc=netdev@vger.kernel.org \
    --cc=xiyou.wangcong@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.