OSDN Git Service

net: lan966x: allow offloading timestamp operations to the PHY
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Mon, 7 Mar 2022 09:46:32 +0000 (10:46 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Mar 2022 09:44:33 +0000 (10:44 +0100)
commit328c621b95cdee01c50ec6d025b871b7c591f424
tree40ba8245c04ab4eec81c73327567d87c207f758f
parent1416ea0ddc1463fb8c9cf12b48f3df82a327e356
net: lan966x: allow offloading timestamp operations to the PHY

In case the MAC is using 'netif_rx()' to deliver the skb up the network
stack, it needs to check whether 'skb_defer_rx_timestmap()' is necessary
or not. In case is needed then don't call 'netif_rx()'

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20220307094632.3764266-1-horatiu.vultur@microchip.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microchip/lan966x/lan966x_main.c