Lines Matching refs:m_new
2663 struct mbuf *m_new; in hn_txdesc_dmamap_load() local
2665 m_new = m_collapse(m, M_NOWAIT, HN_TX_DATA_SEGCNT_MAX); in hn_txdesc_dmamap_load()
2666 if (m_new == NULL) in hn_txdesc_dmamap_load()
2669 *m_head = m = m_new; in hn_txdesc_dmamap_load()
3419 struct mbuf *m_new, *n; in hn_rxpkt() local
3456 m_new = m_gethdr(M_NOWAIT, MT_DATA); in hn_rxpkt()
3457 if (m_new == NULL) { in hn_rxpkt()
3461 memcpy(mtod(m_new, void *), rxr->rsc.frag_data[0], in hn_rxpkt()
3463 m_new->m_pkthdr.len = m_new->m_len = rxr->rsc.frag_len[0]; in hn_rxpkt()
3477 m_new = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, size); in hn_rxpkt()
3478 if (m_new == NULL) { in hn_rxpkt()
3483 n = m_new; in hn_rxpkt()
3491 m_new->m_pkthdr.len += rxr->rsc.frag_len[i]; in hn_rxpkt()
3498 m_new->m_pkthdr.rcvif = ifp; in hn_rxpkt()
3507 m_new->m_pkthdr.csum_flags |= in hn_rxpkt()
3515 m_new->m_pkthdr.csum_flags |= in hn_rxpkt()
3517 m_new->m_pkthdr.csum_data = 0xffff; in hn_rxpkt()
3536 hn_rxpkt_proto(m_new, &l3proto, &l4proto); in hn_rxpkt()
3543 m_new->m_pkthdr.csum_flags |= in hn_rxpkt()
3546 m_new->m_pkthdr.csum_data = 0xffff; in hn_rxpkt()
3554 m_new->m_pkthdr.csum_flags |= in hn_rxpkt()
3557 m_new->m_pkthdr.csum_data = 0xffff; in hn_rxpkt()
3562 m_new->m_pkthdr.csum_flags |= in hn_rxpkt()
3569 m_new->m_pkthdr.ether_vtag = EVL_MAKETAG( in hn_rxpkt()
3573 m_new->m_flags |= M_VLANTAG; in hn_rxpkt()
3600 m_new->m_pkthdr.flowid = *(rxr->rsc.hash_value); in hn_rxpkt()
3633 hn_rxpkt_proto(m_new, in hn_rxpkt()
3675 m_new->m_pkthdr.flowid = rxr->hn_rx_idx; in hn_rxpkt()
3678 M_HASHTYPE_SET(m_new, hash_type); in hn_rxpkt()
3691 ETHER_BPF_MTAP(hn_ifp, m_new); in hn_rxpkt()
3697 if_inc_counter(hn_ifp, IFCOUNTER_IBYTES, m_new->m_pkthdr.len); in hn_rxpkt()
3699 KASSERT(m_new->m_len >= ETHER_HDR_LEN, ("not ethernet frame")); in hn_rxpkt()
3700 eh = mtod(m_new, struct ether_header *); in hn_rxpkt()
3712 if (hn_lro_rx(lro, m_new) == 0) { in hn_rxpkt()
3719 if_input(ifp, m_new); in hn_rxpkt()
4899 hn_rxpkt_proto(const struct mbuf *m_new, int *l3proto, int *l4proto) in hn_rxpkt_proto() argument
4907 KASSERT(m_new->m_len >= hoff, ("not ethernet frame")); in hn_rxpkt_proto()
4909 eh = mtod(m_new, const struct ether_header *); in hn_rxpkt_proto()
4915 if (m_new->m_len < hoff) in hn_rxpkt_proto()
4917 evl = mtod(m_new, const struct ether_vlan_header *); in hn_rxpkt_proto()
4923 *l4proto = hn_check_iplen(m_new, hoff); in hn_rxpkt_proto()