netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Which tool to use?
@ 2010-01-28  6:10 Williams, Mitch A
  2010-01-28 17:59 ` Rose, Gregory V
  2010-01-29  0:21 ` Mark Smith
  0 siblings, 2 replies; 3+ messages in thread
From: Williams, Mitch A @ 2010-01-28  6:10 UTC (permalink / raw)
  To: netdev@vger.kernel.org, davem@davemloft.net, Stephen Hemminger

Which tool to use?

Just looking for a bit of direction before I go off and start coding...

Our SR-IOV capable parts (like everybody else's) include simple built-in
Layer 2 switch, to allow packets to be switched between the various VF 
devices.

We need the capability of configuring this switch from userspace. There
are a few features we'd like to control, like anti-spoofing, and
storm control, as well as being able to completely disable the internal
switch for external loopback.  Mostly, however, we want to be able to add
new MAC address filters to the switch.

This is actually a pressing need, for SR-IOV to be really usable in
a virtualized environment. In most use cases, along with VMs that are
assigned VF devices, there will be a bunch of VMs talking through the PF
device via a bridge.  We need to add the MAC addresses of these VMs to
the on-board switch, or other VMs using the VF devices won't be able to
talk to them - the packets will go out on the wire instead.

So, which tool do I modify to make this happen? Ethtool, or ip?  I can
think of convincing arguments for either, so I want to double-check with
the maintainers before I dive in.

Thanks,
Mitch

-------
If we knew what it was we were doing, it would not be called research,
would it?
                                   - Albert Einstein


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Which tool to use?
  2010-01-28  6:10 Which tool to use? Williams, Mitch A
@ 2010-01-28 17:59 ` Rose, Gregory V
  2010-01-29  0:21 ` Mark Smith
  1 sibling, 0 replies; 3+ messages in thread
From: Rose, Gregory V @ 2010-01-28 17:59 UTC (permalink / raw)
  To: Williams, Mitch A, netdev@vger.kernel.org, davem@davemloft.net,
	Stephen Hemminger

>-----Original Message-----
>From: netdev-owner@vger.kernel.org [mailto:netdev-owner@vger.kernel.org]
>On Behalf Of Williams, Mitch A
>Sent: Wednesday, January 27, 2010 10:10 PM
>To: netdev@vger.kernel.org; davem@davemloft.net; Stephen Hemminger
>Subject: Which tool to use?
>
>Which tool to use?
>
>Just looking for a bit of direction before I go off and start coding...
>
>Our SR-IOV capable parts (like everybody else's) include simple built-in
>Layer 2 switch, to allow packets to be switched between the various VF
>devices.
>
>We need the capability of configuring this switch from userspace. There
>are a few features we'd like to control, like anti-spoofing, and
>storm control, as well as being able to completely disable the internal
>switch for external loopback.  Mostly, however, we want to be able to
>add
>new MAC address filters to the switch.
>
>This is actually a pressing need, for SR-IOV to be really usable in
>a virtualized environment. In most use cases, along with VMs that are
>assigned VF devices, there will be a bunch of VMs talking through the PF
>device via a bridge.  We need to add the MAC addresses of these VMs to
>the on-board switch, or other VMs using the VF devices won't be able to
>talk to them - the packets will go out on the wire instead.
>
>So, which tool do I modify to make this happen? Ethtool, or ip?  I can
>think of convincing arguments for either, so I want to double-check with
>the maintainers before I dive in.
>
>Thanks,
>Mitch
>

The folks working on the Open vSwitch project are addressing some of these issues also.  You might want to check them out at openvswitch.org, although I have no idea what sort of view the Linux networking community has towards their work.

- Greg



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Which tool to use?
  2010-01-28  6:10 Which tool to use? Williams, Mitch A
  2010-01-28 17:59 ` Rose, Gregory V
@ 2010-01-29  0:21 ` Mark Smith
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Smith @ 2010-01-29  0:21 UTC (permalink / raw)
  To: Williams, Mitch A
  Cc: netdev@vger.kernel.org, davem@davemloft.net, Stephen Hemminger

On Wed, 27 Jan 2010 23:10:04 -0700
"Williams, Mitch A" <mitch.a.williams@intel.com> wrote:

> Which tool to use?
> 
> Just looking for a bit of direction before I go off and start coding...
> 
> Our SR-IOV capable parts (like everybody else's) include simple built-in
> Layer 2 switch, to allow packets to be switched between the various VF 
> devices.
> 
> We need the capability of configuring this switch from userspace. There
> are a few features we'd like to control, like anti-spoofing, and
> storm control, as well as being able to completely disable the internal
> switch for external loopback.  Mostly, however, we want to be able to add
> new MAC address filters to the switch.
> 
> This is actually a pressing need, for SR-IOV to be really usable in
> a virtualized environment. In most use cases, along with VMs that are
> assigned VF devices, there will be a bunch of VMs talking through the PF
> device via a bridge.  We need to add the MAC addresses of these VMs to
> the on-board switch, or other VMs using the VF devices won't be able to
> talk to them - the packets will go out on the wire instead.
> 
> So, which tool do I modify to make this happen? Ethtool, or ip?  I can
> think of convincing arguments for either, so I want to double-check with
> the maintainers before I dive in.
> 

As they're bridging functions, I think being able to use the
existing brctl bridging utility / interface / api would be both useful
and intuitive. 

> Thanks,
> Mitch
> 
> -------
> If we knew what it was we were doing, it would not be called research,
> would it?
>                                    - Albert Einstein
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-29  0:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-28  6:10 Which tool to use? Williams, Mitch A
2010-01-28 17:59 ` Rose, Gregory V
2010-01-29  0:21 ` Mark Smith

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).