diff options
author | Andrew Gallatin <gallatin@FreeBSD.org> | 2008-02-14 00:09:59 +0000 |
---|---|---|
committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2008-02-14 00:09:59 +0000 |
commit | 37d89b0c5e335f5114e789bc3b6d53ec60bb1097 (patch) | |
tree | 00a5f5888189bcd5553bb21bf312c88a133dc599 /sys/dev/mxge/if_mxge_var.h | |
parent | ad69e26b692a0947e997d6fb47f9949f5b19d597 (diff) | |
download | src-37d89b0c5e335f5114e789bc3b6d53ec60bb1097.tar.gz src-37d89b0c5e335f5114e789bc3b6d53ec60bb1097.zip |
Add minimally invasive shims to ease MFCs of mxge back as far
as RELENG_6
Sponsored by: Myricom, Inc.
Notes
Notes:
svn path=/head/; revision=176261
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 b6f9c8bd0795..8e65e7fcb938 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; |