Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/uipc_mbuf.c
Show First 20 Lines • Show All 849 Lines • ▼ Show 20 Lines | for (; m; m = m->m_next) { | ||||
} | } | ||||
break; | break; | ||||
} | } | ||||
count -= m->m_len; | count -= m->m_len; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
void | |||||
m_adj_decap(struct mbuf *mp, int len) | |||||
{ | |||||
uint8_t rsstype; | |||||
m_adj(mp, len); | |||||
if ((mp->m_flags & M_PKTHDR) != 0) { | |||||
/* | |||||
* If flowid was calculated by card from the inner | |||||
ae: s/In/If/ | |||||
* headers, move flowid to the decapsulated mbuf | |||||
* chain, otherwise clear. This depends on the | |||||
* internals of m_adj, which keeps pkthdr as is, in | |||||
* particular not changing rsstype and flowid. | |||||
*/ | |||||
rsstype = mp->m_pkthdr.rsstype; | |||||
if ((rsstype & M_HASHTYPE_INNER) != 0) { | |||||
M_HASHTYPE_SET(mp, rsstype & ~M_HASHTYPE_INNER); | |||||
} else { | |||||
M_HASHTYPE_CLEAR(mp); | |||||
} | |||||
} | |||||
} | |||||
/* | /* | ||||
* Rearange an mbuf chain so that len bytes are contiguous | * Rearange an mbuf chain so that len bytes are contiguous | ||||
* and in the data area of an mbuf (so that mtod will work | * and in the data area of an mbuf (so that mtod will work | ||||
* for a structure of size len). Returns the resulting | * for a structure of size len). Returns the resulting | ||||
* mbuf chain on success, frees it and returns null on failure. | * mbuf chain on success, frees it and returns null on failure. | ||||
* If there is room, it will add up to max_protohdr-len extra bytes to the | * If there is room, it will add up to max_protohdr-len extra bytes to the | ||||
* contiguous region in an attempt to avoid being called next time. | * contiguous region in an attempt to avoid being called next time. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,292 Lines • Show Last 20 Lines |
s/In/If/