[PATCH v3 2/8] net/iavf: add a variable for hena

Bruce Richardson bruce.richardson at intel.com
Fri Apr 3 12:39:01 CEST 2026


On Fri, Mar 06, 2026 at 10:58:18AM +0000, Anatoly Burakov wrote:
> Currently, we read RSS hena value directly from output buffer using an in
> place pointer cast. Use a variable instead.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---

Not sure I see that much point in this patch alone, but it's harmless.

Acked-by: Bruce Richardson <bruce.richardson at intel.com>


>  drivers/net/intel/iavf/iavf_vchnl.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/intel/iavf/iavf_vchnl.c b/drivers/net/intel/iavf/iavf_vchnl.c
> index a1dc573841..d97bdf0dc1 100644
> --- a/drivers/net/intel/iavf/iavf_vchnl.c
> +++ b/drivers/net/intel/iavf/iavf_vchnl.c
> @@ -1933,6 +1933,7 @@ int
>  iavf_get_hena_caps(struct iavf_adapter *adapter, uint64_t *caps)
>  {
>  	struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(adapter);
> +	struct virtchnl_rss_hena *hena;
>  	struct iavf_cmd_info args;
>  	int err;
>  
> @@ -1949,7 +1950,8 @@ iavf_get_hena_caps(struct iavf_adapter *adapter, uint64_t *caps)
>  		return err;
>  	}
>  
> -	*caps = ((struct virtchnl_rss_hena *)args.out_buffer)->hena;
> +	hena = (struct virtchnl_rss_hena *)args.out_buffer;
> +	*caps = hena->hena;
>  	return 0;
>  }
>  
> -- 
> 2.47.3
> 


More information about the dev mailing list