diff options
author | 2025-08-10 10:01:14 -0700 | |
---|---|---|
committer | 2025-09-02 11:08:59 -0700 | |
commit | b7e5c3e3bfa9dc8af75ff6d8633ad7070e1985e4 (patch) | |
tree | 2bb0557ba602ee3a3caa7bf07ab1dba3f62ef273 /tools/perf/scripts/python | |
parent | i40e: Fix potential invalid access when MAC list is empty (diff) | |
download | wireguard-linux-b7e5c3e3bfa9dc8af75ff6d8633ad7070e1985e4.tar.xz wireguard-linux-b7e5c3e3bfa9dc8af75ff6d8633ad7070e1985e4.zip |
ixgbe: fix incorrect map used in eee linkmode
incorrectly used ixgbe_lp_map in loops intended to populate the
supported and advertised EEE linkmode bitmaps based on ixgbe_ls_map.
This results in incorrect bit setting and potential out-of-bounds
access, since ixgbe_lp_map and ixgbe_ls_map have different sizes
and purposes.
ixgbe_lp_map[i] -> ixgbe_ls_map[i]
Use ixgbe_ls_map for supported and advertised linkmodes, and keep
ixgbe_lp_map usage only for link partner (lp_advertised) mapping.
Fixes: 9356b6db9d05 ("net: ethernet: ixgbe: Convert EEE to use linkmodes")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions