History log of /freebsd/sys/netgraph/ng_eiface.c (Results 76 – 100 of 177)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 8b615593 02-Oct-2008 Marko Zec <zec@FreeBSD.org>

Step 1.5 of importing the network stack virtualization infrastructure
from the vimage project, as per plan established at devsummit 08/08:
http://wiki.freebsd.org/Image/Notes200808DevSummit

Introduc

Step 1.5 of importing the network stack virtualization infrastructure
from the vimage project, as per plan established at devsummit 08/08:
http://wiki.freebsd.org/Image/Notes200808DevSummit

Introduce INIT_VNET_*() initializer macros, VNET_FOREACH() iterator
macros, and CURVNET_SET() context setting macros, all currently
resolving to NOPs.

Prepare for virtualization of selected SYSCTL objects by introducing a
family of SYSCTL_V_*() macros, currently resolving to their global
counterparts, i.e. SYSCTL_V_INT() == SYSCTL_INT().

Move selected #defines from sys/sys/vimage.h to newly introduced header
files specific to virtualized subsystems (sys/net/vnet.h,
sys/netinet/vinet.h etc.).

All the changes are verified to have zero functional impact at this
point in time by doing MD5 comparision between pre- and post-change
object files(*).

(*) netipsec/keysock.c did not validate depending on compile time options.

Implemented by: julian, bz, brooks, zec
Reviewed by: julian, bz, brooks, kris, rwatson, ...
Approved by: julian (mentor)
Obtained from: //depot/projects/vimage-commit2/...
X-MFC after: never
Sponsored by: NLnet Foundation, The FreeBSD Foundation

show more ...


# 603724d3 18-Aug-2008 Bjoern A. Zeeb <bz@FreeBSD.org>

Commit step 1 of the vimage project, (network stack)
virtualization work done by Marko Zec (zec@).

This is the first in a series of commits over the course
of the next few weeks.

Mark all uses of g

Commit step 1 of the vimage project, (network stack)
virtualization work done by Marko Zec (zec@).

This is the first in a series of commits over the course
of the next few weeks.

Mark all uses of global variables to be virtualized
with a V_ prefix.
Use macros to map them back to their global names for
now, so this is a NOP change only.

We hope to have caught at least 85-90% of what is needed
so we do not invalidate a lot of outstanding patches again.

Obtained from: //depot/projects/vimage-commit2/...
Reviewed by: brooks, des, ed, mav, julian,
jamie, kris, rwatson, zec, ...
(various people I forgot, different versions)
md5 (with a bit of help)
Sponsored by: NLnet Foundation, The FreeBSD Foundation
X-MFC after: never
V_Commit_Message_Reviewed_By: more people than the patch

show more ...


Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0
# bb5ba44f 26-Jul-2007 Gleb Smirnoff <glebius@FreeBSD.org>

Honor the IFF_MONITOR flag.

PR: kern/99500
Submitted by: Craig Leres <leres ee.lbl.gov>
Approved by: re (kensmith)


# 2eddfeaa 08-Mar-2007 Ruslan Ermilov <ru@FreeBSD.org>

ng_send_fn() can return with an error, the function of interest
will never be called and OACTIVE will never be reset. Fix this.

Submitted by: Vsevolod Lobko
MFC after: 3 days


Revision tags: release/6.2.0_cvs, release/6.2.0
# 3d82b870 15-Sep-2006 Ruslan Ermilov <ru@FreeBSD.org>

SIOCSIFFLAGS doesn't require an argument in kernel land; instead, flags
are supposed to be set directly in ifnet already. This change fixes a
panic when ng_eiface node is attached to ng_fec node and

SIOCSIFFLAGS doesn't require an argument in kernel land; instead, flags
are supposed to be set directly in ifnet already. This change fixes a
panic when ng_eiface node is attached to ng_fec node and the latter is
shut down (ng_fec sets flags and then calls SIOCSIFFLAGS with a NULL
argument).

MFC after: 3 days

show more ...


Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0
# fc07e402 11-Feb-2006 Ruslan Ermilov <ru@FreeBSD.org>

Don't count output bytes twice (the byte accouting is done
in if.c). Count output errors.

MFC after: 3 days


# e497d0cd 06-Feb-2006 Ruslan Ermilov <ru@FreeBSD.org>

Two fixes:

- Run send queue down to completion, not just one packet.
It has been observed to cause a stall queue otherwise.

- Prevent queueing multiple function calls to a node.

MFC after: 3 days


# 7af425cd 08-Nov-2005 Ruslan Ermilov <ru@FreeBSD.org>

Simplify setting the link-level address.


Revision tags: release/6.0.0_cvs, release/6.0.0
# 13f4c340 09-Aug-2005 Robert Watson <rwatson@FreeBSD.org>

Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE and
IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to
ifnet.if_drv_flags. Device drivers are now responsible for
synchron

Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE and
IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to
ifnet.if_drv_flags. Device drivers are now responsible for
synchronizing access to these flags, as they are in if_drv_flags. This
helps prevent races between the network stack and device driver in
maintaining the interface flags field.

Many __FreeBSD__ and __FreeBSD_version checks maintained and continued;
some less so.

Reviewed by: pjd, bz
MFC after: 7 days

show more ...


# fc74a9f9 10-Jun-2005 Brooks Davis <brooks@FreeBSD.org>

Stop embedding struct ifnet at the top of driver softcs. Instead the
struct ifnet or the layer 2 common structure it was embedded in have
been replaced with a struct ifnet pointer to be filled by a c

Stop embedding struct ifnet at the top of driver softcs. Instead the
struct ifnet or the layer 2 common structure it was embedded in have
been replaced with a struct ifnet pointer to be filled by a call to the
new function, if_alloc(). The layer 2 common structure is also allocated
via if_alloc() based on the interface type. It is hung off the new
struct ifnet member, if_l2com.

This change removes the size of these structures from the kernel ABI and
will allow us to better manage them as interfaces come and go.

Other changes of note:
- Struct arpcom is no longer referenced in normal interface code.
Instead the Ethernet address is accessed via the IFP2ENADDR() macro.
To enforce this ac_enaddr has been renamed to _ac_enaddr.
- The second argument to ether_ifattach is now always the mac address
from driver private storage rather than sometimes being ac_enaddr.

Reviewed by: sobomax, sam

show more ...


Revision tags: release/5.4.0_cvs, release/5.4.0
# 15749e57 20-Apr-2005 Gleb Smirnoff <glebius@FreeBSD.org>

- Initialize interface as UP when hook is connected.
- Call if_link_state_change() when netgraph flow control
messages are received.

Sponsored by: Rambler


# 6c949d5f 20-Apr-2005 Gleb Smirnoff <glebius@FreeBSD.org>

Remove extra ifnet pointer from private data. It can be accessed via arpcom.


# 30afbe33 14-Mar-2005 Gleb Smirnoff <glebius@FreeBSD.org>

Remove ng_connect_t where it is unused. Probably it remained from ng_source.c.


# 8633e59c 14-Mar-2005 Gleb Smirnoff <glebius@FreeBSD.org>

Use subr_unit allocator instead of own functions.


# a9a03de5 01-Mar-2005 Ruslan Ermilov <ru@FreeBSD.org>

Pull up to ETHER_HDR_LEN before passing an mbuf to ether_input().
The bug was found by running ng_dummy(4) node configured with a
delay, in front of the ng_eiface(4) node.


# a921fb33 08-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

bzero() -> M_ZERO.


# 30aabc9a 05-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Create a per-module mutex on MOD_LOAD, and destroy it on MOD_UNLOAD.
(This fixes witness_destroy() panic after module unload.)

OK'ed by: rwatson, julian


# bbb75d78 03-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Fixed an off-by-one error when dealing with interface name
(if_xname is IFNAMSIZ-sized and NUL-terminated).


# c60878f0 03-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Added ASCII version of the NGM_EIFACE_GET_IFNAME message, "getifname".


# c266fbc2 03-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Removed unused includes.


# fcee8ae2 02-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Fix the comment.


# 48039d2d 02-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Whitespace and "const" changes to reduce diffs to RELENG_4.
(Gives the same object when compiled without NETGRAPH_DEBUG.)


Revision tags: release/4.11.0_cvs, release/4.11.0
# d0aa4b3f 14-Jan-2005 Gleb Smirnoff <glebius@FreeBSD.org>

Raise & drop IFF_RUNNING upon receival of netgraph flow control
messages.


Revision tags: release/5.3.0_cvs, release/5.3.0
# 5d67845f 11-Sep-2004 Gleb Smirnoff <glebius@FreeBSD.org>

Remove orphaned comment about Meta data.


# dffa5be1 14-Jul-2004 Robert Watson <rwatson@FreeBSD.org>

Introduce a new mutex, ng_eiface_mtx, to protect the global unit list
lock used to synchronize allocation of unit numbers for new netgraph
ethernet interfaces.

Reviewed by: glebius


12345678