On Thu, 2 Jul 2020 16:39:17 -0700 Shannon Nelson wrote: > The queue reset pattern is used in a couple different places, > only slightly different from each other, and could cause > issues if one gets changed and the other didn't. This puts > them together so that only one version is needed, yet each > can have slighty different effects by passing in a pointer > to a work function to do whatever configuration twiddling is > needed in the middle of the reset. > > Fixes: 4d03e00a2140 ("ionic: Add initial ethtool support") > Signed-off-by: Shannon Nelson <snel...@pensando.io>
Is this fixing anything? I think the pattern of having a separate structure describing all the parameters and passing that into reconfig is a better path forward, because it's easier to take that forward in the correct direction of allocating new resources before old ones are freed. IOW not doing a full close/open. E.g. nfp_net_set_ring_size().