Re: [PATCH net-next v6 3/3] net: ethernet: ti: am65-cpsw: Add minimal XDP support

2024-04-04 Thread Paolo Abeni
On Tue, 2024-04-02 at 12:33 +0200, Julien Panis wrote: [...] > +static int am65_cpsw_run_xdp(struct am65_cpsw_common *common, struct > am65_cpsw_port *port, > + struct xdp_buff *xdp, int desc_idx, int cpu, int > *len) > +{ > + struct am65_cpsw_rx_chn *rx_chn =

[PATCH net-next v6 3/3] net: ethernet: ti: am65-cpsw: Add minimal XDP support

2024-04-02 Thread Julien Panis
This patch adds XDP (eXpress Data Path) support to TI AM65 CPSW Ethernet driver. The following features are implemented: - NETDEV_XDP_ACT_BASIC (XDP_PASS, XDP_TX, XDP_DROP, XDP_ABORTED) - NETDEV_XDP_ACT_REDIRECT (XDP_REDIRECT) - NETDEV_XDP_ACT_NDO_XMIT (ndo_xdp_xmit callback) The page pool memory