net: ti: icssg-prueth: Fix skb handling for XDP_PASS
authorMeghana Malladi <m-malladi@ti.com>
Sun, 3 Aug 2025 18:02:16 +0000 (23:32 +0530)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 Aug 2025 01:03:33 +0000 (18:03 -0700)
commitd942fe13f72bec92f6c689fbd74c5ec38228c16a
tree8e499baf582657f28d6067a132dec3300b4dcf49
parente6d76268813dc64cc0b74ea9c274501f2de05344
net: ti: icssg-prueth: Fix skb handling for XDP_PASS

emac_rx_packet() is a common function for handling traffic
for both xdp and non-xdp use cases. Use common logic for
handling skb with or without xdp to prevent any incorrect
packet processing. This patch fixes ping working with
XDP_PASS for icssg driver.

Fixes: 62aa3246f4623 ("net: ti: icssg-prueth: Add XDP support")
Signed-off-by: Meghana Malladi <m-malladi@ti.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250803180216.3569139-1-m-malladi@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/icssg/icssg_common.c