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_tcp_all_headers(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()
718 tx_pkt_info = &ring->pkt_info; in xlgmac_xmit()
1114 struct xlgmac_pkt_info *pkt_info; in xlgmac_rx_poll() local
1134 pkt_info = &ring->pkt_info; in xlgmac_rx_poll()
1142 memset(pkt_info, 0, sizeof(*pkt_info)); in xlgmac_rx_poll()
1161 pkt_info->attributes, in xlgmac_rx_poll()
1165 pkt_info->attributes, in xlgmac_rx_poll()
1169 pkt_info->attributes, in xlgmac_rx_poll()
1177 if (error || pkt_info->errors) { in xlgmac_rx_poll()
1178 if (pkt_info->errors) in xlgmac_rx_poll()
1236 if (XLGMAC_GET_REG_BITS(pkt_info->attributes, in xlgmac_rx_poll()
1241 if (XLGMAC_GET_REG_BITS(pkt_info->attributes, in xlgmac_rx_poll()
1245 pkt_info->vlan_ctag); in xlgmac_rx_poll()
1249 if (XLGMAC_GET_REG_BITS(pkt_info->attributes, in xlgmac_rx_poll()
1252 skb_set_hash(skb, pkt_info->rss_hash, in xlgmac_rx_poll()
1253 pkt_info->rss_hash_type); in xlgmac_rx_poll()