diff options
author | James Hershaw <[email protected]> | 2023-01-23 14:41:35 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-01-24 18:19:12 -0800 |
commit | 74b4f1739d4e81810e1d20f0e6ad3d3c63a32c13 (patch) | |
tree | 4b7806f3c05092f89ffc0ff4147910715261aee8 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 90317bcdbd337b9e88f253650f6ab9dfe667be64 (diff) |
nfp: flower: change get/set_eeprom logic and enable for flower reps
The changes in this patch are as follows:
- Alter the logic of get/set_eeprom functions to use the helper function
nfp_app_from_netdev() which handles differentiating between an nfp_net
and a nfp_repr. This allows us to get an agnostic backpointer to the
pdev.
- Enable the various eeprom commands by adding the 'get_eeprom_len',
'get_eeprom', 'set_eeprom' callbacks to the nfp_port_ethtool_ops struct.
This allows the eeprom commands to work on representor interfaces,
similar to a previous patch which added it to the vnics.
Currently these are being used to configure persistent MAC addresses for
the physical ports on the nfp.
Signed-off-by: James Hershaw <[email protected]>
Reviewed-by: Louis Peens <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[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