summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2013-08-19 10:30:15 +0000
committerandre <andre@FreeBSD.org>2013-08-19 10:30:15 +0000
commitb1d72163135887489fa1e210e5c393aff5c24586 (patch)
tree073dda3e140c0a5f92490dcb85c51d6d759dd8ea /sys/netinet
parentee3f3f4b852b1c526f9625d690a02180c796de0b (diff)
downloadFreeBSD-src-b1d72163135887489fa1e210e5c393aff5c24586.zip
FreeBSD-src-b1d72163135887489fa1e210e5c393aff5c24586.tar.gz
Remove unused M_FRAG, M_FIRSTFRAG and M_LASTFRAG tagging from ip_fragment().
There wasn't any real driver (and hardware) support for it. Modern hardware does full fragmentation/segmentation offload instead.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_output.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index d835bd2..b37f508 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -784,7 +784,7 @@ smart_frag_failure:
IPSTAT_INC(ips_odropped);
goto done;
}
- m->m_flags |= (m0->m_flags & M_MCAST) | M_FRAG;
+ m->m_flags |= (m0->m_flags & M_MCAST);
/*
* In the first mbuf, leave room for the link header, then
* copy the original IP header including options. The payload
@@ -801,10 +801,9 @@ smart_frag_failure:
m->m_len = mhlen;
/* XXX do we need to add ip_off below ? */
mhip->ip_off = ((off - hlen) >> 3) + ip_off;
- if (off + len >= ip_len) { /* last fragment */
+ if (off + len >= ip_len)
len = ip_len - off;
- m->m_flags |= M_LASTFRAG;
- } else
+ else
mhip->ip_off |= IP_MF;
mhip->ip_len = htons((u_short)(len + mhlen));
m->m_next = m_copym(m0, off, len, M_NOWAIT);
@@ -831,10 +830,6 @@ smart_frag_failure:
}
IPSTAT_ADD(ips_ofragments, nfrags);
- /* set first marker for fragment chain */
- m0->m_flags |= M_FIRSTFRAG | M_FRAG;
- m0->m_pkthdr.csum_data = nfrags;
-
/*
* Update first fragment by trimming what's been copied out
* and updating header.
OpenPOWER on IntegriCloud