From 19da85af4a083ce6f05e67a3b9740ca3149f21c9 Mon Sep 17 00:00:00 2001 From: jmg Date: Thu, 17 Mar 2005 19:34:57 +0000 Subject: 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 --- sys/sys/mbuf.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/sys/mbuf.h') 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)); -- cgit v1.1