Lines Matching +full:11 +full:mp

104 static int qlnx_transmit(if_t ifp, struct mbuf  *mp);
106 struct mbuf *mp);
2871 struct mbuf *mp; in qlnx_free_tx_pkt() local
2879 mp = txq->sw_tx_ring[idx].mp; in qlnx_free_tx_pkt()
2882 if ((mp == NULL) || QL_ERR_INJECT(ha, QL_ERR_INJCT_TX_INT_MBUF_NULL)){ in qlnx_free_tx_pkt()
2885 QL_DPRINT1(ha, "(mp == NULL) " in qlnx_free_tx_pkt()
2907 QLNX_INC_OBYTES((ha->ifp), (mp->m_pkthdr.len)); in qlnx_free_tx_pkt()
2915 m_freem(mp); in qlnx_free_tx_pkt()
2928 txq->sw_tx_ring[idx].mp = NULL; in qlnx_free_tx_pkt()
2975 prefetch(txq->sw_tx_ring[idx].mp); in qlnx_tx_int()
2976 prefetch(txq->sw_tx_ring[idx2].mp); in qlnx_tx_int()
2986 qlnx_transmit_locked(if_t ifp, struct qlnx_fastpath *fp, struct mbuf *mp) in qlnx_transmit_locked() argument
2997 if(mp != NULL) in qlnx_transmit_locked()
2998 ret = drbr_enqueue(ifp, fp->tx_br, mp); in qlnx_transmit_locked()
3002 if(mp != NULL) in qlnx_transmit_locked()
3003 ret = drbr_enqueue(ifp, fp->tx_br, mp); in qlnx_transmit_locked()
3005 mp = drbr_peek(ifp, fp->tx_br); in qlnx_transmit_locked()
3007 while (mp != NULL) { in qlnx_transmit_locked()
3008 if (qlnx_send(ha, fp, &mp)) { in qlnx_transmit_locked()
3009 if (mp != NULL) { in qlnx_transmit_locked()
3010 drbr_putback(ifp, fp->tx_br, mp); in qlnx_transmit_locked()
3023 mp = drbr_peek(ifp, fp->tx_br); in qlnx_transmit_locked()
3037 qlnx_transmit(if_t ifp, struct mbuf *mp) in qlnx_transmit() argument
3049 if (M_HASHTYPE_GET(mp) != M_HASHTYPE_NONE) in qlnx_transmit()
3050 rss_id = (mp->m_pkthdr.flowid % ECORE_RSS_IND_TABLE_SIZE) % in qlnx_transmit()
3066 ret = qlnx_transmit_locked(ifp, fp, mp); in qlnx_transmit()
3074 if (mp != NULL && (fp->fp_taskqueue != NULL)) { in qlnx_transmit()
3075 ret = drbr_enqueue(ifp, fp->tx_br, mp); in qlnx_transmit()
3091 struct mbuf *mp; in qlnx_qflush() local
3107 while ((mp = drbr_dequeue(ifp, fp->tx_br)) != NULL) { in qlnx_qflush()
3109 m_freem(mp); in qlnx_qflush()
3134 qlnx_tcp_offset(qlnx_host_t *ha, struct mbuf *mp) in qlnx_tcp_offset() argument
3144 eh = mtod(mp, struct ether_vlan_header *); in qlnx_tcp_offset()
3156 ip = (struct ip *)(mp->m_data + ehdrlen); in qlnx_tcp_offset()
3160 if (mp->m_len < (ehdrlen + ip_hlen)) { in qlnx_tcp_offset()
3161 m_copydata(mp, ehdrlen, sizeof(struct ip), buf); in qlnx_tcp_offset()
3170 ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen); in qlnx_tcp_offset()
3174 if (mp->m_len < (ehdrlen + ip_hlen)) { in qlnx_tcp_offset()
3175 m_copydata(mp, ehdrlen, sizeof (struct ip6_hdr), in qlnx_tcp_offset()
3424 fp->tx_pkts_hist[11]++; in qlnx_send()
3471 fp->tx_pkts_q[11]++; in qlnx_send()
3512 txq->sw_tx_ring[idx].mp = m_head; in qlnx_send()
3849 struct mbuf *mp, *mpf, *mpl; in qlnx_rx_jumbo_chain() local
3855 mpf = mpl = mp = NULL; in qlnx_rx_jumbo_chain()
3861 mp = sw_rx_data->data; in qlnx_rx_jumbo_chain()
3863 if (mp == NULL) { in qlnx_rx_jumbo_chain()
3864 QL_DPRINT1(ha, "mp = NULL\n"); in qlnx_rx_jumbo_chain()
3898 mp->m_flags &= ~M_PKTHDR; in qlnx_rx_jumbo_chain()
3899 mp->m_next = NULL; in qlnx_rx_jumbo_chain()
3900 mp->m_len = len_in_buffer; in qlnx_rx_jumbo_chain()
3903 mpf = mpl = mp; in qlnx_rx_jumbo_chain()
3905 mpl->m_next = mp; in qlnx_rx_jumbo_chain()
3906 mpl = mp; in qlnx_rx_jumbo_chain()
3924 struct mbuf *mp; in qlnx_tpa_start() local
3966 mp = sw_rx_data->data; in qlnx_tpa_start()
3968 QL_DPRINT7(ha, "[rss_id = %d]: mp = %p \n ", fp->rss_id, mp); in qlnx_tpa_start()
3970 if (mp == NULL) { in qlnx_tpa_start()
3971 QL_DPRINT7(ha, "[%d]: mp = NULL\n", fp->rss_id); in qlnx_tpa_start()
4014 rxq->tpa_info[agg_index].rx_buf.data = mp; in qlnx_tpa_start()
4056 rxq->tpa_info[agg_index].mpf = mp; in qlnx_tpa_start()
4152 rxq->tpa_info[agg_index].mpf = mp; in qlnx_tpa_start()
4161 mp->m_len = ha->rx_buf_size; in qlnx_tpa_start()
4162 mp->m_next = mpf; in qlnx_tpa_start()
4163 rxq->tpa_info[agg_index].mpf = mp; in qlnx_tpa_start()
4166 mp->m_len = cqe->len_on_first_bd + cqe->placement_offset; in qlnx_tpa_start()
4167 rxq->tpa_info[agg_index].mpf = mp; in qlnx_tpa_start()
4168 rxq->tpa_info[agg_index].mpl = mp; in qlnx_tpa_start()
4169 mp->m_next = NULL; in qlnx_tpa_start()
4172 mp->m_flags |= M_PKTHDR; in qlnx_tpa_start()
4175 mp->m_pkthdr.rcvif = ifp; in qlnx_tpa_start()
4178 mp->m_pkthdr.csum_flags = 0; in qlnx_tpa_start()
4180 //mp->m_pkthdr.flowid = fp->rss_id; in qlnx_tpa_start()
4181 mp->m_pkthdr.flowid = cqe->rss_hash; in qlnx_tpa_start()
4189 M_HASHTYPE_SET(mp, M_HASHTYPE_RSS_IPV4); in qlnx_tpa_start()
4193 M_HASHTYPE_SET(mp, M_HASHTYPE_RSS_TCP_IPV4); in qlnx_tpa_start()
4197 M_HASHTYPE_SET(mp, M_HASHTYPE_RSS_IPV6); in qlnx_tpa_start()
4201 M_HASHTYPE_SET(mp, M_HASHTYPE_RSS_TCP_IPV6); in qlnx_tpa_start()
4205 M_HASHTYPE_SET(mp, M_HASHTYPE_OPAQUE); in qlnx_tpa_start()
4209 mp->m_pkthdr.csum_flags |= (CSUM_IP_CHECKED | CSUM_IP_VALID | in qlnx_tpa_start()
4212 mp->m_pkthdr.csum_data = 0xFFFF; in qlnx_tpa_start()
4215 mp->m_pkthdr.ether_vtag = le16toh(cqe->vlan_tag); in qlnx_tpa_start()
4216 mp->m_flags |= M_VLANTAG; in qlnx_tpa_start()
4236 struct mbuf *mp; in qlnx_tpa_cont() local
4335 mp = rxq->tpa_info[agg_index].mpl; in qlnx_tpa_cont()
4336 mp->m_len = ha->rx_buf_size; in qlnx_tpa_cont()
4337 mp->m_next = mpf; in qlnx_tpa_cont()
4352 struct mbuf *mp; in qlnx_tpa_end() local
4462 mp = rxq->tpa_info[agg_index].mpl; in qlnx_tpa_end()
4463 mp->m_len = ha->rx_buf_size; in qlnx_tpa_end()
4464 mp->m_next = mpf; in qlnx_tpa_end()
4478 mp = rxq->tpa_info[agg_index].mpf; in qlnx_tpa_end()
4479 m_adj(mp, rxq->tpa_info[agg_index].placement_offset); in qlnx_tpa_end()
4480 mp->m_pkthdr.len = cqe->total_packet_len; in qlnx_tpa_end()
4482 if (mp->m_next == NULL) in qlnx_tpa_end()
4483 mp->m_len = mp->m_pkthdr.len; in qlnx_tpa_end()
4486 mpf = mp; in qlnx_tpa_end()
4503 fp->rss_id, mp->m_pkthdr.csum_data, in qlnx_tpa_end()
4504 (uint64_t)mp->m_pkthdr.csum_flags, mp->m_len, mp->m_pkthdr.len); in qlnx_tpa_end()
4506 if_input(ifp, mp); in qlnx_tpa_end()
4548 register struct mbuf *mp; in qlnx_rx_int() local
4596 mp = sw_rx_data->data; in qlnx_rx_int()
4598 if (mp == NULL) { in qlnx_rx_int()
4599 QL_DPRINT1(ha, "mp = NULL\n"); in qlnx_rx_int()
4619 data = mtod(mp, uint8_t *); in qlnx_rx_int()
4661 m_adj(mp, pad); in qlnx_rx_int()
4662 mp->m_pkthdr.len = len; in qlnx_rx_int()
4665 mp->m_len = len_on_first_bd; in qlnx_rx_int()
4667 if (qlnx_rx_jumbo_chain(ha, fp, mp, in qlnx_rx_int()
4669 m_freem(mp); in qlnx_rx_int()
4679 mp->m_len = len; in qlnx_rx_int()
4682 mp->m_flags |= M_PKTHDR; in qlnx_rx_int()
4685 mp->m_pkthdr.rcvif = ifp; in qlnx_rx_int()
4688 mp->m_pkthdr.csum_flags = 0; in qlnx_rx_int()
4690 mp->m_pkthdr.flowid = fp_cqe->rss_hash; in qlnx_rx_int()
4698 M_HASHTYPE_SET(mp, M_HASHTYPE_RSS_IPV4); in qlnx_rx_int()
4702 M_HASHTYPE_SET(mp, M_HASHTYPE_RSS_TCP_IPV4); in qlnx_rx_int()
4706 M_HASHTYPE_SET(mp, M_HASHTYPE_RSS_IPV6); in qlnx_rx_int()
4710 M_HASHTYPE_SET(mp, M_HASHTYPE_RSS_TCP_IPV6); in qlnx_rx_int()
4714 M_HASHTYPE_SET(mp, M_HASHTYPE_OPAQUE); in qlnx_rx_int()
4719 mp->m_pkthdr.csum_flags |= CSUM_IP_CHECKED; in qlnx_rx_int()
4723 mp->m_pkthdr.csum_flags |= CSUM_IP_VALID; in qlnx_rx_int()
4727 mp->m_pkthdr.csum_data = 0xFFFF; in qlnx_rx_int()
4728 mp->m_pkthdr.csum_flags |= in qlnx_rx_int()
4733 mp->m_pkthdr.ether_vtag = le16toh(fp_cqe->vlan_tag); in qlnx_rx_int()
4734 mp->m_flags |= M_VLANTAG; in qlnx_rx_int()
4742 tcp_lro_queue_mbuf(lro, mp); in qlnx_rx_int()
4744 if_input(ifp, mp); in qlnx_rx_int()
4747 if_input(ifp, mp); in qlnx_rx_int()
6019 register struct mbuf *mp; in qlnx_alloc_rx_buffer() local
6031 mp = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, rx_buf_size); in qlnx_alloc_rx_buffer()
6033 if (mp == NULL) { in qlnx_alloc_rx_buffer()
6038 mp->m_len = mp->m_pkthdr.len = rx_buf_size; in qlnx_alloc_rx_buffer()
6042 ret = bus_dmamap_load_mbuf_sg(ha->rx_tag, map, mp, segs, &nsegs, in qlnx_alloc_rx_buffer()
6047 m_freem(mp); in qlnx_alloc_rx_buffer()
6054 sw_rx_data->data = mp; in qlnx_alloc_rx_buffer()
6073 struct mbuf *mp; in qlnx_alloc_tpa_mbuf() local
6081 mp = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, rx_buf_size); in qlnx_alloc_tpa_mbuf()
6083 if (mp == NULL) { in qlnx_alloc_tpa_mbuf()
6088 mp->m_len = mp->m_pkthdr.len = rx_buf_size; in qlnx_alloc_tpa_mbuf()
6092 ret = bus_dmamap_load_mbuf_sg(ha->rx_tag, map, mp, segs, &nsegs, in qlnx_alloc_tpa_mbuf()
6097 m_freem(mp); in qlnx_alloc_tpa_mbuf()
6107 rx_buf->data = mp; in qlnx_alloc_tpa_mbuf()
6281 struct mbuf *mp; in qlnx_free_tx_br() local
6288 while ((mp = drbr_dequeue(ifp, fp->tx_br)) != NULL) { in qlnx_free_tx_br()
6290 m_freem(mp); in qlnx_free_tx_br()
7586 buf[8], buf[9], buf[10], buf[11], in qlnx_dump_buf8()
7642 case 11: in qlnx_dump_buf8()
7654 buf[7], buf[8], buf[9], buf[10], buf[11]); in qlnx_dump_buf8()
7661 buf[7], buf[8], buf[9], buf[10], buf[11], buf[12]); in qlnx_dump_buf8()
7668 buf[7], buf[8], buf[9], buf[10], buf[11], buf[12], in qlnx_dump_buf8()
7676 buf[7], buf[8], buf[9], buf[10], buf[11], buf[12], in qlnx_dump_buf8()