aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/pyynl/lib/ynl.py
diff options
context:
space:
mode:
authorMateusz Polchlopek <[email protected]>2025-01-17 08:06:32 +0000
committerTony Nguyen <[email protected]>2025-02-10 18:43:48 +0000
commit5a7b0b6ff49ba5148cfa87c2fbe39a2b22266b1f (patch)
tree6029dfc47c3a79c7d115f3843a390aae320ed93c /tools/net/ynl/pyynl/lib/ynl.py
parentice: Implement PTP support for E830 devices (diff)
downloadkernel-5a7b0b6ff49ba5148cfa87c2fbe39a2b22266b1f.tar.gz
kernel-5a7b0b6ff49ba5148cfa87c2fbe39a2b22266b1f.zip
ice: refactor ice_fdir_create_dflt_rules() function
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 <[email protected]> Signed-off-by: Mateusz Polchlopek <[email protected]> Reviewed-by: Simon Horman <[email protected]> Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions