diff options
| author | Ivan Vecera <[email protected]> | 2023-11-13 15:10:25 -0800 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-11-14 20:05:43 -0800 |
| commit | 70756d0a4727fe8fa23afaee76028299af4062dd (patch) | |
| tree | 5e6a31b0057ef3c4e9f626875b069f6aeae41579 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
| parent | addca9175e5f74cf29e8ad918c38c09b8663b5b8 (diff) | |
i40e: Use DECLARE_BITMAP for flags and hw_features fields in i40e_pf
Convert flags and hw_features fields from i40e_pf from u32 to
bitmaps and their usage to use bit access functions.
Changes:
- Convert "pf_ptr->(flags|hw_features) & FL" to "test_bit(FL, ...)"
- Convert "pf_ptr->(flags|hw_features) |= FL" to "set_bit(FL, ...)"
- Convert "pf_ptr->(flags|hw_features) &= ~FL" to "clear_bit(FL, ...)"
- Rename flag field to bitno in i40e_priv_flags and adjust ethtool
callbacks to work with flags bitmap
- Rename flag names where '_ENABLED'->'_ENA' and '_DISABLED'->'_DIS'
like in ice driver
Signed-off-by: Ivan Vecera <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions