Lines Matching refs:lro_ctx

111 	struct qdf_lro_s *lro_ctx;  in qdf_lro_init()  local
135 lro_ctx = (struct qdf_lro_s *)lro_mem_ptr; in qdf_lro_init()
138 lro_ctx->lro_mgr = (struct net_lro_mgr *)lro_mem_ptr; in qdf_lro_init()
142 lro_ctx->lro_mgr->lro_arr = (struct net_lro_desc *)lro_mem_ptr; in qdf_lro_init()
146 lro_ctx->lro_desc_info.lro_desc_pool.lro_desc_array = in qdf_lro_init()
151 lro_ctx->lro_desc_info.lro_hash_table = in qdf_lro_init()
155 qdf_lro_desc_info_init(lro_ctx); in qdf_lro_init()
158 lro_ctx->lro_mgr->features |= LRO_F_NAPI; in qdf_lro_init()
160 lro_ctx->lro_mgr->ip_summed_aggr = CHECKSUM_UNNECESSARY; in qdf_lro_init()
161 lro_ctx->lro_mgr->max_aggr = QDF_LRO_MAX_AGGR_SIZE; in qdf_lro_init()
162 lro_ctx->lro_mgr->get_skb_header = qdf_lro_get_skb_header; in qdf_lro_init()
163 lro_ctx->lro_mgr->ip_summed = CHECKSUM_UNNECESSARY; in qdf_lro_init()
164 lro_ctx->lro_mgr->max_desc = QDF_LRO_DESC_POOL_SZ; in qdf_lro_init()
166 return lro_ctx; in qdf_lro_init()
169 void qdf_lro_deinit(qdf_lro_ctx_t lro_ctx) in qdf_lro_deinit() argument
171 if (likely(lro_ctx)) { in qdf_lro_deinit()
173 "LRO instance %pK is being freed", lro_ctx); in qdf_lro_deinit()
174 qdf_mem_free(lro_ctx); in qdf_lro_deinit()
219 static int qdf_lro_desc_find(struct qdf_lro_s *lro_ctx, in qdf_lro_desc_find() argument
228 struct qdf_lro_desc_info *desc_info = &lro_ctx->lro_desc_info; in qdf_lro_desc_find()
255 free_pool = &lro_ctx->lro_desc_info.lro_desc_pool; in qdf_lro_desc_find()
300 bool qdf_lro_get_info(qdf_lro_ctx_t lro_ctx, qdf_nbuf_t nbuf, in qdf_lro_get_info() argument
311 if (unlikely(!lro_ctx)) { in qdf_lro_get_info()
322 if (0 != qdf_lro_desc_find(lro_ctx, nbuf, iph, tcph, in qdf_lro_get_info()
364 void qdf_lro_desc_free(qdf_lro_ctx_t lro_ctx, void *data) in qdf_lro_desc_free() argument
374 qdf_assert(lro_ctx); in qdf_lro_desc_free()
376 if (unlikely(!desc || !lro_ctx)) { in qdf_lro_desc_free()
382 lro_mgr = lro_ctx->lro_mgr; in qdf_lro_desc_free()
392 desc_info = &lro_ctx->lro_desc_info; in qdf_lro_desc_free()
401 void qdf_lro_flush(qdf_lro_ctx_t lro_ctx) in qdf_lro_flush() argument
403 struct net_lro_mgr *lro_mgr = lro_ctx->lro_mgr; in qdf_lro_flush()
408 qdf_lro_desc_free(lro_ctx, &lro_mgr->lro_arr[i]); in qdf_lro_flush()
441 void qdf_lro_flush_pkt(qdf_lro_ctx_t lro_ctx, in qdf_lro_flush_pkt() argument
445 struct net_lro_mgr *lro_mgr = lro_ctx->lro_mgr; in qdf_lro_flush_pkt()
453 qdf_lro_desc_free(lro_ctx, lro_desc); in qdf_lro_flush_pkt()