diff options
author | jfv <jfv@FreeBSD.org> | 2010-03-30 19:09:18 +0000 |
---|---|---|
committer | jfv <jfv@FreeBSD.org> | 2010-03-30 19:09:18 +0000 |
commit | 6244a53a85ffc2f56f41323d2488022695d9f5d9 (patch) | |
tree | 9f7aae6a02f077e52b614eba3171d9e849092f44 /sys/dev/ixgbe/ixgbe.h | |
parent | b82a4c003c3dc906ba00076ec7902ea35165ed04 (diff) | |
download | FreeBSD-src-6244a53a85ffc2f56f41323d2488022695d9f5d9.zip FreeBSD-src-6244a53a85ffc2f56f41323d2488022695d9f5d9.tar.gz |
Thanks to Michael Tuexen for adding SCTP support for 82599,
also for finding a one character bug that kept TSO from working.
Sometimes with direct attach cables a failure can occur in init,
the old method of calling detach was broken, there is no way to
return an error to the system from init, so I have changed it to
return failure thru the ioctl.
And, have fixed the ALTQ code changes of Max Laier, sorry Max :)
Diffstat (limited to 'sys/dev/ixgbe/ixgbe.h')
-rw-r--r-- | sys/dev/ixgbe/ixgbe.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ixgbe/ixgbe.h b/sys/dev/ixgbe/ixgbe.h index 008d2c8..f598b8f 100644 --- a/sys/dev/ixgbe/ixgbe.h +++ b/sys/dev/ixgbe/ixgbe.h @@ -179,7 +179,13 @@ #define IXGBE_RX_HDR 128 #define IXGBE_VFTA_SIZE 128 #define IXGBE_BR_SIZE 4096 -#define CSUM_OFFLOAD 7 /* Bits in csum flags */ + +/* Offload bits in mbuf flag */ +#if __FreeBSD_version >= 800000 +#define CSUM_OFFLOAD (CSUM_IP|CSUM_TCP|CSUM_UDP|CSUM_SCTP) +#else +#define CSUM_OFFLOAD (CSUM_IP|CSUM_TCP|CSUM_UDP) +#endif /* For 6.X code compatibility */ #if !defined(ETHER_BPF_MTAP) |