MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lagg_enqueue

Function lagg_enqueue

freebsd/net/if_lagg.c:2253–2273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2251}
2252
2253int
2254lagg_enqueue(struct ifnet *ifp, struct mbuf *m)
2255{
2256
2257#if defined(KERN_TLS) || defined(RATELIMIT)
2258 if (m->m_pkthdr.csum_flags & CSUM_SND_TAG) {
2259 struct lagg_snd_tag *lst;
2260 struct m_snd_tag *mst;
2261
2262 mst = m->m_pkthdr.snd_tag;
2263 lst = mst_to_lst(mst);
2264 if (lst->tag->ifp != ifp) {
2265 m_freem(m);
2266 return (EAGAIN);
2267 }
2268 m->m_pkthdr.snd_tag = m_snd_tag_ref(lst->tag);
2269 m_snd_tag_rele(mst);
2270 }
2271#endif
2272 return (ifp->if_transmit)(ifp, m);
2273}
2274
2275/*
2276 * Simple round robin aggregation

Callers 8

lacp_xmit_lacpduFunction · 0.85
lacp_xmit_markerFunction · 0.85
lacp_marker_inputFunction · 0.85
lagg_rr_startFunction · 0.85
lagg_bcast_startFunction · 0.85
lagg_fail_startFunction · 0.85
lagg_lb_startFunction · 0.85
lagg_lacp_startFunction · 0.85

Calls 4

mst_to_lstFunction · 0.85
m_freemFunction · 0.50
m_snd_tag_refFunction · 0.50
m_snd_tag_releFunction · 0.50

Tested by

no test coverage detected