]> www.infradead.org Git - nvme.git/commit
net: micro-optimize skb_datagram_iter
authorSagi Grimberg <sagi@grimberg.me>
Thu, 13 Jun 2024 11:35:04 +0000 (14:35 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Jun 2024 02:32:48 +0000 (19:32 -0700)
commit934c29999b57b835d65442da6f741d5e27f3b584
tree92ccde2267f23be9458bf48957b4335a9c61b688
parentabef84957b68994abfa4e0631b483f1bae732cbd
net: micro-optimize skb_datagram_iter

We only use the mapping in a single context in a short and contained scope,
so kmap_local_page is sufficient and cheaper. This will also allow
skb_datagram_iter to be called from softirq context.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Link: https://lore.kernel.org/r/20240613113504.1079860-1-sagi@grimberg.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/datagram.c