Add a csum_flags quirk for devices (like the bcm570x) which hand back
Rx-offloaded TCP or UDP checksums which do not include the transport-layer pseudo-header. As discussed with Jason Thorpe circa 2003-03.
This commit is contained in:
parent
fddebe9b9c
commit
f3193a1cc9
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mbuf.h,v 1.84 2003/06/26 09:55:10 itojun Exp $ */
|
||||
/* $NetBSD: mbuf.h,v 1.85 2003/07/27 04:16:23 jonathan Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1999, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -176,6 +176,12 @@ struct pkthdr {
|
|||
#define M_CSUM_IPv4 0x00000040 /* IPv4 header */
|
||||
#define M_CSUM_IPv4_BAD 0x00000080 /* IPv4 header checksum bad */
|
||||
|
||||
/* Checksum-assist quirks: keep separate from jump-table bits. */
|
||||
#define M_CSUM_NO_PSEUDOHDR 0x80000000 /* Rx M_CSUM_DATA does not include
|
||||
* the UDP/TCP pseudo-hdr, and
|
||||
* is not yet 1s-complemented.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Max # of pages we can attach to m_ext. This is carefully chosen
|
||||
* to be able to handle SOSEND_LOAN_CHUNK with our minimum sized page.
|
||||
|
|
Loading…
Reference in New Issue