Lines Matching refs:packet

1223 				struct xgbe_packet_data *packet)  in xgbe_prep_tx_tstamp()  argument
1227 if (XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, PTP)) { in xgbe_prep_tx_tstamp()
1231 XGMAC_SET_BITS(packet->attributes, in xgbe_prep_tx_tstamp()
1240 if (!XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, PTP)) in xgbe_prep_tx_tstamp()
1244 static void xgbe_prep_vlan(struct sk_buff *skb, struct xgbe_packet_data *packet) in xgbe_prep_vlan() argument
1247 packet->vlan_ctag = skb_vlan_tag_get(skb); in xgbe_prep_vlan()
1250 static int xgbe_prep_tso(struct sk_buff *skb, struct xgbe_packet_data *packet) in xgbe_prep_tso() argument
1254 if (!XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, in xgbe_prep_tso()
1262 packet->header_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in xgbe_prep_tso()
1263 packet->tcp_header_len = tcp_hdrlen(skb); in xgbe_prep_tso()
1264 packet->tcp_payload_len = skb->len - packet->header_len; in xgbe_prep_tso()
1265 packet->mss = skb_shinfo(skb)->gso_size; in xgbe_prep_tso()
1266 DBGPR(" packet->header_len=%u\n", packet->header_len); in xgbe_prep_tso()
1268 packet->tcp_header_len, packet->tcp_payload_len); in xgbe_prep_tso()
1269 DBGPR(" packet->mss=%u\n", packet->mss); in xgbe_prep_tso()
1274 packet->tx_packets = skb_shinfo(skb)->gso_segs; in xgbe_prep_tso()
1275 packet->tx_bytes += (packet->tx_packets - 1) * packet->header_len; in xgbe_prep_tso()
1295 struct xgbe_packet_data *packet) in xgbe_packet_info() argument
1302 packet->skb = skb; in xgbe_packet_info()
1305 packet->rdesc_count = 0; in xgbe_packet_info()
1307 packet->tx_packets = 1; in xgbe_packet_info()
1308 packet->tx_bytes = skb->len; in xgbe_packet_info()
1314 packet->rdesc_count++; in xgbe_packet_info()
1318 packet->rdesc_count++; in xgbe_packet_info()
1320 XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, in xgbe_packet_info()
1322 XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, in xgbe_packet_info()
1325 XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, in xgbe_packet_info()
1334 packet->rdesc_count++; in xgbe_packet_info()
1337 XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, in xgbe_packet_info()
1343 XGMAC_SET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, in xgbe_packet_info()
1347 packet->rdesc_count++; in xgbe_packet_info()
1354 packet->rdesc_count++; in xgbe_packet_info()
1467 struct xgbe_packet_data *packet; in xgbe_xmit() local
1476 packet = &ring->packet_data; in xgbe_xmit()
1487 memset(packet, 0, sizeof(*packet)); in xgbe_xmit()
1488 xgbe_packet_info(pdata, ring, skb, packet); in xgbe_xmit()
1491 ret = xgbe_maybe_stop_tx_queue(channel, ring, packet->rdesc_count); in xgbe_xmit()
1495 ret = xgbe_prep_tso(skb, packet); in xgbe_xmit()
1501 xgbe_prep_vlan(skb, packet); in xgbe_xmit()
1508 xgbe_prep_tx_tstamp(pdata, skb, packet); in xgbe_xmit()
1511 netdev_tx_sent_queue(txq, packet->tx_bytes); in xgbe_xmit()
1828 u8 *packet; in xgbe_create_skb() local
1835 packet = page_address(rdata->rx.hdr.pa.pages) + in xgbe_create_skb()
1839 skb_copy_to_linear_data(skb, packet, copy_len); in xgbe_create_skb()
1919 struct xgbe_packet_data *packet; in xgbe_rx_poll() local
1938 packet = &ring->packet_data; in xgbe_rx_poll()
1950 memset(packet, 0, sizeof(*packet)); in xgbe_rx_poll()
1970 incomplete = XGMAC_GET_BITS(packet->attributes, in xgbe_rx_poll()
1973 context_next = XGMAC_GET_BITS(packet->attributes, in xgbe_rx_poll()
1976 context = XGMAC_GET_BITS(packet->attributes, in xgbe_rx_poll()
1984 if (error || packet->errors) { in xgbe_rx_poll()
1985 if (packet->errors) in xgbe_rx_poll()
2046 if (XGMAC_GET_BITS(packet->attributes, in xgbe_rx_poll()
2050 if (XGMAC_GET_BITS(packet->attributes, in xgbe_rx_poll()
2053 packet->vlan_ctag); in xgbe_rx_poll()
2055 if (XGMAC_GET_BITS(packet->attributes, in xgbe_rx_poll()
2060 packet->rx_tstamp); in xgbe_rx_poll()
2065 if (XGMAC_GET_BITS(packet->attributes, in xgbe_rx_poll()
2067 skb_set_hash(skb, packet->rss_hash, in xgbe_rx_poll()
2068 packet->rss_hash_type); in xgbe_rx_poll()