pattr.h revision 1908fb0e6a43a40b10543e14d9fcf29c75f182d7
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_PATTR_H
#define _SYS_PATTR_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Attribute types and structures.
*/
/*
* Structure shared by {source,destination} physical address+SAP attributes.
*/
typedef struct pattr_addr_s {
} pattr_addr_t;
/*
* Structure used for Hardware Checksum attribute.
*/
typedef struct pattr_hcksum_s {
union {
/*
* Values for hcksum_flags
*/
/* checksum in hardware. */
/* On Receive: IP header checksum */
/* was verified by h/w and is */
/* correct. */
/* complement checksum based on */
/* start, stuff and end offsets. */
/* On Receive : Partial checksum */
/* computed and attached. */
/* + header + payload) checksum for */
/* this packet. */
/* On Receive : Full checksum */
/* computed in h/w and is attached */
/* On Receive: Full checksum status */
/* If set, implies full checksum */
/* computation was successful */
/* i.e. checksum was correct. */
/* If it is not set, IP will also */
/* check the attached h/w computed */
/* checksum value to determine if */
/* checksum was bad */
/*
* Extended hardware offloading flags that also use hcksum_flags
*/
/* On Receive: N/A */
/*
* Structure used for zerocopy attribute.
*/
typedef struct pattr_zcopy_s {
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PATTR_H */