linux-cp: resync with kernel after nl socket error 21/35521/3
authorAlexander Chernavin <[email protected]>
Wed, 20 Oct 2021 12:15:43 +0000 (12:15 +0000)
committerMatthew Smith <[email protected]>
Thu, 3 Mar 2022 17:04:59 +0000 (17:04 +0000)
commit3819205bdb5ac0217b54f074d7645efa5356b561
tree343041f13b424f0c4902fe4f59a62ce935e1f720
parent758ec1371860929f9a4021ec7b22766d33303e83
linux-cp: resync with kernel after nl socket error

Type: improvement

Currently, if an error happens on the netlink notification socket, the
socket gets reopened. A portion of notification messages have been lost
because of this and will never arrive on the socket. VPP will be out of
sync with the kernel networking state.

With this change, synchronize VPP state and the kernel networking state
if there was an error polling or reading the notification socket.

Signed-off-by: Alexander Chernavin <[email protected]>
Change-Id: I8cdff89b505cd227535a0acaadb6ee757204c45e
src/plugins/linux-cp/lcp_nl.c
src/plugins/linux-cp/lcp_nl.h