[PATCH v2 07/73] net/ntnic: add NT flow profile management implementation

Stephen Hemminger stephen at networkplumber.org
Tue Oct 22 19:17:45 CEST 2024


On Tue, 22 Oct 2024 18:54:24 +0200
Serhii Iliushyk <sil-plv at napatech.com> wrote:

> diff --git a/drivers/net/ntnic/include/flow_api.h b/drivers/net/ntnic/include/flow_api.h
> index 790b2f6b03..748da89262 100644
> --- a/drivers/net/ntnic/include/flow_api.h
> +++ b/drivers/net/ntnic/include/flow_api.h
> @@ -61,6 +61,10 @@ struct flow_nic_dev {
>         void *km_res_handle;
>         void *kcc_res_handle;
> 
> +       void *group_handle;
> +       void *hw_db_handle;
> +       void *id_table_handle;
> +

Use of untyped pointers (void *) can lead to errors, it would have been better
to make these struct pointers.


More information about the dev mailing list