linux-yocto/drivers/net/ethernet/microchip/lan966x
Horatiu Vultur 700f11eb2c lan966x: Don't use xdp_frame when action is XDP_TX
When the action of an xdp program was XDP_TX, lan966x was creating
a xdp_frame and use this one to send the frame back. But it is also
possible to send back the frame without needing a xdp_frame, because
it is possible to send it back using the page.
And then once the frame is transmitted is possible to use directly
page_pool_recycle_direct as lan966x is using page pools.
This would save some CPU usage on this path, which results in higher
number of transmitted frames. Bellow are the statistics:
Frame size:    Improvement:
64                ~8%
256              ~11%
512               ~8%
1000              ~0%
1500              ~0%

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/r/20230422142344.3630602-1-horatiu.vultur@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-04-24 18:58:04 -07:00
..
Kconfig net: lan966x: Stop using packing library 2023-03-19 15:21:48 +00:00
lan966x_cbs.c net: lan966x: Add offload support for cbs 2022-09-28 09:36:28 +01:00
lan966x_ethtool.c net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init() 2022-11-16 09:10:29 +00:00
lan966x_ets.c net: lan966x: Add offload support for ets 2022-09-28 09:36:28 +01:00
lan966x_fdb.c net: lan966x: Extend FDB to support also lag 2022-08-22 14:00:54 +01:00
lan966x_fdma.c lan966x: Don't use xdp_frame when action is XDP_TX 2023-04-24 18:58:04 -07:00
lan966x_goto.c net: microchip: vcap api: Use src and dst chain id to chain VCAP lookups 2023-01-16 13:45:17 +00:00
lan966x_ifh.h net: lan966x: Add define IFH_LEN_BYTES 2022-11-11 10:49:34 +00:00
lan966x_lag.c net: lan966x: Extend MAC to support also lag interfaces. 2022-08-22 14:00:54 +01:00
lan966x_mac.c net: lan966x: Extend MAC to support also lag interfaces. 2022-08-22 14:00:54 +01:00
lan966x_main.c net: lan966x: Fix lan966x_ifh_get 2023-04-17 09:56:49 +01:00
lan966x_main.h lan966x: Don't use xdp_frame when action is XDP_TX 2023-04-24 18:58:04 -07:00
lan966x_mdb.c net: lan966x: Update mdb when enabling/disabling mcast_snooping 2022-02-05 15:00:43 +00:00
lan966x_mirror.c net: lan966x: Add port mirroring support using tc-matchall 2022-10-03 12:46:46 +01:00
lan966x_mqprio.c net: lan966x: Fix spelling mistake "tarffic" -> "traffic" 2022-09-30 12:34:01 +01:00
lan966x_phylink.c net: remove explicit phylink_generic_validate() references 2022-11-07 17:54:57 -08:00
lan966x_police.c net: lan966x: Change lan966x_police_del return type 2023-03-15 00:28:56 -07:00
lan966x_port.c net: lan966x: Fix configuration of the PCS 2022-12-22 12:21:05 +01:00
lan966x_ptp.c net: lan966x: Don't read RX timestamp if not needed 2023-03-19 15:21:48 +00:00
lan966x_regs.h net: lan966x: Add IS1 VCAP keyset configuration for lan966x 2023-03-10 16:44:24 -08:00
lan966x_switchdev.c net: lan966x: Extend FDB to support also lag 2022-08-22 14:00:54 +01:00
lan966x_taprio.c net: lan966x: Add offload support for taprio 2022-09-23 12:31:27 +01:00
lan966x_tbf.c net: lan966x: Add offload support for tbf 2022-09-28 09:36:28 +01:00
lan966x_tc_flower.c net: lan966x: Add support for IS1 VCAP ethernet protocol types 2023-03-10 16:44:25 -08:00
lan966x_tc_matchall.c net: microchip: vcap api: Use src and dst chain id to chain VCAP lookups 2023-01-16 13:45:17 +00:00
lan966x_tc.c net/sched: move struct tc_mqprio_qopt_offload from pkt_cls.h to pkt_sched.h 2023-02-06 10:06:43 +00:00
lan966x_vcap_ag_api.c net: lan966x: Add IS1 VCAP model 2023-03-10 16:44:24 -08:00
lan966x_vcap_ag_api.h net: lan966x: Add is2 vcap model to vcap API. 2022-11-29 13:08:23 +01:00
lan966x_vcap_debugfs.c net: lan966x: Add IS1 VCAP keyset configuration for lan966x 2023-03-10 16:44:24 -08:00
lan966x_vcap_impl.c net: lan966x: Add IS1 VCAP keyset configuration for lan966x 2023-03-10 16:44:24 -08:00
lan966x_vlan.c net: lan966x: Adjust maximum frame size when vlan is enabled/disabled 2022-11-01 21:18:16 -07:00
lan966x_xdp.c lan966x: Don't use xdp_frame when action is XDP_TX 2023-04-24 18:58:04 -07:00
Makefile net: lan966x: Add VCAP debugFS support 2023-02-03 09:21:41 +00:00