Lines Matching refs:pkg

228 	struct mana_tx_package pkg = {};  in mana_start_xmit()  local
248 pkg.tx_oob.s_oob.vcq_num = cq->gdma_id; in mana_start_xmit()
249 pkg.tx_oob.s_oob.vsq_frame = txq->vsq_frame; in mana_start_xmit()
252 pkg.tx_oob.l_oob.long_vp_offset = txq->vp_offset; in mana_start_xmit()
255 pkg.tx_oob.s_oob.short_vp_offset = txq->vp_offset; in mana_start_xmit()
260 pkg.tx_oob.l_oob.inject_vlan_pri_tag = 1; in mana_start_xmit()
261 pkg.tx_oob.l_oob.pcp = skb_vlan_tag_get_prio(skb); in mana_start_xmit()
262 pkg.tx_oob.l_oob.dei = skb_vlan_tag_get_cfi(skb); in mana_start_xmit()
263 pkg.tx_oob.l_oob.vlan_id = skb_vlan_tag_get_id(skb); in mana_start_xmit()
266 pkg.tx_oob.s_oob.pkt_fmt = pkt_fmt; in mana_start_xmit()
269 pkg.wqe_req.inline_oob_size = sizeof(struct mana_tx_short_oob); in mana_start_xmit()
274 pkg.wqe_req.inline_oob_size = sizeof(struct mana_tx_oob); in mana_start_xmit()
280 pkg.wqe_req.inline_oob_data = &pkg.tx_oob; in mana_start_xmit()
281 pkg.wqe_req.flags = 0; in mana_start_xmit()
282 pkg.wqe_req.client_data_unit = 0; in mana_start_xmit()
284 pkg.wqe_req.num_sge = 1 + skb_shinfo(skb)->nr_frags; in mana_start_xmit()
298 pkg.wqe_req.num_sge = num_sge; in mana_start_xmit()
312 pkg.tx_oob.s_oob.is_outer_ipv4 = ipv4; in mana_start_xmit()
313 pkg.tx_oob.s_oob.is_outer_ipv6 = ipv6; in mana_start_xmit()
315 pkg.tx_oob.s_oob.comp_iphdr_csum = 1; in mana_start_xmit()
316 pkg.tx_oob.s_oob.comp_tcp_csum = 1; in mana_start_xmit()
317 pkg.tx_oob.s_oob.trans_off = skb_transport_offset(skb); in mana_start_xmit()
319 pkg.wqe_req.client_data_unit = skb_shinfo(skb)->gso_size; in mana_start_xmit()
320 pkg.wqe_req.flags = GDMA_WR_OOB_IN_SGL | GDMA_WR_PAD_BY_SGE0; in mana_start_xmit()
343 pkg.tx_oob.s_oob.is_outer_ipv4 = ipv4; in mana_start_xmit()
344 pkg.tx_oob.s_oob.is_outer_ipv6 = ipv6; in mana_start_xmit()
346 pkg.tx_oob.s_oob.comp_tcp_csum = 1; in mana_start_xmit()
347 pkg.tx_oob.s_oob.trans_off = skb_transport_offset(skb); in mana_start_xmit()
350 pkg.tx_oob.s_oob.is_outer_ipv4 = ipv4; in mana_start_xmit()
351 pkg.tx_oob.s_oob.is_outer_ipv6 = ipv6; in mana_start_xmit()
353 pkg.tx_oob.s_oob.comp_udp_csum = 1; in mana_start_xmit()
361 WARN_ON_ONCE(pkg.wqe_req.num_sge > MAX_TX_WQE_SGL_ENTRIES); in mana_start_xmit()
363 if (pkg.wqe_req.num_sge <= ARRAY_SIZE(pkg.sgl_array)) { in mana_start_xmit()
364 pkg.wqe_req.sgl = pkg.sgl_array; in mana_start_xmit()
366 pkg.sgl_ptr = kmalloc_array(pkg.wqe_req.num_sge, in mana_start_xmit()
369 if (!pkg.sgl_ptr) in mana_start_xmit()
372 pkg.wqe_req.sgl = pkg.sgl_ptr; in mana_start_xmit()
375 if (mana_map_skb(skb, apc, &pkg, gso_hs)) { in mana_start_xmit()
387 err = mana_gd_post_work_request(gdma_sq, &pkg.wqe_req, in mana_start_xmit()
421 kfree(pkg.sgl_ptr); in mana_start_xmit()
425 kfree(pkg.sgl_ptr); in mana_start_xmit()