summaryrefslogtreecommitdiffstats
path: root/sys/sys/mbuf.h
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2005-03-17 19:34:57 +0000
committerjmg <jmg@FreeBSD.org>2005-03-17 19:34:57 +0000
commit19da85af4a083ce6f05e67a3b9740ca3149f21c9 (patch)
tree82aef6788a453aea9f3b1916ad69603245947fb3 /sys/sys/mbuf.h
parent755ffaa47d613fc8fe32776a907f4d8e7a8c9c4d (diff)
downloadFreeBSD-src-19da85af4a083ce6f05e67a3b9740ca3149f21c9.zip
FreeBSD-src-19da85af4a083ce6f05e67a3b9740ca3149f21c9.tar.gz
add m_copyup function.. This can be used to help make our ip stack less
alignment restrictive, and help performance on some ethernet cards which currently copy the entire packet a couple bytes to get the packet aligned properly... Wordsmithing by: dwhite Obtained from: NetBSD (code only) I'll clean it up later: rwatson
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r--sys/sys/mbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 0703916..a3d2a61 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -564,6 +564,7 @@ void m_copydata(const struct mbuf *, int, int, caddr_t);
struct mbuf *m_copym(struct mbuf *, int, int, int);
struct mbuf *m_copypacket(struct mbuf *, int);
void m_copy_pkthdr(struct mbuf *, struct mbuf *);
+struct mbuf *m_copyup(struct mbuf *n, int len, int dstoff);
struct mbuf *m_defrag(struct mbuf *, int);
struct mbuf *m_devget(char *, int, int, struct ifnet *,
void (*)(char *, caddr_t, u_int));
OpenPOWER on IntegriCloud