diff options
author | gallatin <gallatin@FreeBSD.org> | 2008-02-14 00:09:59 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2008-02-14 00:09:59 +0000 |
commit | 960266ca30f2cc722fa489cd00452c17a252f4e3 (patch) | |
tree | 00a5f5888189bcd5553bb21bf312c88a133dc599 /sys/dev/mxge/if_mxge_var.h | |
parent | fd8332efc0afba46de3a399b5eab52ffebe88bdf (diff) | |
download | FreeBSD-src-960266ca30f2cc722fa489cd00452c17a252f4e3.zip FreeBSD-src-960266ca30f2cc722fa489cd00452c17a252f4e3.tar.gz |
Add minimally invasive shims to ease MFCs of mxge back as far
as RELENG_6
Sponsored by: Myricom, Inc.
Diffstat (limited to 'sys/dev/mxge/if_mxge_var.h')
-rw-r--r-- | sys/dev/mxge/if_mxge_var.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/dev/mxge/if_mxge_var.h b/sys/dev/mxge/if_mxge_var.h index b6f9c8b..8e65e7f 100644 --- a/sys/dev/mxge/if_mxge_var.h +++ b/sys/dev/mxge/if_mxge_var.h @@ -45,6 +45,34 @@ $FreeBSD$ #define MXGE_VIRT_JUMBOS 0 #endif +#ifndef VLAN_CAPABILITIES +#define VLAN_CAPABILITIES(ifp) +#define mxge_vlans_active(sc) (sc)->ifp->if_nvlans +#else +#define mxge_vlans_active(sc) (sc)->ifp->if_vlantrunk +#endif + +#ifndef VLAN_TAG_VALUE +#define MXGE_NEW_VLAN_API +#endif + +#ifndef IFCAP_LRO +#define IFCAP_LRO 0 +#endif + +#ifndef IFCAP_TSO +#define IFCAP_TSO 0 +#endif + +#ifndef IFCAP_TSO4 +#define IFCAP_TSO4 0 +#endif + +#ifndef CSUM_TSO +#define CSUM_TSO 0 +#endif + + typedef struct { void *addr; bus_addr_t bus_addr; |