> -----Original Message-----
> From: Qiao, Wenjing <[email protected]>
> Sent: Friday, August 11, 2023 5:31 PM
> To: Zhang, Yuying <[email protected]>; Xing, Beilei
> <[email protected]>
> Cc: [email protected]; Liu, Mingxia <[email protected]>; Qiao, Wenjing
> <[email protected]>; Zhang, Qi Z <[email protected]>
> Subject: [PATCH 4/4] net/cpfl: setup ctrl path
>
> Setup the control vport and control queue for flow offloading.
>
> Signed-off-by: Yuying Zhang <[email protected]>
> Signed-off-by: Beilei Xing <[email protected]>
> Signed-off-by: Qi Zhang <[email protected]>
> Signed-off-by: Wenjing Qiao <[email protected]>
> ---
> drivers/net/cpfl/cpfl_ethdev.c | 270 ++++++++++++++++++++++++++++++++-
> drivers/net/cpfl/cpfl_ethdev.h | 14 ++ drivers/net/cpfl/cpfl_vchnl.c | 144
> ++++++++++++++++++
> 3 files changed, 425 insertions(+), 3 deletions(-)
<...>
> +
> +static void
> +cpfl_remove_cfgqs(struct cpfl_adapter_ext *adapter) {
> + struct idpf_hw *hw = (struct idpf_hw *)(&adapter->base.hw);
> + struct cpfl_ctlq_create_info *create_cfgq_info;
> + int i;
> +
> + create_cfgq_info = adapter->cfgq_info;
> +
> + for (i = 0; i < CPFL_CFGQ_NUM; i++) {
> + cpfl_vport_ctlq_remove(hw, adapter->ctlqp[i]);
> + if (create_cfgq_info[i].ring_mem.va)
> + idpf_free_dma_mem(&adapter->base.hw,
> &create_cfgq_info[i].ring_mem);
> + if (create_cfgq_info[i].buf_mem.va)
> + idpf_free_dma_mem(&adapter->base.hw,
> &create_cfgq_info[i].buf_mem);
&adapter->base.hw can be replaced with hw.