Skip to content

Commit

Permalink
Increase the netlink buffer size from 3MB to 16MB. (#739)
Browse files Browse the repository at this point in the history
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: kishore.kunal@broadcom.com
  • Loading branch information
kishorekunal01 authored Jan 30, 2023
1 parent dacbdad commit 2cb5ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/netlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ NetLink::NetLink(int pri) :
}

nl_socket_set_nonblocking(m_socket);
/* Set socket buffer size to 3MB */
nl_socket_set_buffer_size(m_socket, 3145728, 0);
/* Set socket buffer size to 16MB */
nl_socket_set_buffer_size(m_socket, 16777216, 0);
}

NetLink::~NetLink()
Expand Down

0 comments on commit 2cb5ea0

Please sign in to comment.