dpdk: fix update link state 84/36184/3
authorAlexander Skorichenko <askorichenko@netgate.com>
Fri, 20 May 2022 11:13:19 +0000 (11:13 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Mon, 23 May 2022 16:33:51 +0000 (16:33 +0000)
commitd8366d085fa375968c8ddafb4eea85b1b167b34c
treeb5e2665ae3b14f2498592bf5b2a19b3daa26b84a
parent8abbdf509bbd20c5325c8637f78f502aeeb77af3
dpdk: fix update link state

Type: fix

Correct vnet_hw_interface_t flags update on link state changes.
Currently incomplete set of flags is applied on each change,
only flags related to the most recent change are being set correct.
E.g. setting the link up would erase the duplex part of the flags.

Signed-off-by: Alexander Skorichenko <askorichenko@netgate.com>
Change-Id: I5b95e1c0eaea0c283b108dbf7f809682ec9064eb
src/plugins/dpdk/device/init.c