netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Fastabend <john.r.fastabend@intel.com>
To: Ajith Adapa <adapa.ajith@gmail.com>
Cc: netdev@vger.kernel.org, Stephen Hemminger <shemminger@vyatta.com>
Subject: Re: Regarding group_forward_mask in bridge in 3.4 kernel
Date: Mon, 17 Sep 2012 08:24:49 -0700	[thread overview]
Message-ID: <505740C1.9080706@intel.com> (raw)
In-Reply-To: <CADAe=++yAm3t-ZqMKy9h-Rda5=pOYQD2-cKUd3S1VKmBZQfT9A@mail.gmail.com>

On 9/17/2012 7:43 AM, Ajith Adapa wrote:
> Hi,
>
> I am trying to enable group_fwd_mask in bridge by giving the below
> command so that it can forward provider bpdu's whose destination
> address is 01-80-C2-00-00-08.
>
> echo 8 > /sys/class/net/vpc1_br/bridge/group_fwd_mask
>

wrong value see the logic you quoted use 1 << 8

echo 256 > /sys/class/net/...

Your example fwds non-TPMR addresses 01-80-c2-00-00-03.

[...]

> Am I giving wrong value for group_fwd_mask ??

Yep wrong value.

> I tried other values but seems only 8 and 0 is accepted.

The logic makes an attempt to restrict forwarding by masking 0x4007u,
catching many known control protocols.

See commit for details,

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=515853ccecc6987dfb8ed809dd8bf8900286f29e

.John

  reply	other threads:[~2012-09-17 15:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-17 14:43 Regarding group_forward_mask in bridge in 3.4 kernel Ajith Adapa
2012-09-17 15:24 ` John Fastabend [this message]
2012-09-18  8:30   ` Ajith Adapa

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=505740C1.9080706@intel.com \
    --to=john.r.fastabend@intel.com \
    --cc=adapa.ajith@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@vyatta.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).