Lines Matching defs:l4kwqe
2519 struct l4_kwq_offload_pg *l4kwqe;
2522 l4kwqe = (struct l4_kwq_offload_pg *) &csk->kwqe1;
2523 memset(l4kwqe, 0, sizeof(*l4kwqe));
2524 wqes[0] = (struct kwqe *) l4kwqe;
2526 l4kwqe->op_code = L4_KWQE_OPCODE_VALUE_OFFLOAD_PG;
2527 l4kwqe->flags =
2529 l4kwqe->l2hdr_nbytes = ETH_HLEN;
2531 l4kwqe->da0 = csk->ha[0];
2532 l4kwqe->da1 = csk->ha[1];
2533 l4kwqe->da2 = csk->ha[2];
2534 l4kwqe->da3 = csk->ha[3];
2535 l4kwqe->da4 = csk->ha[4];
2536 l4kwqe->da5 = csk->ha[5];
2538 l4kwqe->sa0 = dev->mac_addr[0];
2539 l4kwqe->sa1 = dev->mac_addr[1];
2540 l4kwqe->sa2 = dev->mac_addr[2];
2541 l4kwqe->sa3 = dev->mac_addr[3];
2542 l4kwqe->sa4 = dev->mac_addr[4];
2543 l4kwqe->sa5 = dev->mac_addr[5];
2545 l4kwqe->etype = ETH_P_IP;
2546 l4kwqe->ipid_start = DEF_IPID_START;
2547 l4kwqe->host_opaque = csk->l5_cid;
2550 l4kwqe->pg_flags |= L4_KWQ_OFFLOAD_PG_VLAN_TAGGING;
2551 l4kwqe->vlan_tag = csk->vlan_id;
2552 l4kwqe->l2hdr_nbytes += 4;
2561 struct l4_kwq_update_pg *l4kwqe;
2564 l4kwqe = (struct l4_kwq_update_pg *) &csk->kwqe1;
2565 memset(l4kwqe, 0, sizeof(*l4kwqe));
2566 wqes[0] = (struct kwqe *) l4kwqe;
2568 l4kwqe->opcode = L4_KWQE_OPCODE_VALUE_UPDATE_PG;
2569 l4kwqe->flags =
2571 l4kwqe->pg_cid = csk->pg_cid;
2573 l4kwqe->da0 = csk->ha[0];
2574 l4kwqe->da1 = csk->ha[1];
2575 l4kwqe->da2 = csk->ha[2];
2576 l4kwqe->da3 = csk->ha[3];
2577 l4kwqe->da4 = csk->ha[4];
2578 l4kwqe->da5 = csk->ha[5];
2580 l4kwqe->pg_host_opaque = csk->l5_cid;
2581 l4kwqe->pg_valids = L4_KWQ_UPDATE_PG_VALIDS_DA;
2589 struct l4_kwq_upload *l4kwqe;
2592 l4kwqe = (struct l4_kwq_upload *) &csk->kwqe1;
2593 memset(l4kwqe, 0, sizeof(*l4kwqe));
2594 wqes[0] = (struct kwqe *) l4kwqe;
2596 l4kwqe->opcode = L4_KWQE_OPCODE_VALUE_UPLOAD_PG;
2597 l4kwqe->flags =
2599 l4kwqe->cid = csk->pg_cid;
2691 struct l4_kwq_close_req *l4kwqe;
2694 l4kwqe = (struct l4_kwq_close_req *) &csk->kwqe2;
2695 memset(l4kwqe, 0, sizeof(*l4kwqe));
2696 wqes[0] = (struct kwqe *) l4kwqe;
2698 l4kwqe->op_code = L4_KWQE_OPCODE_VALUE_CLOSE;
2699 l4kwqe->flags = L4_LAYER_CODE << L4_KWQ_CLOSE_REQ_LAYER_CODE_SHIFT;
2700 l4kwqe->cid = csk->cid;
2708 struct l4_kwq_reset_req *l4kwqe;
2711 l4kwqe = (struct l4_kwq_reset_req *) &csk->kwqe2;
2712 memset(l4kwqe, 0, sizeof(*l4kwqe));
2713 wqes[0] = (struct kwqe *) l4kwqe;
2715 l4kwqe->op_code = L4_KWQE_OPCODE_VALUE_RESET;
2716 l4kwqe->flags = L4_LAYER_CODE << L4_KWQ_RESET_REQ_LAYER_CODE_SHIFT;
2717 l4kwqe->cid = csk->cid;