linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* hardware VLAN acceleration (RE: [BETA-0.92] Third test release of Tigon3 driver)
@ 2002-02-28 21:47 Leech, Christopher
  2002-02-28 22:51 ` hardware VLAN acceleration David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Leech, Christopher @ 2002-02-28 21:47 UTC (permalink / raw)
  To: linux-kernel, linux-net

> On Wed, 27 Feb 2002, David S. Miller wrote:
> 
> > [FEATURE] Yay, real HW acceleration hooks in the 802.1q VLAN layer.
> > 	  Tigon3 takes advantage of it.
>
> > Adding support to the Acenic driver should be pretty easy and I'll
> > try to do that before catching some sleep.  Jeff could also probably
> > cook up something quick for the e1000.
> 
> That would be nice, a common way for hw-vlans is a good thing.
> 
> Intel has also their own (kludgy?) way of doing hw-vlans in 
> the current driver?
> 
> - Pasi Kärkkäinen

The version of e1000 that Jeff merged in has no hardware VLAN capabilities
right now, the version distributed from Intel's web site has hooks for the
binary only iANS teaming/VLAN product.

That being said, I will add support to e1000 for a standard kernel interface
(e100 too, but there are other things to fix first).  David's interface
looks very nice to me, especially in it's clear advertisement of
capabilities and simple transmit and receive design.  Intel's hardware will
have no problem working with it.

I did have some questions about the entry points.

Is vlan_rx_kill_vid only there to ensure locking between vlan_hwaccel_rx and
unregister_802_1Q_vlan_dev?  If so, could this be handled outside of the
driver?

Also, when a vlan dev is unregistered, does the driver need to know that the
vlan_group passed in to vlan_rx_register is no longer valid?

	Chris

--
Chris Leech <christopher.leech@intel.com>
Network Software Engineer
UNIX/Linux/Netware Development Group
LAN Access Division, Intel

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

* Re: hardware VLAN acceleration
  2002-02-28 21:47 hardware VLAN acceleration (RE: [BETA-0.92] Third test release of Tigon3 driver) Leech, Christopher
@ 2002-02-28 22:51 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2002-02-28 22:51 UTC (permalink / raw)
  To: christopher.leech; +Cc: linux-kernel, linux-net

   From: "Leech, Christopher" <christopher.leech@intel.com>
   Date: Thu, 28 Feb 2002 13:47:25 -0800

   Is vlan_rx_kill_vid only there to ensure locking between vlan_hwaccel_rx and
   unregister_802_1Q_vlan_dev?  If so, could this be handled outside of the
   driver?
   
It is there because the VLAN layer has no buisness knowing how to lock
out receive interrupt processing in your driver.

The Acenic driver, for example, uses no SMP locking at all and runs
it's RX interrupts %100 lockless requiring a global "cli()" in order
to implement vlan_rx_kill_vid().

   Also, when a vlan dev is unregistered, does the driver need to know that the
   vlan_group passed in to vlan_rx_register is no longer valid?
   
The group is still valid, groups are never destroyed by the VLAN layer
once they are created.

Franks a lot,
David S. Miller
davem@redhat.com

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

end of thread, other threads:[~2002-02-28 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-28 21:47 hardware VLAN acceleration (RE: [BETA-0.92] Third test release of Tigon3 driver) Leech, Christopher
2002-02-28 22:51 ` hardware VLAN acceleration David S. Miller

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