Bug 102540 - [netgraph] [patch] supporting vlan(4) by ng_fec(4)
Summary: [netgraph] [patch] supporting vlan(4) by ng_fec(4)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 6.1-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-26 12:10 UTC by Artemiev Igor
Modified: 2017-12-31 22:35 UTC (History)
0 users

See Also:


Attachments
file.diff (6.00 KB, patch)
2006-08-26 12:10 UTC, Artemiev Igor
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Artemiev Igor 2006-08-26 12:10:23 UTC
       ng_fec(4) does not work with vlan(4), because ng_fec_start does not
       distinguish marked mbuf, also there is no support VLAN_HWTAGGING and
       VLAN_MTU capability for bundle even if underlying interfaces support it.

Fix: Apply a followed patch. After :
        ngctl -f -<<-EOF
                mkpeer fec dummy fec
                msg fec0: add_iface "bge0"
                msg fec0: add_iface "bge1"
                msg fec0: set_mode_mac
        EOF
        ifconfig vlan2 create
        ifconfig vlan2 inet 10.0.0.1/8 vlan 2 vlandev fec0
        ifconfig fec0 up
        ifconfig vlan2 up

        The host B, connected to cisco trunk:
        ifconfig vlan2 create
        ifconfig vlan2 inet 10.0.0.2/8 vlan 2 vlandev fxp0

	ifconfig fec0
	
	fec0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        	options=18<VLAN_MTU,VLAN_HWTAGGING>
        	ether 00:17:a4:3b:09:3c
        	media: Ethernet none
        	status: active                     

        ping 10.0.0.1 - working, because both bge0 and bge1 support 
	VLAN_MTU and VLAN_HWTAGGING fec0 derived their capabilities.
	If undelying device changes the capabilities, the call ifconfig 
	{vlantag|vlanmtu} updates capabilities at fec interface.
How-To-Repeat:         The host A, connected to cisco trunk:
        ngctl -f -<<-EOF
                mkpeer fec dummy fec
                msg fec0: add_iface "bge0"
                msg fec0: add_iface "bge1"
                msg fec0: set_mode_mac
        EOF
        ifconfig vlan2 create
        ifconfig vlan2 inet 10.0.0.1/8 vlan 2 vlandev fec0
        ifconfig fec0 up
        ifconfig vlan2 up

        The host B, connected to cisco trunk:
        ifconfig vlan2 create
        ifconfig vlan2 inet 10.0.0.2/8 vlan 2 vlandev fxp0

        ping 10.0.0.1 - no reply
Comment 1 ru freebsd_committer 2006-08-26 15:07:35 UTC
Responsible Changed
From-To: freebsd-bugs->ru

I'll polish, test and commit.
Comment 2 Johan Ström 2006-12-12 18:33:21 UTC
Hi,
any progress on this? Would be nice to have it working :)

http://www.freebsd.org/cgi/query-pr.cgi?pr=102540

Thanks! :)
Comment 3 Artemiev Igor 2006-12-13 07:57:17 UTC
On Tue, 12 Dec 2006 19:33:21 +0100
Johan Strom <johan@stromnet.se> wrote:

> Hi,
> any progress on this? Would be nice to have it working :)
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=102540
> 
> Thanks! :)
> 
It works, at least, for me. I've tested it on two routers with Cisco
Catalyst 2960G. Considering the patch, ru@ thinks it would not be wise
to commit it, as glebius@, it is said, is going to rewrite ng_fec to be
a complete interface (not netgraph). glebius@ himself is silent about
all this, and hasn't answered my question about the future of ng_fec. 

-- 
iprefetch ai
Comment 4 ru freebsd_committer 2007-04-16 22:11:36 UTC
Responsible Changed
From-To: ru->freebsd-bugs

Sorry, but I have lost interest in this.
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2010-03-18 04:26:07 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:32 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped