android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Toke Høiland-Jørgensen f36afae44f
UPSTREAM: xdp: Use bulking for non-map XDP_REDIRECT and consolidate code paths
Since the bulk queue used by XDP_REDIRECT now lives in struct net_device,
we can re-use the bulking for the non-map version of the bpf_redirect()
helper. This is a simple matter of having xdp_do_redirect_slow() queue the
frame on the bulk queue instead of sending it out with __bpf_tx_xdp().

Unfortunately we can't make the bpf_redirect() helper return an error if
the ifindex doesn't exit (as bpf_redirect_map() does), because we don't
have a reference to the network namespace of the ingress device at the time
the helper is called. So we have to leave it as-is and keep the device
lookup in xdp_do_redirect_slow().

Since this leaves less reason to have the non-map redirect code in a
separate function, so we get rid of the xdp_do_redirect_slow() function
entirely. This does lose us the tracepoint disambiguation, but fortunately
the xdp_redirect and xdp_redirect_map tracepoints use the same tracepoint
entry structures. This means both can contain a map index, so we can just
amend the tracepoint definitions so we always emit the xdp_redirect(_err)
tracepoints, but with the map ID only populated if a map is present. This
means we retire the xdp_redirect_map(_err) tracepoints entirely, but keep
the definitions around in case someone is still listening for them.

With this change, the performance of the xdp_redirect sample program goes
from 5Mpps to 8.4Mpps (a 68% increase).

Since the flush functions are no longer map-specific, rename the flush()
functions to drop _map from their names. One of the renamed functions is
the xdp_do_flush_map() callback used in all the xdp-enabled drivers. To
keep from having to update all drivers, use a #define to keep the old name
working, and only update the virtual drivers in this patch.

Change-Id: I770abdab19438ad8efbe0376bb442043acf92c19
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
2025-12-23 13:35:53 -08:00
..
appletalk
arcnet arcnet: Add NULL check in com20020pci_probe() 2025-04-10 14:29:43 +02:00
bonding net: bonding: fix possible peer notify event loss or dup issue 2025-10-29 13:59:59 +01:00
caif This is the 5.4.291 stable release 2025-03-13 14:53:52 +00:00
can Merge branch 'android11-5.4-lts' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-12-11 01:41:51 -08:00
dsa net: dsa: b53: stop reading ARL entries if search is done 2025-12-03 12:45:15 +01:00
ethernet UPSTREAM: bpf: Convert bpf_prog refcnt to atomic64_t 2025-12-23 13:35:42 -08:00
fddi
fjes
hamradio
hippi
hyperv hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event 2024-11-08 16:20:51 +01:00
ieee802154 ieee802154: ca8210: Use proper setters and getters for bitwise types 2025-06-04 14:32:31 +02:00
ipvlan
netdevsim
phy Merge branch 'android11-5.4-lts' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-12-11 01:41:51 -08:00
plip
ppp ppp: fix memory leak in pad_compress_skb 2025-09-09 18:43:58 +02:00
slip
team team: better TEAM_OPTION_TYPE_STRING validation 2025-03-13 12:43:12 +01:00
usb fixup! net: usb: rtl8150: Fix frame padding 2025-12-11 02:36:44 -08:00
vmxnet3 vmxnet3: update MTU after device quiesce 2025-09-09 18:44:01 +02:00
wan
wimax
wireguard UPSTREAM: wireguard: send: annotate intentional data race in checking empty queue 2025-09-24 12:16:42 +02:00
wireless Merge branch 'android11-5.4-lts' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-12-11 01:41:51 -08:00
xen-netback net/xen-netback: prevent UAF in xenvif_flush_hash() 2025-02-01 18:18:53 +01:00
dummy.c
eql.c
geneve.c This is the 5.4.291 stable release 2025-03-13 14:53:52 +00:00
gtp.c gtp: Suppress list corruption splat in gtp_net_exit_batch_rtnl(). 2025-03-13 12:43:22 +01:00
ifb.c
Kconfig UPSTREAM: crypto: mips/poly1305 - enable for all MIPS processors 2025-09-24 12:16:39 +02:00
LICENSE.SRC
loopback.c net: loopback: Avoid sending IP packets without an Ethernet header 2025-03-13 12:43:24 +01:00
macsec.c macsec: don't increment counters for an unrelated SA 2024-11-08 16:20:49 +01:00
macvlan.c
macvtap.c
Makefile UPSTREAM: net: WireGuard secure network tunnel 2025-09-24 12:16:34 +02:00
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c UPSTREAM: xdp: Use bulking for non-map XDP_REDIRECT and consolidate code paths 2025-12-23 13:35:53 -08:00
veth.c UPSTREAM: xdp: Use bulking for non-map XDP_REDIRECT and consolidate code paths 2025-12-23 13:35:53 -08:00
virtio_net.c UPSTREAM: xdp: Use bulking for non-map XDP_REDIRECT and consolidate code paths 2025-12-23 13:35:53 -08:00
vrf.c vrf: Drop existing dst reference in vrf_ip6_input_dst 2025-08-28 16:21:20 +02:00
vsockmon.c
vxlan.c vxlan: Do not treat dst cache initialization errors as fatal 2025-06-27 11:02:55 +01:00
xen-netfront.c xen/netfront: fix crash when removing device 2024-12-19 18:05:05 +01:00