aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/test_progs.c
diff options
context:
space:
mode:
authorGravatar Jaco Coetzee <jaco.coetzee@corigine.com> 2022-11-09 15:27:57 -0500
committerGravatar David S. Miller <davem@davemloft.net> 2022-11-11 10:45:38 +0000
commitf3a72878a3de720661b7ed0d6b7f7c506ddb8a52 (patch)
treedfe09c9200df3849887b75979f5d113dc9bc0bcc /tools/testing/selftests/bpf/test_progs.c
parentMerge tag 'net-6.1-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netd... (diff)
downloadlinux-f3a72878a3de720661b7ed0d6b7f7c506ddb8a52.tar.gz
linux-f3a72878a3de720661b7ed0d6b7f7c506ddb8a52.tar.bz2
linux-f3a72878a3de720661b7ed0d6b7f7c506ddb8a52.zip
nfp: change eeprom length to max length enumerators
Extend the size of QSFP EEPROM for types SSF8436 and SFF8636 from 256 to 640 bytes in order to expose all the EEPROM pages by ethtool. For SFF-8636 and SFF-8436 specifications, the driver exposes 256 bytes of EEPROM data for ethtool's get_module_eeprom() callback, resulting in "netlink error: Invalid argument" when an EEPROM read with an offset larger than 256 bytes is attempted. Changing the length enumerators to the _MAX_LEN variants exposes all 640 bytes of the EEPROM allowing upper pages 1, 2 and 3 to be read. Fixes: 96d971e307cc ("ethtool: Add fallback to get_module_eeprom from netlink command") Signed-off-by: Jaco Coetzee <jaco.coetzee@corigine.com> Reviewed-by: Louis Peens <louis.peens@corigine.com> Signed-off-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/test_progs.c')
0 files changed, 0 insertions, 0 deletions