[PATCH v3 5/8] net/iavf: refactor sending virtchnl messages

Bruce Richardson bruce.richardson at intel.com
Fri Apr 3 12:55:22 CEST 2026


On Fri, Mar 06, 2026 at 10:58:21AM +0000, Anatoly Burakov wrote:
> Currently, there is a certain amount of duplication and unnecessary
> branching in the virtchnl message handling function which makes it
> difficult to read and reason about.
> 
> Refactor the function to achieve the following:
> 
> - clean and explicit distinction between synchronous and asynchronous ops
> - common looping and error handling logic
> - fewer and clearer special cases
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
>  drivers/net/intel/iavf/iavf_vchnl.c | 151 +++++++++++++---------------
>  1 file changed, 70 insertions(+), 81 deletions(-)
> 
Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the dev mailing list