Lines Matching refs:pkt_info
64 struct xlgmac_pkt_info *pkt_info) in xlgmac_prep_vlan() argument
67 pkt_info->vlan_ctag = skb_vlan_tag_get(skb); in xlgmac_prep_vlan()
71 struct xlgmac_pkt_info *pkt_info) in xlgmac_prep_tso() argument
75 if (!XLGMAC_GET_REG_BITS(pkt_info->attributes, in xlgmac_prep_tso()
84 pkt_info->header_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in xlgmac_prep_tso()
85 pkt_info->tcp_header_len = tcp_hdrlen(skb); in xlgmac_prep_tso()
86 pkt_info->tcp_payload_len = skb->len - pkt_info->header_len; in xlgmac_prep_tso()
87 pkt_info->mss = skb_shinfo(skb)->gso_size; in xlgmac_prep_tso()
89 XLGMAC_PR("header_len=%u\n", pkt_info->header_len); in xlgmac_prep_tso()
91 pkt_info->tcp_header_len, pkt_info->tcp_payload_len); in xlgmac_prep_tso()
92 XLGMAC_PR("mss=%u\n", pkt_info->mss); in xlgmac_prep_tso()
97 pkt_info->tx_packets = skb_shinfo(skb)->gso_segs; in xlgmac_prep_tso()
98 pkt_info->tx_bytes += (pkt_info->tx_packets - 1) * pkt_info->header_len; in xlgmac_prep_tso()
117 struct xlgmac_pkt_info *pkt_info) in xlgmac_prep_tx_pkt() argument
124 pkt_info->skb = skb; in xlgmac_prep_tx_pkt()
127 pkt_info->desc_count = 0; in xlgmac_prep_tx_pkt()
129 pkt_info->tx_packets = 1; in xlgmac_prep_tx_pkt()
130 pkt_info->tx_bytes = skb->len; in xlgmac_prep_tx_pkt()
136 pkt_info->desc_count++; in xlgmac_prep_tx_pkt()
140 pkt_info->desc_count++; in xlgmac_prep_tx_pkt()
142 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_prep_tx_pkt()
143 pkt_info->attributes, in xlgmac_prep_tx_pkt()
147 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_prep_tx_pkt()
148 pkt_info->attributes, in xlgmac_prep_tx_pkt()
153 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_prep_tx_pkt()
154 pkt_info->attributes, in xlgmac_prep_tx_pkt()
165 pkt_info->desc_count++; in xlgmac_prep_tx_pkt()
168 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_prep_tx_pkt()
169 pkt_info->attributes, in xlgmac_prep_tx_pkt()
176 pkt_info->desc_count++; in xlgmac_prep_tx_pkt()
183 pkt_info->desc_count++; in xlgmac_prep_tx_pkt()
719 tx_pkt_info = &ring->pkt_info; in xlgmac_xmit()
1115 struct xlgmac_pkt_info *pkt_info; in xlgmac_rx_poll() local
1135 pkt_info = &ring->pkt_info; in xlgmac_rx_poll()
1143 memset(pkt_info, 0, sizeof(*pkt_info)); in xlgmac_rx_poll()
1162 pkt_info->attributes, in xlgmac_rx_poll()
1166 pkt_info->attributes, in xlgmac_rx_poll()
1170 pkt_info->attributes, in xlgmac_rx_poll()
1178 if (error || pkt_info->errors) { in xlgmac_rx_poll()
1179 if (pkt_info->errors) in xlgmac_rx_poll()
1237 if (XLGMAC_GET_REG_BITS(pkt_info->attributes, in xlgmac_rx_poll()
1242 if (XLGMAC_GET_REG_BITS(pkt_info->attributes, in xlgmac_rx_poll()
1246 pkt_info->vlan_ctag); in xlgmac_rx_poll()
1250 if (XLGMAC_GET_REG_BITS(pkt_info->attributes, in xlgmac_rx_poll()
1253 skb_set_hash(skb, pkt_info->rss_hash, in xlgmac_rx_poll()
1254 pkt_info->rss_hash_type); in xlgmac_rx_poll()