Re: HW VLAN Filtering on FreeBSD 6.3 + 7.0

2008-11-16 Thread Pyun YongHyeon
On Sun, Nov 16, 2008 at 02:27:36PM +0200, Yony Yossef wrote:
 > >
 > >  > I would like to enable my NIC HW VLAN filtering, is there any way for
 > > my
 > > > driver to access the OS vlan table? (something like vlan_group_get_device
 > > on
 > > > linux)
 > > >
 > > > I understood from previous investigation that on FreeBSD 6.3 and 7.0
 > > there's
 > > > no ioctl informing the driver of vlan addition/removal. Is that correct?
 > >
 > > Man pages to check out: vlan(4) and ifconfig(8).  I'm pretty sure the
 > > vlan tagging feature is per-driver.
 > 
 > 
 > > Also, the vlan(4) list of supported drivers is out of date (for example,
 > > em(4) is missing), so be sure to check the man page of your NIC driver.
 > 
 > 
 > Sorry, i explained myself pretty bad. I'm working on an Ethernet driver for
 > FreeBSD.
 > The VLAN hw tagging is already working properly, but my nic is capable of
 > holding a vlan table on hw, filtering vlans on it's own.
 > I need to find a way to update that hw table.
 > one way is to recieve a ioctl from the OS of it's vlan table event (add,
 > remove). I can't find such ioctl.

FreeBSD doesn't use ioctl to manipulate VLAN HW table.

 > second is to have a direct access from the driver to the OS vlan table. I'm
 > not familiar with the interface or if it's possible at all, and that is my
 > actual question.
 > 

See EVENT_HANDLER(9) and igb(4) for working example.

-- 
Regards,
Pyun YongHyeon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: HW VLAN Filtering on FreeBSD 6.3 + 7.0

2008-11-16 Thread Jeremy Chadwick
On Sun, Nov 16, 2008 at 02:27:36PM +0200, Yony Yossef wrote:
> >  > I would like to enable my NIC HW VLAN filtering, is there any way for
> > my
> > > driver to access the OS vlan table? (something like vlan_group_get_device
> > on
> > > linux)
> > >
> > > I understood from previous investigation that on FreeBSD 6.3 and 7.0
> > there's
> > > no ioctl informing the driver of vlan addition/removal. Is that correct?
> >
> > Man pages to check out: vlan(4) and ifconfig(8).  I'm pretty sure the
> > vlan tagging feature is per-driver.
> 
> > Also, the vlan(4) list of supported drivers is out of date (for example,
> > em(4) is missing), so be sure to check the man page of your NIC driver.
> 
> Sorry, i explained myself pretty bad. I'm working on an Ethernet driver for
> FreeBSD.
> The VLAN hw tagging is already working properly, but my nic is capable of
> holding a vlan table on hw, filtering vlans on it's own.
> I need to find a way to update that hw table.
> one way is to recieve a ioctl from the OS of it's vlan table event (add,
> remove). I can't find such ioctl.
> second is to have a direct access from the driver to the OS vlan table. I'm
> not familiar with the interface or if it's possible at all, and that is my
> actual question.

This question should go to freebsd-hackers.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: HW VLAN Filtering on FreeBSD 6.3 + 7.0

2008-11-16 Thread Yony Yossef
>
>  > I would like to enable my NIC HW VLAN filtering, is there any way for
> my
> > driver to access the OS vlan table? (something like vlan_group_get_device
> on
> > linux)
> >
> > I understood from previous investigation that on FreeBSD 6.3 and 7.0
> there's
> > no ioctl informing the driver of vlan addition/removal. Is that correct?
>
> Man pages to check out: vlan(4) and ifconfig(8).  I'm pretty sure the
> vlan tagging feature is per-driver.


> Also, the vlan(4) list of supported drivers is out of date (for example,
> em(4) is missing), so be sure to check the man page of your NIC driver.


Sorry, i explained myself pretty bad. I'm working on an Ethernet driver for
FreeBSD.
The VLAN hw tagging is already working properly, but my nic is capable of
holding a vlan table on hw, filtering vlans on it's own.
I need to find a way to update that hw table.
one way is to recieve a ioctl from the OS of it's vlan table event (add,
remove). I can't find such ioctl.
second is to have a direct access from the driver to the OS vlan table. I'm
not familiar with the interface or if it's possible at all, and that is my
actual question.

Thanks
 Yony
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: HW VLAN Filtering on FreeBSD 6.3 + 7.0

2008-11-16 Thread Jeremy Chadwick
On Sun, Nov 16, 2008 at 02:03:54PM +0200, Yony Yossef wrote:
> I would like to enable my NIC HW VLAN filtering, is there any way for my
> driver to access the OS vlan table? (something like vlan_group_get_device on
> linux)
> 
> I understood from previous investigation that on FreeBSD 6.3 and 7.0 there's
> no ioctl informing the driver of vlan addition/removal. Is that correct?

Man pages to check out: vlan(4) and ifconfig(8).  I'm pretty sure the
vlan tagging feature is per-driver.

Also, the vlan(4) list of supported drivers is out of date (for example,
em(4) is missing), so be sure to check the man page of your NIC driver.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


HW VLAN Filtering on FreeBSD 6.3 + 7.0

2008-11-16 Thread Yony Yossef
Hi All,

I would like to enable my NIC HW VLAN filtering, is there any way for my
driver to access the OS vlan table? (something like vlan_group_get_device on
linux)

I understood from previous investigation that on FreeBSD 6.3 and 7.0 there's
no ioctl informing the driver of vlan addition/removal. Is that correct?

Thanks,

Yony
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"