linux/drivers/net/ppp
Qingfang Deng ff393252f9 pppoe: optimize hash with word access
Currently, hash_item() processes the 6-byte Ethernet address and the
2-byte session ID byte-wise to compute a hash.

Optimize this by using 16-bit word operations: XOR three 16-bit words
from the Ethernet address and the 16-bit session ID, then fold the
result. This reduces the total number of loads and XORs. The Ethernet
addresses in a skb and struct pppoe_addr are both 2-byte aligned, so the
u16 pointer cast is safe.

Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev>
Link: https://patch.msgid.link/20260429023848.153425-1-qingfang.deng@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
History 2026-05-01 18:45:16 -07:00
..
bsd_comp.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig ppp: add PPPOX symbol 2026-04-28 18:31:10 -07:00
Makefile ppp: add PPPOX symbol 2026-04-28 18:31:10 -07:00
ppp_async.c ppp: simplify input error handling 2026-03-09 19:07:38 -07:00
ppp_deflate.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ppp_generic.c pppoe: drop PFC frames 2026-04-20 11:35:17 -07:00
ppp_mppe.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ppp_mppe.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ppp_synctty.c ppp: simplify input error handling 2026-03-09 19:07:38 -07:00
pppoe.c pppoe: optimize hash with word access 2026-05-01 18:45:16 -07:00
pppox.c pppoe: remove kernel-mode relay support 2026-02-26 11:41:00 +01:00
pptp.c pppox: remove sk_pppox() helper 2026-04-12 15:20:45 -07:00