diff options
author | Amit Cohen <[email protected]> | 2023-01-19 11:32:28 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-01-20 18:50:15 -0800 |
commit | d84e2359e621db111de5904976bc8a721d0fb03b (patch) | |
tree | 42d494514965880f5b5f95f39b6ef6a7198e9e6a /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 42b4f757ba9c4990dc3c26f0d54a3259ad761613 (diff) |
mlxsw: Enable string TLV usage according to MGIR output
String TLV is not supported by old firmware versions, therefore
'struct mlxsw_core' stores the field 'emad.enable_string_tlv', which is
set to true only after firmware version check.
Instead of assuming that firmware version check is enough to enable
string TLV, a better solution is to query if this TLV is supported from
MGIR register. Add such query and initialize 'emad.enable_string_tlv'
accordingly.
Signed-off-by: Amit Cohen <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: Tony Nguyen <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions