freebsd-nq/sys
Andre Oppermann 78ba57b9e1 Move ethernet VLAN tags from mtags to its own mbuf packet header field
m_pkthdr.ether_vlan.  The presence of the M_VLANTAG flag on the mbuf
signifies the presence and validity of its content.

Drivers that support hardware VLAN tag stripping fill in the received
VLAN tag (containing both vlan and priority information) into the
ether_vtag mbuf packet header field:

	m->m_pkthdr.ether_vtag = vlan_id;	/* ntohs()? */
	m->m_flags |= M_VLANTAG;

to mark the packet m with the specified VLAN tag.

On output the driver should check the mbuf for the M_VLANTAG flag to
see if a VLAN tag is present and valid:

	if (m->m_flags & M_VLANTAG) {
		... = m->m_pkthdr.ether_vtag;	/* htons()? */
		... pass tag to hardware ...
	}

VLAN tags are stored in host byte order.  Byte swapping may be necessary.

(Note: This driver conversion was mechanic and did not add or remove any
byte swapping in the drivers.)

Remove zone_mtag_vlan UMA zone and MTAG_VLAN definition.  No more tag
memory allocation have to be done.

Reviewed by:	thompsa, yar
Sponsored by:	TCP/IP Optimization Fundraise 2005
2006-09-17 13:33:30 +00:00
..
amd64 Add a new ddb command 'show lapic' to dump details about the local APIC 2006-09-11 20:12:42 +00:00
arm MFp4: first cut at getting I2C transfers working (generically). I'm 2006-09-07 21:53:28 +00:00
boot - Include <sys/reboot.h> to get the RB_* defines. 2006-09-05 19:28:03 +00:00
bsm Merge OpenBSM 1.0 alpha 10 changes into src/sys/bsm; comment spelling 2006-09-02 10:49:44 +00:00
cam Don't allow attachment of disks that could cause GEOM to panic. 2006-09-16 21:21:07 +00:00
coda Since DELAY() was moved, most <machine/clock.h> #includes have been 2006-05-16 14:37:58 +00:00
compat Regenerate. 2006-09-17 13:29:36 +00:00
conf Include agp_i810.c in amd64 AGP builds to get support for the Intel 915 Express 2006-09-05 16:55:13 +00:00
contrib Introduce a new entry point, mac_create_mbuf_from_firewall. This entry point 2006-09-12 04:25:13 +00:00
crypto Less magic. 2006-09-15 10:44:55 +00:00
ddb Fix two nits in the ps header that offset each other making them largely 2006-08-01 22:30:55 +00:00
dev Move ethernet VLAN tags from mtags to its own mbuf packet header field 2006-09-17 13:33:30 +00:00
fs Put the osta.c license on osta.h. The license is the same. 2006-09-12 19:02:34 +00:00
gdb Convert to new console api 2006-05-26 13:54:27 +00:00
geom Fix detecting of UFS1 label when mediasize%fragsize != 0. 2006-09-16 11:24:41 +00:00
gnu Add snd_emu10kx driver for Creative SoundBlaster Live! and Audigy series 2006-07-15 19:36:28 +00:00
i4b Extend i4b to support CAPI manager based ISDN controllers (CAPI manager is part of 2006-07-09 21:16:06 +00:00
i386 Remove duplicated code. Declare functions non-static that shouldn't be 2006-09-13 09:35:59 +00:00
ia64 Add audit hooks for ppc, ia64 system call paths. 2006-09-16 17:03:02 +00:00
isa Eliminate one set of XBOX #ifdefs. The Xbox code just needs to set a 2006-08-09 23:47:38 +00:00
isofs/cd9660 Remove calls to vfs_export() for exporting a filesystem for NFS mounting 2006-05-26 00:32:21 +00:00
kern Regenerate. 2006-09-17 13:29:36 +00:00
libkern Add strstr() function to the libkern. 2006-08-12 15:28:39 +00:00
modules Introduce a new entry point, mac_create_mbuf_from_firewall. This entry point 2006-09-12 04:25:13 +00:00
net Move ethernet VLAN tags from mtags to its own mbuf packet header field 2006-09-17 13:33:30 +00:00
net80211 Move ethernet VLAN tags from mtags to its own mbuf packet header field 2006-09-17 13:33:30 +00:00
netatalk Since soisdisconnected() is no longer called in pru_detach(), call it 2006-08-05 14:14:34 +00:00
netatm Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netgraph Move ethernet VLAN tags from mtags to its own mbuf packet header field 2006-09-17 13:33:30 +00:00
netinet Handle a list of IPv6 src and dst addresses correctly, eg. 2006-09-16 10:27:05 +00:00
netinet6 Make it possible to add an IPv6 host route to a host directly connected. 2006-09-16 06:24:28 +00:00
netipsec Fix build breakage from previous commit which confused key_abort and key_close. 2006-07-22 09:18:02 +00:00
netipx Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netkey With exception of the if_name() macro, all definitions in net_osdep.h 2006-08-04 21:27:40 +00:00
netnatm Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netncp - Fix ncp_poll() to not panic if the socket doesn't have any pending data. 2006-08-03 15:31:52 +00:00
netsmb Fix misalignment bugs caused by invalid type casts of pointers 2006-08-22 03:05:51 +00:00
nfs
nfs4client Fixes up the handling of shared vnode lock lookups in the NFS client, 2006-09-13 18:39:09 +00:00
nfsclient Fixes up the handling of shared vnode lock lookups in the NFS client, 2006-09-13 18:39:09 +00:00
nfsserver - Add a new function nfsrv_destroycache() to tear down the server request 2006-08-01 16:27:14 +00:00
opencrypto When DIAGNOSTIC is defined, verify if we don't free crypto requests from 2006-06-06 15:04:52 +00:00
pc98 Fix style nits. No md5 changes in .o's. ;-) 2006-09-08 21:46:01 +00:00
pccard
pci Whitespace nits. 2006-09-15 11:01:23 +00:00
posix4 Backout the feature which can change thread's scheduling option, I really 2006-07-13 06:41:26 +00:00
powerpc Add audit hooks for ppc, ia64 system call paths. 2006-09-16 17:03:02 +00:00
rpc
security Add AUE_SYSARCH to the list of audit events during BSM conversion to prevent 2006-09-17 11:42:40 +00:00
sparc64 Do as the USII CPU manual suggests and leave interrupts enabled 2006-09-03 21:20:21 +00:00
sys Move ethernet VLAN tags from mtags to its own mbuf packet header field 2006-09-17 13:33:30 +00:00
tools Check for errors when registering and unregistering firmware modules. This 2006-06-16 21:06:03 +00:00
ufs While checking for update of snapshot file in the ffs_copyonwrite, 2006-08-21 17:20:19 +00:00
vm Make vm_page_release_contig() static. 2006-09-03 22:24:08 +00:00
Makefile Don't need to special case arm here anymore 2006-08-10 06:29:43 +00:00