From: Ben Greear <greearb@candelatech.com>
To: Mitch Williams <mitch.a.williams@intel.com>
Cc: netdev@vger.kernel.org
Subject: Re: [RFC] Enable/Disable VLAN HW filters
Date: Thu, 31 Aug 2006 16:40:52 -0700 [thread overview]
Message-ID: <44F77384.4030707@candelatech.com> (raw)
In-Reply-To: <1157064667.4416.14.camel@strongmad>
Mitch Williams wrote:
> We've had a few internal requests for a way to enable and disable the
> hardware VLAN filter at runtime. I'm posting it here for discussion and
> to see if anybody else is interested in this feature.
>
> Originally I had planned to do this as an Ethtool ioctl, but decided
> instead to handle it through the VLAN module. Ethtool doesn't know
> anything about VLANs at all.
>
> There are no userspace changes required to support this functionality.
>
> To disable HW VLAN filtering:
> # vconfig set_flag <VLAN interface> 2 1
>
> To enable HW VLAN filtering:
> # vconfig set_flag <VLAN interface> 2 0
>
> At this point (somewhat obviously), it's only implemented on e1000, but
> this ioctl could be easily implemented by other drivers.
Sounds like a good idea to me.
> + switch (flag) {
> + case VLAN_FLAG_REORDER:
> + if (flag_val)
> + VLAN_DEV_INFO(dev)->flags |= 1;
> + else
> + VLAN_DEV_INFO(dev)->flags &= ~1;
> + break;
If we're defining constants for the flags, might as well use them here
instead of using the bare '1'.
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
prev parent reply other threads:[~2006-08-31 23:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-31 22:51 [RFC] Enable/Disable VLAN HW filters Mitch Williams
2006-08-31 23:40 ` Ben Greear [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=44F77384.4030707@candelatech.com \
--to=greearb@candelatech.com \
--cc=mitch.a.williams@intel.com \
--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 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.