4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
28 This README describes the organization of the files and subdirectories
29 that make up the misc/mac module.
31 Changes to the sources should follow the layout and naming conventions
34 Each functional component of the mac module is implemented in a separate
35 source file. The external interfaces are declared in header files delivered
36 under <sys>. The internal data structures and definitions are declared
37 in header files internal to this directory.
40 This is the kernel programming interface for accessing L2 services as
43 . sys/mac_client.h: APIs intended for external MAC consumers
44 . sys/mac_client_priv.h: APIs for GLDv3 components only (dld,
45 dls, aggr, vnic, etc).
46 . mac_client_impl.h Internals.
49 This is the GLDv3 kernel driver interface. Functions and data structures
50 are used by L2 drivers to provide services to MAC consumers.
55 The GLDv3 L2 supports multiple types of media control. Each type is
56 implemented as a plugin delivered in a separate file under the
58 Add a new file to the plugin/ directory for introducing a new MAC type.
62 . mac_datapath_setup.c: Control path for the scheduler.
64 mac_soft_ring.h: Fanout Soft Rings.
65 . mac_sched.c: Data path
66 . mac_bcast.c Data path and switching for broadcast and
68 . mac_stat.c: Statistics
70 - Classification Engine
71 mac_flow.c: Flows and software classification:
73 - NICs Resources Management
74 . mac.c (this file also has other miscelanea)