We have 2 tx completion functions to handle single-port vs multi-port variants. Merge them into one function to make maintenance easier. We also have 2 functions to handle TX completion for SKB vs XDP. Get rid of them too. Also do some minor cleanups. Signed-off-by: Roger Quadros <rogerq@xxxxxxxxxx> --- Roger Quadros (5): net: ethernet: ti: am65-cpsw: remove am65_cpsw_nuss_tx_compl_packets_2g() net: ethernet: ti: am65_cpsw: remove cpu argument am65_cpsw_run_xdp net: ethernet: ti: am65-cpsw: use return instead of goto in am65_cpsw_run_xdp() net: ethernet: ti: am65_cpsw: move am65_cpsw_put_page() out of am65_cpsw_run_xdp() net: ethernet: ti am65_cpsw: Drop separate TX completion functions drivers/net/ethernet/ti/am65-cpsw-nuss.c | 211 +++++++++---------------------- drivers/net/ethernet/ti/am65-cpsw-nuss.h | 8 ++ 2 files changed, 71 insertions(+), 148 deletions(-) --- base-commit: 489b31c6cf29fff5b1f5c48625770f45cea90ada change-id: 20250214-am65-cpsw-zc-prep-038276579e73 Best regards, -- Roger Quadros <rogerq@xxxxxxxxxx>