Deleted Added
full compact
if.h (181016) if.h (182413)
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)if.h 8.1 (Berkeley) 6/10/93
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)if.h 8.1 (Berkeley) 6/10/93
30 * $FreeBSD: head/sys/net/if.h 181016 2008-07-30 21:01:51Z jhb $
30 * $FreeBSD: head/sys/net/if.h 182413 2008-08-28 22:05:19Z jfv $
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#ifdef _KERNEL

--- 155 unchanged lines hidden (view full) ---

194 * Capabilities are defined by IFCAP_* below.
195 * struct if_data.ifi_hwassist in mbuf CSUM_ flag form, controlled by above
196 * contains the enabled optional feature & capabilites that can be used
197 * individually per packet and are specified in the mbuf pkthdr.csum_flags
198 * field. IFCAP_* and CSUM_* do not match one to one and CSUM_* may be
199 * more detailed or differenciated than IFCAP_*.
200 * Hwassist features are defined CSUM_* in sys/mbuf.h
201 */
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#ifdef _KERNEL

--- 155 unchanged lines hidden (view full) ---

194 * Capabilities are defined by IFCAP_* below.
195 * struct if_data.ifi_hwassist in mbuf CSUM_ flag form, controlled by above
196 * contains the enabled optional feature & capabilites that can be used
197 * individually per packet and are specified in the mbuf pkthdr.csum_flags
198 * field. IFCAP_* and CSUM_* do not match one to one and CSUM_* may be
199 * more detailed or differenciated than IFCAP_*.
200 * Hwassist features are defined CSUM_* in sys/mbuf.h
201 */
202#define IFCAP_RXCSUM 0x0001 /* can offload checksum on RX */
203#define IFCAP_TXCSUM 0x0002 /* can offload checksum on TX */
204#define IFCAP_NETCONS 0x0004 /* can be a network console */
205#define IFCAP_VLAN_MTU 0x0008 /* VLAN-compatible MTU */
206#define IFCAP_VLAN_HWTAGGING 0x0010 /* hardware VLAN tag support */
207#define IFCAP_JUMBO_MTU 0x0020 /* 9000 byte MTU supported */
208#define IFCAP_POLLING 0x0040 /* driver supports polling */
209#define IFCAP_VLAN_HWCSUM 0x0080 /* can do IFCAP_HWCSUM on VLANs */
210#define IFCAP_TSO4 0x0100 /* can do TCP Segmentation Offload */
211#define IFCAP_TSO6 0x0200 /* can do TCP6 Segmentation Offload */
212#define IFCAP_LRO 0x0400 /* can do Large Receive Offload */
213#define IFCAP_WOL_UCAST 0x0800 /* wake on any unicast frame */
214#define IFCAP_WOL_MCAST 0x1000 /* wake on any multicast frame */
215#define IFCAP_WOL_MAGIC 0x2000 /* wake on any Magic Packet */
216#define IFCAP_TOE4 0x4000 /* interface can offload TCP */
217#define IFCAP_TOE6 0x8000 /* interface can offload TCP6 */
202#define IFCAP_RXCSUM 0x00001 /* can offload checksum on RX */
203#define IFCAP_TXCSUM 0x00002 /* can offload checksum on TX */
204#define IFCAP_NETCONS 0x00004 /* can be a network console */
205#define IFCAP_VLAN_MTU 0x00008 /* VLAN-compatible MTU */
206#define IFCAP_VLAN_HWTAGGING 0x00010 /* hardware VLAN tag support */
207#define IFCAP_JUMBO_MTU 0x00020 /* 9000 byte MTU supported */
208#define IFCAP_POLLING 0x00040 /* driver supports polling */
209#define IFCAP_VLAN_HWCSUM 0x00080 /* can do IFCAP_HWCSUM on VLANs */
210#define IFCAP_TSO4 0x00100 /* can do TCP Segmentation Offload */
211#define IFCAP_TSO6 0x00200 /* can do TCP6 Segmentation Offload */
212#define IFCAP_LRO 0x00400 /* can do Large Receive Offload */
213#define IFCAP_WOL_UCAST 0x00800 /* wake on any unicast frame */
214#define IFCAP_WOL_MCAST 0x01000 /* wake on any multicast frame */
215#define IFCAP_WOL_MAGIC 0x02000 /* wake on any Magic Packet */
216#define IFCAP_TOE4 0x04000 /* interface can offload TCP */
217#define IFCAP_TOE6 0x08000 /* interface can offload TCP6 */
218#define IFCAP_VLAN_HWFILTER 0x10000 /* interface hw can filter vlan tag */
218
219#define IFCAP_HWCSUM (IFCAP_RXCSUM | IFCAP_TXCSUM)
220#define IFCAP_TSO (IFCAP_TSO4 | IFCAP_TSO6)
221#define IFCAP_WOL (IFCAP_WOL_UCAST | IFCAP_WOL_MCAST | IFCAP_WOL_MAGIC)
222#define IFCAP_TOE (IFCAP_TOE4 | IFCAP_TOE6)
223
224#define IFQ_MAXLEN 50
225#define IFNET_SLOWHZ 1 /* granularity is 1 second */

--- 235 unchanged lines hidden ---
219
220#define IFCAP_HWCSUM (IFCAP_RXCSUM | IFCAP_TXCSUM)
221#define IFCAP_TSO (IFCAP_TSO4 | IFCAP_TSO6)
222#define IFCAP_WOL (IFCAP_WOL_UCAST | IFCAP_WOL_MCAST | IFCAP_WOL_MAGIC)
223#define IFCAP_TOE (IFCAP_TOE4 | IFCAP_TOE6)
224
225#define IFQ_MAXLEN 50
226#define IFNET_SLOWHZ 1 /* granularity is 1 second */

--- 235 unchanged lines hidden ---