diff options
Diffstat (limited to 'lib/netlink-notifier.c')
-rw-r--r-- | lib/netlink-notifier.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/netlink-notifier.c b/lib/netlink-notifier.c index 9aa185d5b..0be851838 100644 --- a/lib/netlink-notifier.c +++ b/lib/netlink-notifier.c @@ -182,12 +182,15 @@ nln_run(struct nln *nln) return; } else { if (error == ENOBUFS) { + /* The socket buffer might be full, there could be too many + * notifications, so it makes sense to call nln_report() */ + nln_report(nln, NULL); VLOG_WARN_RL(&rl, "netlink receive buffer overflowed"); } else { VLOG_WARN_RL(&rl, "error reading netlink socket: %s", ovs_strerror(error)); } - nln_report(nln, NULL); + return; } } } |