kern/152141: [vlan] encapsulate vlan in ng_ether before output to if

2011-02-13 Thread Mark Linimon
The following reply was made to PR kern/152141; it has been noted by GNATS.

From: Mark Linimon 
To: bug-follo...@freebsd.org
Cc:  
Subject: kern/152141: [vlan] encapsulate vlan in ng_ether before output to
 if
Date: Sun, 13 Feb 2011 08:46:38 -0600

 - Forwarded message from Rozhuk Ivan  -
 
 From: "Rozhuk Ivan" 
 To: 
 Subject: kern/152141: [vlan] encapsulate vlan in ng_ether before output
    to if
 Date: Tue, 16 Nov 2010 01:16:48 +0800
 
 This is a patched version of original function
 
 code
/*
 * If underlying interface can not do VLAN tag insertion itself
 * then attach a packet tag that holds it.
 */
if ((m->m_flags & M_VLANTAG) &&
(ifp->if_capenable & IFCAP_VLAN_HWTAGGING) == 0) {
m = ether_vlanencap(m, m->m_pkthdr.ether_vtag);
if (m == NULL) {
ifp->if_oerrors++;
return (ENOBUFS);
}
m->m_flags &= ~M_VLANTAG;
}
 
 
 was added.
 
 Iam does not test this path - haven’t net with vlan support.
 
 Code was taken from if_bridge and adapted.
  
 --
 Rozhuk Ivan
 
 - End forwarded message -
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


kern/152141: [vlan] encapsulate vlan in ng_ether before output to if

2010-12-16 Thread rozhuk . im
Hi!


What I need to do to include this patch to main source tree?

 
--
Rozhuk Ivan
  



___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


kern/152141: [vlan] encapsulate vlan in ng_ether before output to if

2010-12-02 Thread Rozhuk Ivan
Hi!


This is a patch for ng_ether_rcv_lower function in ng_ether.c to encapsulate
vlan before send to net.

 
--
Rozhuk Ivan
  



ng_ether.patch
Description: Binary data
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

kern/152141: [vlan] encapsulate vlan in ng_ether before output to if

2010-11-15 Thread rozhuk . im
This is a patched version of original function

code
/*
 * If underlying interface can not do VLAN tag insertion itself
 * then attach a packet tag that holds it.
 */
if ((m->m_flags & M_VLANTAG) &&
(ifp->if_capenable & IFCAP_VLAN_HWTAGGING) == 0) {
m = ether_vlanencap(m, m->m_pkthdr.ether_vtag);
if (m == NULL) {
ifp->if_oerrors++;
return (ENOBUFS);
}
m->m_flags &= ~M_VLANTAG;
}


was added.

Iam does not test this path - haven’t net with vlan support.

Code was taken from if_bridge and adapted.


 
--
Rozhuk Ivan
  



___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


kern/152141: [vlan] encapsulate vlan in ng_ether before output to if

2010-11-14 Thread Rozhuk Ivan
This is a patched version of original function

code
/*
 * If underlying interface can not do VLAN tag insertion itself
 * then attach a packet tag that holds it.
 */
if ((m->m_flags & M_VLANTAG) &&
(ifp->if_capenable & IFCAP_VLAN_HWTAGGING) == 0) {
m = ether_vlanencap(m, m->m_pkthdr.ether_vtag);
if (m == NULL) {
ifp->if_oerrors++;
return (ENOBUFS);
}
m->m_flags &= ~M_VLANTAG;
}


was added

 
--
Rozhuk Ivan
  



___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Re: kern/152141: [vlan] encapsulate vlan in ng_ether before output to if

2010-11-12 Thread linimon
Old Synopsis: encapsulate vlan in ng_ether before output to if
New Synopsis: [vlan] encapsulate vlan in ng_ether before output to if

Responsible-Changed-From-To: freebsd-bugs->freebsd-net
Responsible-Changed-By: linimon
Responsible-Changed-When: Fri Nov 12 21:31:41 UTC 2010
Responsible-Changed-Why: 
Affects networking code.

To submitter: is the code you included a patch, or a test case?  It is not
clear to me.

http://www.freebsd.org/cgi/query-pr.cgi?pr=152141
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"