Lines 2716-2721
get_packet(adapter_t *adap, unsigned int drop_thres, struct sge_qset *qs,
Link Here
|
2716 |
caddr_t cl; |
2716 |
caddr_t cl; |
2717 |
struct mbuf *m; |
2717 |
struct mbuf *m; |
2718 |
int ret = 0; |
2718 |
int ret = 0; |
|
|
2719 |
int m_len,m_pkthdr_len; |
2719 |
|
2720 |
|
2720 |
mask = fl->size - 1; |
2721 |
mask = fl->size - 1; |
2721 |
prefetch(fl->sdesc[(cidx + 1) & mask].m); |
2722 |
prefetch(fl->sdesc[(cidx + 1) & mask].m); |
Lines 2757-2763
get_packet(adapter_t *adap, unsigned int drop_thres, struct sge_qset *qs,
Link Here
|
2757 |
m_cljset(m, cl, fl->type); |
2758 |
m_cljset(m, cl, fl->type); |
2758 |
} |
2759 |
} |
2759 |
m->m_len = len; |
2760 |
m->m_len = len; |
2760 |
} |
2761 |
} |
|
|
2762 |
|
2763 |
m_len = m->m_len; |
2764 |
m_pkthdr_len = m->m_pkthdr.len; |
2761 |
switch(sopeop) { |
2765 |
switch(sopeop) { |
2762 |
case RSPQ_SOP_EOP: |
2766 |
case RSPQ_SOP_EOP: |
2763 |
ret = 1; |
2767 |
ret = 1; |
Lines 2765-2770
get_packet(adapter_t *adap, unsigned int drop_thres, struct sge_qset *qs,
Link Here
|
2765 |
case RSPQ_SOP: |
2769 |
case RSPQ_SOP: |
2766 |
mh->mh_head = mh->mh_tail = m; |
2770 |
mh->mh_head = mh->mh_tail = m; |
2767 |
m->m_pkthdr.len = len; |
2771 |
m->m_pkthdr.len = len; |
|
|
2772 |
m_pkthdr_len = m->m_pkthdr.len; |
2768 |
break; |
2773 |
break; |
2769 |
case RSPQ_EOP: |
2774 |
case RSPQ_EOP: |
2770 |
ret = 1; |
2775 |
ret = 1; |
Lines 2781-2787
get_packet(adapter_t *adap, unsigned int drop_thres, struct sge_qset *qs,
Link Here
|
2781 |
break; |
2786 |
break; |
2782 |
} |
2787 |
} |
2783 |
if (cxgb_debug) |
2788 |
if (cxgb_debug) |
2784 |
printf("len=%d pktlen=%d\n", m->m_len, m->m_pkthdr.len); |
2789 |
printf("len=%d pktlen=%d\n", m_len, m_pkthdr_len); |
2785 |
done: |
2790 |
done: |
2786 |
if (++fl->cidx == fl->size) |
2791 |
if (++fl->cidx == fl->size) |
2787 |
fl->cidx = 0; |
2792 |
fl->cidx = 0; |