Lines Matching defs:hal_pkt

1193     struct al_eth_pkt *hal_pkt, struct mbuf *m)
1222 hal_pkt->flags |= (AL_ETH_TX_FLAGS_TSO |
1225 hal_pkt->flags |= (AL_ETH_TX_FLAGS_L4_CSUM |
1248 hal_pkt->l3_proto_idx = AL_ETH_PROTO_ID_IPv4;
1251 hal_pkt->flags |= AL_ETH_TX_FLAGS_IPV4_L3_CSUM;
1253 hal_pkt->l4_proto_idx = AL_ETH_PROTO_ID_TCP;
1255 hal_pkt->l4_proto_idx = AL_ETH_PROTO_ID_UDP;
1261 hal_pkt->l3_proto_idx = AL_ETH_PROTO_ID_IPv6;
1266 hal_pkt->l4_proto_idx = AL_ETH_PROTO_ID_TCP;
1268 hal_pkt->l4_proto_idx = AL_ETH_PROTO_ID_UDP;
1282 hal_pkt->meta = meta;
1284 hal_pkt->meta = NULL;
1297 struct al_eth_pkt *hal_pkt;
1326 hal_pkt = &tx_info->hal_pkt;
1366 hal_pkt->flags = AL_ETH_TX_FLAGS_INT;
1367 al_eth_tx_csum(tx_ring, tx_info, hal_pkt, m);
1369 al_buf = hal_pkt->bufs;
1377 hal_pkt->num_of_bufs = nsegs;
1380 tx_info->tx_descs = al_eth_tx_pkt_prepare(tx_ring->dma_q, hal_pkt);
1472 * @hal_pkt: HAL structure for the packet
1477 struct al_eth_pkt *hal_pkt, struct mbuf *mbuf)
1482 (hal_pkt->l3_proto_idx == AL_ETH_PROTO_ID_IPv4) &&
1483 (hal_pkt->flags & AL_ETH_RX_FLAGS_L3_CSUM_ERR))) {
1490 (hal_pkt->l3_proto_idx == AL_ETH_PROTO_ID_IPv6) &&
1491 (hal_pkt->flags & AL_ETH_RX_FLAGS_L3_CSUM_ERR))) {
1497 if (likely((hal_pkt->l4_proto_idx == AL_ETH_PROTO_ID_TCP) ||
1498 (hal_pkt->l4_proto_idx == AL_ETH_PROTO_ID_UDP))) {
1499 if (unlikely(hal_pkt->flags & AL_ETH_RX_FLAGS_L4_CSUM_ERR)) {
1516 struct al_eth_ring *rx_ring, struct al_eth_pkt *hal_pkt,
1524 len = hal_pkt->bufs[0].len;
1584 struct al_eth_pkt *hal_pkt = &rx_ring->hal_pkt;
1598 descs = al_eth_pkt_rx(rx_ring->dma_q, hal_pkt);
1605 "l3 proto %d l4 proto %d\n", qid, hal_pkt->flags,
1606 hal_pkt->l3_proto_idx, hal_pkt->l4_proto_idx);
1609 if ((hal_pkt->flags & (AL_ETH_RX_ERROR |
1612 "flags = 0x%x\n", hal_pkt->flags);
1619 mbuf = al_eth_rx_mbuf(rx_ring->adapter, rx_ring, hal_pkt, descs,
1631 al_eth_rx_checksum(rx_ring->adapter, hal_pkt, mbuf);
1644 hal_pkt->l4_proto_idx == AL_ETH_PROTO_ID_TCP) {