summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_common.c
diff options
context:
space:
mode:
authorCasper Andersson <casper.casan@gmail.com>2023-02-03 09:55:57 +0100
committerDavid S. Miller <davem@davemloft.net>2023-02-06 09:26:04 +0000
commitd7d94b2612f5dc25d61dc7bf58aafe7b31f40191 (patch)
treef875c879a4a3ff3c5b9d40017808be3927177d6f /drivers/net/ethernet/intel/ice/ice_common.c
parent03702d4d29be4e2510ec80b248dbbde4e57030d9 (diff)
net: microchip: sparx5: fix PTP init/deinit not checking all ports
Check all ports instead of just port_count ports. PTP init was only checking ports 0 to port_count. If the hardware ports are not mapped starting from 0 then they would be missed, e.g. if only ports 20-30 were mapped it would attempt to init ports 0-10, resulting in NULL pointers when attempting to timestamp. Now it will init all mapped ports. Fixes: 70dfe25cd866 ("net: sparx5: Update extraction/injection for timestamping") Signed-off-by: Casper Andersson <casper.casan@gmail.com> Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.c')
0 files changed, 0 insertions, 0 deletions