udp: Make udp_sock_recv static
Through an oversight this was previously declared as a public function although it's only used in udp.c and there is no prototype in any header. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
f79c42317f
commit
272d1d033c
1 changed files with 2 additions and 2 deletions
4
udp.c
4
udp.c
|
@ -737,8 +737,8 @@ static void udp_tap_prepare(const struct ctx *c, const struct mmsghdr *mmh,
|
||||||
*
|
*
|
||||||
* #syscalls recvmmsg
|
* #syscalls recvmmsg
|
||||||
*/
|
*/
|
||||||
int udp_sock_recv(const struct ctx *c, int s, uint32_t events,
|
static int udp_sock_recv(const struct ctx *c, int s, uint32_t events,
|
||||||
struct mmsghdr *mmh)
|
struct mmsghdr *mmh)
|
||||||
{
|
{
|
||||||
/* For not entirely clear reasons (data locality?) pasta gets better
|
/* For not entirely clear reasons (data locality?) pasta gets better
|
||||||
* throughput if we receive tap datagrams one at a atime. For small
|
* throughput if we receive tap datagrams one at a atime. For small
|
||||||
|
|
Loading…
Reference in a new issue