intel / openlldp

Other
54 stars 42 forks source link

event_iface: only set rcv buf size if too small #70

Closed gonzoleeman closed 3 years ago

gonzoleeman commented 3 years ago

Instead of always setting the receive buffer size to a small 8K, which causes problems when a flood of netlink messages are received, set it to a "minimal" value only if it is currently less than that value.

The value used is 32 x the MAX_PAYLOAD size of 4k, i.e. 128k.

A config value to modify this can be added if needed, but doesn't seem warranted at this time.

Changes in V2: