diff options
| author | Mateusz Polchlopek <[email protected]> | 2025-01-17 08:06:32 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-02-10 18:43:48 +0000 |
| commit | 5a7b0b6ff49ba5148cfa87c2fbe39a2b22266b1f (patch) | |
| tree | 6029dfc47c3a79c7d115f3843a390aae320ed93c /tools/net/ynl/pyynl/lib/ynl.py | |
| parent | ice: Implement PTP support for E830 devices (diff) | |
| download | kernel-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
