Add beginning of TCP Segment Offload support.
This commit is contained in:
parent
04c00a86d4
commit
4acc1b7c25
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: if.h,v 1.102 2005/02/28 18:44:45 jonathan Exp $ */
|
/* $NetBSD: if.h,v 1.103 2005/03/06 00:08:30 matt Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
|
||||||
|
@ -347,6 +347,7 @@ struct ifnet { /* and the entries */
|
||||||
#define IFCAP_CSUM_UDPv6 0x0010 /* can do IPv6/UDP checksums */
|
#define IFCAP_CSUM_UDPv6 0x0010 /* can do IPv6/UDP checksums */
|
||||||
#define IFCAP_CSUM_TCPv4_Rx 0x0020 /* can do IPv4/TCP (Rx only) */
|
#define IFCAP_CSUM_TCPv4_Rx 0x0020 /* can do IPv4/TCP (Rx only) */
|
||||||
#define IFCAP_CSUM_UDPv4_Rx 0x0040 /* can do IPv4/UDP (Rx only) */
|
#define IFCAP_CSUM_UDPv4_Rx 0x0040 /* can do IPv4/UDP (Rx only) */
|
||||||
|
#define IFCAP_TSOv4 0x0080 /* can do TCPv4 segmentation offload */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Output queues (ifp->if_snd) and internetwork datagram level (pup level 1)
|
* Output queues (ifp->if_snd) and internetwork datagram level (pup level 1)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: mbuf.h,v 1.104 2005/02/26 22:25:34 perry Exp $ */
|
/* $NetBSD: mbuf.h,v 1.105 2005/03/06 00:08:30 matt Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996, 1997, 1999, 2001 The NetBSD Foundation, Inc.
|
* Copyright (c) 1996, 1997, 1999, 2001 The NetBSD Foundation, Inc.
|
||||||
|
@ -158,6 +158,7 @@ struct pkthdr {
|
||||||
int len; /* total packet length */
|
int len; /* total packet length */
|
||||||
int csum_flags; /* checksum flags */
|
int csum_flags; /* checksum flags */
|
||||||
u_int32_t csum_data; /* checksum data */
|
u_int32_t csum_data; /* checksum data */
|
||||||
|
u_int segsz; /* segment size */
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -172,6 +173,7 @@ struct pkthdr {
|
||||||
#define M_CSUM_UDPv6 0x00000020 /* IPv6 UDP header/payload */
|
#define M_CSUM_UDPv6 0x00000020 /* IPv6 UDP header/payload */
|
||||||
#define M_CSUM_IPv4 0x00000040 /* IPv4 header */
|
#define M_CSUM_IPv4 0x00000040 /* IPv4 header */
|
||||||
#define M_CSUM_IPv4_BAD 0x00000080 /* IPv4 header checksum bad */
|
#define M_CSUM_IPv4_BAD 0x00000080 /* IPv4 header checksum bad */
|
||||||
|
#define M_CSUM_TSOv4 0x00000100 /* TCPv4 segmentation offload */
|
||||||
|
|
||||||
/* Checksum-assist quirks: keep separate from jump-table bits. */
|
/* Checksum-assist quirks: keep separate from jump-table bits. */
|
||||||
#define M_CSUM_NO_PSEUDOHDR 0x80000000 /* Rx csum_data does not include
|
#define M_CSUM_NO_PSEUDOHDR 0x80000000 /* Rx csum_data does not include
|
||||||
|
|
Loading…
Reference in New Issue