summaryrefslogtreecommitdiffstats
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2001-09-18 20:13:03 +0000
committerjlemon <jlemon@FreeBSD.org>2001-09-18 20:13:03 +0000
commit28193b25ab7bec0c525aac3dc9957b0199098d20 (patch)
treec2f2dac73066a16f492def75c22be3c3ade09152 /sys/net/if.h
parent892ce726ef9d9d3062a9bcd6056508a168fcdfd7 (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h7
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 */
OpenPOWER on IntegriCloud