Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mbuf.h
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | |||||
* LP64: 56 | * LP64: 56 | ||||
* Compile-time assertions in uipc_mbuf.c test these values to ensure that | * Compile-time assertions in uipc_mbuf.c test these values to ensure that | ||||
* they are correct. | * they are correct. | ||||
*/ | */ | ||||
struct pkthdr { | struct pkthdr { | ||||
union { | union { | ||||
struct m_snd_tag *snd_tag; /* send tag, if any */ | struct m_snd_tag *snd_tag; /* send tag, if any */ | ||||
struct ifnet *rcvif; /* rcv interface */ | struct ifnet *rcvif; /* rcv interface */ | ||||
struct { | |||||
uint16_t rcvidx; /* rcv interface index ... */ | |||||
uint16_t rcvgen; /* ... and generation count */ | |||||
}; | }; | ||||
}; | |||||
SLIST_HEAD(packet_tags, m_tag) tags; /* list of packet tags */ | SLIST_HEAD(packet_tags, m_tag) tags; /* list of packet tags */ | ||||
int32_t len; /* total packet length */ | int32_t len; /* total packet length */ | ||||
/* Layer crossing persistent information. */ | /* Layer crossing persistent information. */ | ||||
uint32_t flowid; /* packet's 4-tuple system */ | uint32_t flowid; /* packet's 4-tuple system */ | ||||
uint32_t csum_flags; /* checksum and offload features */ | uint32_t csum_flags; /* checksum and offload features */ | ||||
uint16_t fibnum; /* this packet should use this fib */ | uint16_t fibnum; /* this packet should use this fib */ | ||||
uint8_t numa_domain; /* NUMA domain of recvd pkt */ | uint8_t numa_domain; /* NUMA domain of recvd pkt */ | ||||
▲ Show 20 Lines • Show All 686 Lines • ▼ Show 20 Lines | |||||
int m_unmapped_uiomove(const struct mbuf *, int, struct uio *, | int m_unmapped_uiomove(const struct mbuf *, int, struct uio *, | ||||
int); | int); | ||||
struct mbuf *m_unshare(struct mbuf *, int); | struct mbuf *m_unshare(struct mbuf *, int); | ||||
int m_snd_tag_alloc(struct ifnet *, | int m_snd_tag_alloc(struct ifnet *, | ||||
union if_snd_tag_alloc_params *, struct m_snd_tag **); | union if_snd_tag_alloc_params *, struct m_snd_tag **); | ||||
void m_snd_tag_init(struct m_snd_tag *, struct ifnet *, | void m_snd_tag_init(struct m_snd_tag *, struct ifnet *, | ||||
const struct if_snd_tag_sw *); | const struct if_snd_tag_sw *); | ||||
void m_snd_tag_destroy(struct m_snd_tag *); | void m_snd_tag_destroy(struct m_snd_tag *); | ||||
void m_rcvif_serialize(struct mbuf *); | |||||
struct ifnet *m_rcvif_restore(struct mbuf *); | |||||
static __inline int | static __inline int | ||||
m_gettype(int size) | m_gettype(int size) | ||||
{ | { | ||||
int type; | int type; | ||||
switch (size) { | switch (size) { | ||||
case MSIZE: | case MSIZE: | ||||
▲ Show 20 Lines • Show All 811 Lines • Show Last 20 Lines |