On Fri, Jan 17, 2025 at 09:06:32AM +0100, Mateusz Polchlopek wrote: > The Flow Director function ice_fdir_create_dflt_rules() calls few > times function ice_create_init_fdir_rule() each time with different > enum ice_fltr_ptype parameter. Next step is to return error code if > error occurred. > > Change the code to store all necessary default rules in constant array > and call ice_create_init_fdir_rule() in the loop. It makes it easy to > extend the list of default rules in the future, without the need of > duplicate code more and more. > > Reviewed-by: Michal Swiatkowski <michal.swiatkow...@linux.intel.com> > Signed-off-by: Mateusz Polchlopek <mateusz.polchlo...@intel.com>
Reviewed-by: Simon Horman <ho...@kernel.org>