diff options
| author | Julien Panis <[email protected]> | 2024-04-12 15:38:34 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-04-15 12:18:18 +0000 |
| commit | 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6 (patch) | |
| tree | 512c840a3c0bef87abede0e40e0ed2f6218a249e /lib/dynamic_queue_limits.c | |
| parent | net: ethernet: ti: Add desc_infos member to struct k3_cppi_desc_pool (diff) | |
| download | kernel-8acacc40f7337527ff84cd901ed2ef0a2b95b2b6.tar.gz kernel-8acacc40f7337527ff84cd901ed2ef0a2b95b2b6.zip | |
net: ethernet: ti: am65-cpsw: Add minimal XDP support
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 model is used to get better performance.
Below are benchmark results obtained for the receiver with iperf3 default
parameters:
- Without page pool: 495 Mbits/sec
- With page pool: 605 Mbits/sec (actually 610 Mbits/sec, with a 5 Mbits/sec
loss due to extra processing in the hot path to handle XDP).
Signed-off-by: Julien Panis <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/dynamic_queue_limits.c')
0 files changed, 0 insertions, 0 deletions
