get source rte_mbuf from ext cluster, which carry rte_mbuf while recving pkt, such as arp.
| 1105 | |
| 1106 | // get source rte_mbuf from ext cluster, which carry rte_mbuf while recving pkt, such as arp. |
| 1107 | void* 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 | |
| 1119 | void |
| 1120 | ff_mbuf_set_vlan_info(void *hdr, uint16_t vlan_tci) { |
no outgoing calls
no test coverage detected