Skip to content

Commit

Permalink
net: lan966x: allow offloading timestamp operations to the PHY
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Horatiu Vultur authored and Paolo Abeni committed Mar 8, 2022
1 parent 1416ea0 commit 328c621
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/ethernet/microchip/lan966x/lan966x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,9 @@ static irqreturn_t lan966x_xtr_irq_handler(int irq, void *args)
skb->offload_fwd_mark = 0;
}

netif_rx(skb);
if (!skb_defer_rx_timestamp(skb))
netif_rx(skb);

dev->stats.rx_bytes += len;
dev->stats.rx_packets++;

Expand Down

0 comments on commit 328c621

Please sign in to comment.