linux/drivers/net/ethernet/microchip/lan966x
Horatiu Vultur eda40be3a5 net: lan966x: Remove ptp traps in case the ptp is not enabled.
Lan966x is adding ptp traps to redirect the ptp frames to the CPU such
that the HW will not forward these frames anywhere. The issue is that in
case ptp is not enabled and the timestamping source is et to
HWTSTAMP_SOURCE_NETDEV then these traps would not be removed on the
error path.
Fix this by removing the traps in this case as they are not needed.

Fixes: 54e1ed69c4 ("net: lan966x: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()")
Suggested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20240517135808.3025435-1-horatiu.vultur@microchip.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-05-22 10:09:04 +02:00
..
Kconfig
lan966x_cbs.c
lan966x_dcb.c
lan966x_ethtool.c
lan966x_ets.c
lan966x_fdb.c
lan966x_fdma.c page_pool: split types and declarations from page_pool.h 2023-08-07 13:05:19 -07:00
lan966x_goto.c
lan966x_ifh.h net: lan966x: Correct spelling in comments 2024-04-25 19:13:26 -07:00
lan966x_lag.c lan966x: Fix crash when adding interface under a lag 2024-02-09 13:47:47 -08:00
lan966x_mac.c
lan966x_main.c net: lan966x: Remove ptp traps in case the ptp is not enabled. 2024-05-22 10:09:04 +02:00
lan966x_main.h net: lan966x: Correct spelling in comments 2024-04-25 19:13:26 -07:00
lan966x_mdb.c
lan966x_mirror.c
lan966x_mqprio.c
lan966x_phylink.c
lan966x_police.c
lan966x_port.c net: lan966x: Correct spelling in comments 2024-04-25 19:13:26 -07:00
lan966x_ptp.c net: lan966x: Fix return value check for vcap_get_rule() 2023-08-19 19:29:23 +01:00
lan966x_regs.h
lan966x_switchdev.c
lan966x_taprio.c
lan966x_tbf.c
lan966x_tc.c
lan966x_tc_flower.c net: lan966x: flower: check for unsupported control flags 2024-04-25 19:36:37 -07:00
lan966x_tc_matchall.c
lan966x_vcap_ag_api.c
lan966x_vcap_ag_api.h
lan966x_vcap_debugfs.c net: lan966x: debugfs: Fix showing the port keyset 2024-01-31 13:35:19 +00:00
lan966x_vcap_impl.c
lan966x_vlan.c net: lan966x: Correct spelling in comments 2024-04-25 19:13:26 -07:00
lan966x_xdp.c
Makefile