Skip to content

Commit 2cb5ea0

Browse files
Increase the netlink buffer size from 3MB to 16MB. (#739)
As error is seen in fdbsyncd with netlink reports "out of memory on reading a netlink socket" It is seen when kernel is sending 10k remote mac to fdbsyncd. Signed-off-by: [email protected]
1 parent dacbdad commit 2cb5ea0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/netlink.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ NetLink::NetLink(int pri) :
3535
}
3636

3737
nl_socket_set_nonblocking(m_socket);
38-
/* Set socket buffer size to 3MB */
39-
nl_socket_set_buffer_size(m_socket, 3145728, 0);
38+
/* Set socket buffer size to 16MB */
39+
nl_socket_set_buffer_size(m_socket, 16777216, 0);
4040
}
4141

4242
NetLink::~NetLink()

0 commit comments

Comments
 (0)