MCPcopy Index your code
hub / github.com/F-Stack/f-stack / ff_rte_frm_extcl

Function ff_rte_frm_extcl

lib/ff_veth.c:1107–1117  ·  view source on GitHub ↗

get source rte_mbuf from ext cluster, which carry rte_mbuf while recving pkt, such as arp.

Source from the content-addressed store, hash-verified

1105
1106// get source rte_mbuf from ext cluster, which carry rte_mbuf while recving pkt, such as arp.
1107void* ff_rte_frm_extcl(void* mbuf)
1108{
1109 struct mbuf *bsd_mbuf = mbuf;
1110
1111 if ( (bsd_mbuf->m_flags & M_EXT) &&
1112 bsd_mbuf->m_ext.ext_type == EXT_DISPOSABLE && bsd_mbuf->m_ext.ext_free == ff_mbuf_ext_free ) {
1113 return bsd_mbuf->m_ext.ext_arg1;
1114 }
1115 else
1116 return NULL;
1117}
1118
1119void
1120ff_mbuf_set_vlan_info(void *hdr, uint16_t vlan_tci) {

Callers 2

ff_mbuf_ext_freeFunction · 0.85
ff_extcl_to_rteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected