svn commit: r272559 - head/sys/netinet
Robert Watson
rwatson at FreeBSD.org
Sun Oct 5 06:28:54 UTC 2014
Author: rwatson
Date: Sun Oct 5 06:28:53 2014
New Revision: 272559
URL: https://svnweb.freebsd.org/changeset/base/272559
Log:
Eliminate use of M_EXT in IP6_EXTHDR_CHECK() by trimming a redundant
'if'/'else' case: it matches the simple 'else' case that follows.
This reduces awareness of external-storage mechanics outside of the
mbuf allocator.
Reviewed by: bz
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D900
Modified:
head/sys/netinet/ip6.h
Modified: head/sys/netinet/ip6.h
==============================================================================
--- head/sys/netinet/ip6.h Sun Oct 5 06:06:48 2014 (r272558)
+++ head/sys/netinet/ip6.h Sun Oct 5 06:28:53 2014 (r272559)
@@ -277,12 +277,6 @@ do { \
(((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \
IP6STAT_INC(ip6s_exthdrtoolong); \
return ret; \
- } else if ((m)->m_flags & M_EXT) { \
- if ((m)->m_len < (off) + (hlen)) { \
- IP6STAT_INC(ip6s_exthdrtoolong); \
- m_freem(m); \
- return ret; \
- } \
} else { \
if ((m)->m_len < (off) + (hlen)) { \
IP6STAT_INC(ip6s_exthdrtoolong); \
More information about the svn-src-all
mailing list