• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/al_eth/

Lines Matching refs:mbuf

38 #include <sys/mbuf.h>
217 static int al_mq_start(struct ifnet *, struct mbuf *);
236 /* flag for napi-like mbuf processing, controlled from sysctl */
1063 /* Get mbuf using UMA allocator */
1077 device_printf(rx_ring->dev, "failed to map mbuf, error = %d\n",
1164 struct mbuf *mbuf;
1171 mbuf = tx_info->m;
1176 "tx_poll: q %d mbuf %p completed\n", qid, mbuf);
1181 m_freem(mbuf);
1200 struct al_eth_pkt *hal_pkt, struct mbuf *m)
1297 al_eth_xmit_mbuf(struct al_eth_ring *tx_ring, struct mbuf *m)
1336 device_printf(tx_ring->dev, "mbuf is NULL\n");
1346 struct mbuf *m_new;
1355 "failed to defrag mbuf\n");
1362 "failed to map mbuf, error %d\n", error);
1367 "failed to map mbuf, error %d\n", error);
1477 * al_eth_rx_checksum - indicate in mbuf if hw indicated a good cksum
1480 * @mbuf: mbuf currently being received and modified
1484 struct al_eth_pkt *hal_pkt, struct mbuf *mbuf)
1510 mbuf->m_pkthdr.csum_flags = 0;
1515 mbuf->m_pkthdr.csum_flags = CSUM_IP_CHECKED;
1516 mbuf->m_pkthdr.csum_flags |= CSUM_IP_VALID;
1521 static struct mbuf*
1526 struct mbuf *mbuf;
1541 mbuf = rx_info->m;
1542 mbuf->m_pkthdr.len = len;
1543 mbuf->m_len = len;
1544 mbuf->m_pkthdr.rcvif = rx_ring->netdev;
1545 mbuf->m_flags |= M_PKTHDR;
1548 struct mbuf *smbuf;
1560 memcpy(smbuf->m_data, mbuf->m_data + AL_IP_ALIGNMENT_OFFSET, len);
1574 mbuf->m_data = mbuf->m_data + AL_IP_ALIGNMENT_OFFSET;
1582 return (mbuf);
1589 struct mbuf *mbuf;
1626 /* allocate mbuf and fill it */
1627 mbuf = al_eth_rx_mbuf(rx_ring->adapter, rx_ring, hal_pkt, descs,
1631 if (unlikely(mbuf == NULL)) {
1639 al_eth_rx_checksum(rx_ring->adapter, hal_pkt, mbuf);
1642 mbuf->m_pkthdr.flowid = qid;
1643 M_HASHTYPE_SET(mbuf, M_HASHTYPE_OPAQUE);
1651 ((mbuf->m_pkthdr.csum_flags & CSUM_IP_VALID) != 0) &&
1660 if (tcp_lro_rx(&rx_ring->lro, mbuf, 0) == 0)
1666 (*rx_ring->netdev->if_input)(rx_ring->netdev, mbuf);
1698 struct mbuf *mbuf;
1707 mbuf = drbr_dequeue(NULL, tx_ring->br);
1710 if (mbuf == NULL)
1713 al_eth_xmit_mbuf(tx_ring, mbuf);
1721 mbuf = drbr_dequeue(NULL, tx_ring->br);
1723 if (mbuf == NULL)
1725 al_eth_xmit_mbuf(tx_ring, mbuf);
1731 al_mq_start(struct ifnet *ifp, struct mbuf *m)
3014 * Determine the correct mbuf pool