qcacmn: Add global context
Global context will contain fst context, fst ref count and global desc count. Change-Id: I272fa2c3b8945822268d29b6c329df3f659753d4 CRs-Fixed: 3392039
这个提交包含在:
@@ -756,50 +756,6 @@ void dp_mlo_get_rx_hash_key(struct dp_soc *soc,
|
||||
LRO_IPV6_SEED_ARR_SZ));
|
||||
}
|
||||
|
||||
void dp_mlo_set_rx_fst(struct dp_soc *soc, struct dp_rx_fst *fst)
|
||||
{
|
||||
struct dp_soc_be *be_soc = dp_get_be_soc_from_dp_soc(soc);
|
||||
struct dp_mlo_ctxt *ml_ctxt = be_soc->ml_ctxt;
|
||||
|
||||
if (be_soc->mlo_enabled && ml_ctxt)
|
||||
ml_ctxt->rx_fst = fst;
|
||||
}
|
||||
|
||||
struct dp_rx_fst *dp_mlo_get_rx_fst(struct dp_soc *soc)
|
||||
{
|
||||
struct dp_soc_be *be_soc = dp_get_be_soc_from_dp_soc(soc);
|
||||
struct dp_mlo_ctxt *ml_ctxt = be_soc->ml_ctxt;
|
||||
|
||||
if (be_soc->mlo_enabled && ml_ctxt)
|
||||
return ml_ctxt->rx_fst;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void dp_mlo_rx_fst_ref(struct dp_soc *soc)
|
||||
{
|
||||
struct dp_soc_be *be_soc = dp_get_be_soc_from_dp_soc(soc);
|
||||
struct dp_mlo_ctxt *ml_ctxt = be_soc->ml_ctxt;
|
||||
|
||||
if (be_soc->mlo_enabled && ml_ctxt)
|
||||
ml_ctxt->rx_fst_ref_cnt++;
|
||||
}
|
||||
|
||||
uint8_t dp_mlo_rx_fst_deref(struct dp_soc *soc)
|
||||
{
|
||||
struct dp_soc_be *be_soc = dp_get_be_soc_from_dp_soc(soc);
|
||||
struct dp_mlo_ctxt *ml_ctxt = be_soc->ml_ctxt;
|
||||
uint8_t rx_fst_ref_cnt;
|
||||
|
||||
if (be_soc->mlo_enabled && ml_ctxt) {
|
||||
rx_fst_ref_cnt = ml_ctxt->rx_fst_ref_cnt;
|
||||
ml_ctxt->rx_fst_ref_cnt--;
|
||||
return rx_fst_ref_cnt;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct dp_soc *
|
||||
dp_rx_replensih_soc_get(struct dp_soc *soc, uint8_t chip_id)
|
||||
{
|
||||
|
在新工单中引用
屏蔽一个用户