public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrei Popa <andrei.popa@next-gen.ro>
To: netdev@vger.kernel.org
Cc: pdoru.kernel@evox.ro
Subject: tc match MAC destination
Date: Fri, 10 Jun 2011 17:18:47 +0300	[thread overview]
Message-ID: <1307715527.23915.89.camel@ierdnac-hp> (raw)

Hello,

I want to shape PVSTP+ traffic (traffic that has MAC destination
01:00:0c:cc:cc:cd) and it doesn't work.
I've tried
filter parent 1: protocol 802_3 pref 2 u32 fh 802::11 order 17 key ht
802 bkt 0 flowid 1:3 
  match 01000ccc/ffffffff at 0
but it doesn't work.

With
filter parent 1: protocol arp pref 1 u32 
filter parent 1: protocol arp pref 1 u32 fh 801: ht divisor 1 
filter parent 1: protocol arp pref 1 u32 fh 801::7 order 7 key ht 801
bkt 0 flowid 1:3 
  match 00000000/00000000 at 0
filter parent 1: protocol 802_3 pref 2 u32 
filter parent 1: protocol 802_3 pref 2 u32 fh 802: ht divisor 1 
filter parent 1: protocol 802_3 pref 2 u32 fh 802::3 order 3 key ht 802
bkt 0 flowid 1:3 
  match 00000000/00000000 at 0
        action order 1: mirred (Egress Mirror to device ifb1) pipe
        index 1923 ref 1 bind 1

I see arp trafic with tcpdump on ifb1, but no STP traffic or any kind of
traffic except arp, because I've matched all MAC addreses.
Can somebody verify that this match works ?

I use kernel 2.6.39.1.

Thank you,
-- 
Andrei Popa
0760 683 280



             reply	other threads:[~2011-06-10 14:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-10 14:18 Andrei Popa [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-06-15  8:12 tc match MAC destination Andrei Popa
2011-06-15  9:43 ` Eric Dumazet
2011-06-15 13:23 ` Thomas Graf
2011-06-15 13:29 ` Stephen Hemminger
2011-06-15 14:51 ` jamal

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=1307715527.23915.89.camel@ierdnac-hp \
    --to=andrei.popa@next-gen.ro \
    --cc=netdev@vger.kernel.org \
    --cc=pdoru.kernel@evox.ro \
    /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