diff options
author | jlemon <jlemon@FreeBSD.org> | 2001-09-18 20:13:03 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2001-09-18 20:13:03 +0000 |
commit | 28193b25ab7bec0c525aac3dc9957b0199098d20 (patch) | |
tree | c2f2dac73066a16f492def75c22be3c3ade09152 | |
parent | 892ce726ef9d9d3062a9bcd6056508a168fcdfd7 (diff) | |
download | FreeBSD-src-28193b25ab7bec0c525aac3dc9957b0199098d20.zip FreeBSD-src-28193b25ab7bec0c525aac3dc9957b0199098d20.tar.gz |
Split HWCSUM into two components: RX and TX, for the benefit of drivers
which can only do checksum offloading in one direction.
-rw-r--r-- | sys/net/if.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/if.h b/sys/net/if.h index b0cc905..eb4d199 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -137,8 +137,11 @@ struct if_data { IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_SMART) /* Capabilities that interfaces can advertise. */ -#define IFCAP_HWCSUM 0x0001 /* can do hardware checksums */ -#define IFCAP_NETCONS 0x0002 /* can be a network console */ +#define IFCAP_RXCSUM 0x0001 /* can offload checksum on RX */ +#define IFCAP_TXCSUM 0x0002 /* can offload checksum on TX */ +#define IFCAP_NETCONS 0x0004 /* can be a network console */ + +#define IFCAP_HWCSUM (IFCAP_RXCSUM | IFCAP_TXCSUM) #define IFQ_MAXLEN 50 #define IFNET_SLOWHZ 1 /* granularity is 1 second */ |