]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
udp: Unbreak modules that rely on external __skb_recv_udp() availability
authorJiri Kosina <jkosina@suse.cz>
Thu, 4 Oct 2018 11:37:32 +0000 (13:37 +0200)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:53:21 +0000 (19:53 -0600)
commit2366027486f0a2f05875e30c541135acedfba3d2
tree52d15c6df88bb874233629726cc8a3b69580f9fc
parent8e99f86c49b72d7e07e211d98f0ba383f56cb2b7
udp: Unbreak modules that rely on external __skb_recv_udp() availability

BugLink: https://bugs.launchpad.net/bugs/1836426
[ Upstream commit 7e823644b60555f70f241274b8d0120dd919269a ]

Commit 2276f58ac589 ("udp: use a separate rx queue for packet reception")
turned static inline __skb_recv_udp() from being a trivial helper around
__skb_recv_datagram() into a UDP specific implementaion, making it
EXPORT_SYMBOL_GPL() at the same time.

There are external modules that got broken by __skb_recv_udp() not being
visible to them. Let's unbreak them by making __skb_recv_udp EXPORT_SYMBOL().

Rationale (one of those) why this is actually "technically correct" thing
to do: __skb_recv_udp() used to be an inline wrapper around
__skb_recv_datagram(), which itself (still, and correctly so, I believe)
is EXPORT_SYMBOL().

Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Eric Dumazet <edumazet@google.com>
Fixes: 2276f58ac589 ("udp: use a separate rx queue for packet reception")
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/ipv4/udp.c