Lines Matching defs:cqe2
168 static void oce_correct_header(struct mbuf *m, struct nic_hwlro_cqe_part1 *cqe1, struct nic_hwlro_cqe_part2 *cqe2);
169 static void oce_rx_lro(struct oce_rq *rq, struct nic_hwlro_singleton_cqe *cqe, struct nic_hwlro_cqe_part2 *cqe2);
1467 oce_correct_header(struct mbuf *m, struct nic_hwlro_cqe_part1 *cqe1, struct nic_hwlro_cqe_part2 *cqe2)
1478 if(!cqe2->ipv6_frame) {
1480 ip4_hdr->ip_ttl = cqe2->frame_lifespan;
1481 ip4_hdr->ip_len = htons(cqe2->coalesced_size - sizeof(struct ether_header));
1485 ip6->ip6_ctlun.ip6_un1.ip6_un1_hlim = cqe2->frame_lifespan;
1486 payload_len = cqe2->coalesced_size - sizeof(struct ether_header)
1493 tcp_hdr->th_ack = htonl(cqe2->tcp_ack_num);
1494 if(cqe2->push) {
1497 tcp_hdr->th_win = htons(cqe2->tcp_window);
1499 if(cqe2->ts_opt) {
1574 oce_rx_lro(struct oce_rq *rq, struct nic_hwlro_singleton_cqe *cqe, struct nic_hwlro_cqe_part2 *cqe2)
1582 if(cqe2 == NULL) {
1592 cq_info.pkt_size = cqe2->coalesced_size;
1593 cq_info.vtag = cqe2->vlan_tag;
1594 cq_info.l4_cksum_pass = cqe2->l4_cksum_pass;
1595 cq_info.ip_cksum_pass = cqe2->ip_cksum_pass;
1596 cq_info.ipv6_frame = cqe2->ipv6_frame;
1597 cq_info.vtp = cqe2->vtp;
1610 if(cqe2) {
1611 //assert(cqe2->valid != 0);
1613 //assert(cqe2->cqe_type != 2);
1614 oce_correct_header(m, cqe1, cqe2);
1965 struct nic_hwlro_cqe_part2 *cqe2;
1998 cqe2 = (struct nic_hwlro_cqe_part2 *)cqe;
1999 if(cqe2->error != 0) {
2003 /* We should not get cqe2 without cqe1 */
2005 device_printf(sc->dev, "Got cqe2 without cqe1 \n");
2008 oce_rx_lro(rq, (struct nic_hwlro_singleton_cqe *)rq->cqe_firstpart, cqe2);
2012 cqe2->valid = 0;