Benedict Wong
bc56b33404
xfrm: Remove xfrmi interface ID from flowi
...
In order to remove performance impact of having the extra u32 in every
single flowi, this change removes the flowi_xfrm struct, prefering to
take the if_id as a method parameter where needed.
In the inbound direction, if_id is only needed during the
__xfrm_check_policy() function, and the if_id can be determined at that
point based on the skb. As such, xfrmi_decode_session() is only called
with the skb in __xfrm_check_policy().
In the outbound direction, the only place where if_id is needed is the
xfrm_lookup() call in xfrmi_xmit2(). With this change, the if_id is
directly passed into the xfrm_lookup_with_ifid() call. All existing
callers can still call xfrm_lookup(), which uses a default if_id of 0.
This change does not change any behavior of XFRMIs except for improving
overall system performance via flowi size reduction.
This change has been tested against the Android Kernel Networking Tests:
https://android.googlesource.com/kernel/tests/+/master/net/test
Signed-off-by: Benedict Wong <[email protected] >
Signed-off-by: Steffen Klassert <[email protected] >
2018-07-20 10:14:41 +02:00
..
6lowpan
9p
treewide: kmalloc() -> kmalloc_array()
2018-06-12 16:19:22 -07:00
802
8021q
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2018-06-06 18:39:49 -07:00
appletalk
Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2018-06-04 13:57:43 -07:00
atm
atm: Preserve value of skb->truesize when accounting to vcc
2018-06-17 08:27:01 +09:00
ax25
Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2018-06-04 13:57:43 -07:00
batman-adv
net: drivers/net: Convert random_ether_addr to eth_random_addr
2018-06-23 10:49:14 +09:00
bluetooth
treewide: kmalloc() -> kmalloc_array()
2018-06-12 16:19:22 -07:00
bpf
bpfilter
bpfilter: fix user mode helper cross compilation
2018-06-21 09:19:19 +09:00
bridge
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-06-16 07:39:34 +09:00
caif
can
treewide: kzalloc() -> kcalloc()
2018-06-12 16:19:22 -07:00
ceph
The main piece is a set of libceph changes that revamps how OSD
2018-06-15 07:24:58 +09:00
core
xfrm: Add a new lookup key to match xfrm interfaces.
2018-06-23 16:07:15 +02:00
dcb
treewide: kmalloc() -> kmalloc_array()
2018-06-12 16:19:22 -07:00
dccp
treewide: kmalloc() -> kmalloc_array()
2018-06-12 16:19:22 -07:00
decnet
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2018-06-06 18:39:49 -07:00
dns_resolver
dsa
net: dsa: add error handling for pskb_trim_rcsum
2018-06-11 14:19:38 -07:00
ethernet
hsr
ieee802154
treewide: kzalloc() -> kcalloc()
2018-06-12 16:19:22 -07:00
ife
ipv4
xfrm: don't check offload_handle for nonzero
2018-07-19 10:18:04 +02:00
ipv6
xfrm: don't check offload_handle for nonzero
2018-07-19 10:18:04 +02:00
iucv
net/iucv: convert to ->poll_mask
2018-05-26 09:16:44 +02:00
kcm
Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2018-06-04 13:57:43 -07:00
key
xfrm: Add a new lookup key to match xfrm interfaces.
2018-06-23 16:07:15 +02:00
l2tp
l2tp: filter out non-PPP sessions in pppol2tp_tunnel_ioctl()
2018-06-15 09:12:37 -07:00
l3mdev
lapb
llc
Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2018-06-04 13:57:43 -07:00
mac80211
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-06-16 07:39:34 +09:00
mac802154
mpls
ncsi
net/ncsi: Use netdev_dbg for debug messages
2018-06-20 07:26:58 +09:00
netfilter
rhashtable: split rhashtable.h
2018-06-22 13:43:27 +09:00
netlabel
netlink
treewide: kmalloc() -> kmalloc_array()
2018-06-12 16:19:22 -07:00
netrom
treewide: kzalloc() -> kcalloc()
2018-06-12 16:19:22 -07:00
nfc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2018-06-06 18:39:49 -07:00
nsh
openvswitch
treewide: kzalloc() -> kcalloc()
2018-06-12 16:19:22 -07:00
packet
net/packet: fix use-after-free
2018-06-22 07:17:42 +09:00
phonet
Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2018-06-04 13:57:43 -07:00
psample
qrtr
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2018-06-06 18:39:49 -07:00
rds
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-06-16 07:39:34 +09:00
rfkill
rose
treewide: kzalloc() -> kcalloc()
2018-06-12 16:19:22 -07:00
rxrpc
treewide: kmalloc() -> kmalloc_array()
2018-06-12 16:19:22 -07:00
sched
cls_flower: fix use after free in flower S/W path
2018-06-22 07:24:07 +09:00
sctp
rhashtable: split rhashtable.h
2018-06-22 13:43:27 +09:00
smc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-06-16 07:39:34 +09:00
strparser
strparser: Don't schedule in workqueue in paused state
2018-06-21 09:54:05 +09:00
sunrpc
- Error path bug fix for overflow tests (Dan)
2018-06-12 18:28:00 -07:00
switchdev
tipc
treewide: kmalloc() -> kmalloc_array()
2018-06-12 16:19:22 -07:00
tls
tls: fix waitall behavior in tls_sw_recvmsg
2018-06-15 09:14:30 -07:00
unix
Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2018-06-04 13:57:43 -07:00
vmw_vsock
VSOCK: fix loopback on big-endian systems
2018-06-22 09:34:08 +09:00
wimax
wireless
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-06-16 07:39:34 +09:00
x25
Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2018-06-04 13:57:43 -07:00
xdp
xsk: re-add queue id check for XDP_SKB path
2018-06-12 12:19:04 +02:00
xfrm
xfrm: Remove xfrmi interface ID from flowi
2018-07-20 10:14:41 +02:00
compat.c
Kconfig
net: Introduce generic failover module
2018-05-28 22:59:54 -04:00
Makefile
bpfilter: switch to CC from HOSTCC
2018-06-05 10:21:18 -04:00
socket.c
socket: close race condition between sock_close() and sockfs_setattr()
2018-06-10 12:25:53 -07:00
sysctl_net.c