Lines Matching refs:tpa_info

97 	struct bnx2x_agg_info *old_tpa_info = to_fp->tpa_info;  in bnx2x_move_fp()
109 to_fp->tpa_info = old_tpa_info; in bnx2x_move_fp()
439 struct bnx2x_agg_info *tpa_info = &fp->tpa_info[queue]; in bnx2x_tpa_start() local
440 struct sw_rx_bd *first_buf = &tpa_info->first_buf; in bnx2x_tpa_start()
443 if (tpa_info->tpa_state != BNX2X_TPA_STOP) in bnx2x_tpa_start()
459 tpa_info->tpa_state = BNX2X_TPA_ERROR; in bnx2x_tpa_start()
474 tpa_info->parsing_flags = in bnx2x_tpa_start()
476 tpa_info->vlan_tag = le16_to_cpu(cqe->vlan_tag); in bnx2x_tpa_start()
477 tpa_info->tpa_state = BNX2X_TPA_START; in bnx2x_tpa_start()
478 tpa_info->len_on_bd = le16_to_cpu(cqe->len_on_bd); in bnx2x_tpa_start()
479 tpa_info->placement_offset = cqe->placement_offset; in bnx2x_tpa_start()
480 tpa_info->rxhash = bnx2x_get_rxhash(bp, cqe, &tpa_info->rxhash_type); in bnx2x_tpa_start()
483 tpa_info->full_page = SGE_PAGES / gro_size * gro_size; in bnx2x_tpa_start()
484 tpa_info->gro_size = gro_size; in bnx2x_tpa_start()
587 struct bnx2x_agg_info *tpa_info, in bnx2x_fill_frag_skb() argument
596 u16 len_on_bd = tpa_info->len_on_bd; in bnx2x_fill_frag_skb()
602 gro_size = tpa_info->gro_size; in bnx2x_fill_frag_skb()
603 full_page = tpa_info->full_page; in bnx2x_fill_frag_skb()
608 bnx2x_set_gro_params(skb, tpa_info->parsing_flags, len_on_bd, in bnx2x_fill_frag_skb()
755 struct bnx2x_agg_info *tpa_info, in bnx2x_tpa_stop() argument
760 struct sw_rx_bd *rx_buf = &tpa_info->first_buf; in bnx2x_tpa_stop()
761 u8 pad = tpa_info->placement_offset; in bnx2x_tpa_stop()
762 u16 len = tpa_info->len_on_bd; in bnx2x_tpa_stop()
765 u8 old_tpa_state = tpa_info->tpa_state; in bnx2x_tpa_stop()
767 tpa_info->tpa_state = BNX2X_TPA_STOP; in bnx2x_tpa_stop()
797 skb_set_hash(skb, tpa_info->rxhash, tpa_info->rxhash_type); in bnx2x_tpa_stop()
802 if (!bnx2x_fill_frag_skb(bp, fp, tpa_info, pages, in bnx2x_tpa_stop()
804 if (tpa_info->parsing_flags & PARSING_FLAGS_VLAN) in bnx2x_tpa_stop()
805 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), tpa_info->vlan_tag); in bnx2x_tpa_stop()
961 struct bnx2x_agg_info *tpa_info; in bnx2x_rx_int() local
985 tpa_info = &fp->tpa_info[queue]; in bnx2x_rx_int()
991 tpa_info->len_on_bd; in bnx2x_rx_int()
994 pages = (frag_size + tpa_info->full_page - 1) / in bnx2x_rx_int()
995 tpa_info->full_page; in bnx2x_rx_int()
1000 bnx2x_tpa_stop(bp, fp, tpa_info, pages, in bnx2x_rx_int()
1362 struct bnx2x_agg_info *tpa_info = &fp->tpa_info[i]; in bnx2x_free_tpa_pool() local
1363 struct sw_rx_bd *first_buf = &tpa_info->first_buf; in bnx2x_free_tpa_pool()
1370 if (tpa_info->tpa_state == BNX2X_TPA_START) in bnx2x_free_tpa_pool()
1414 struct bnx2x_agg_info *tpa_info = in bnx2x_init_rx_rings() local
1415 &fp->tpa_info[i]; in bnx2x_init_rx_rings()
1417 &tpa_info->first_buf; in bnx2x_init_rx_rings()
1429 tpa_info->tpa_state = BNX2X_TPA_STOP; in bnx2x_init_rx_rings()
2464 struct bnx2x_agg_info *orig_tpa_info = fp->tpa_info; in bnx2x_bz_fp()
2467 if (fp->tpa_info) in bnx2x_bz_fp()
2468 memset(fp->tpa_info, 0, ETH_MAX_AGGREGATION_QUEUES_E1H_E2 * in bnx2x_bz_fp()
2474 fp->tpa_info = orig_tpa_info; in bnx2x_bz_fp()
4703 kfree(bp->fp[i].tpa_info); in bnx2x_free_mem_bp()
4739 fp[i].tpa_info = in bnx2x_alloc_mem_bp()
4742 if (!(fp[i].tpa_info)) in bnx2x_alloc_mem_bp()