net: openvswitch: Check vport netdev name
authorJun Gu <jun.gu@easystack.cn>
Fri, 19 Apr 2024 06:14:25 +0000 (14:14 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Apr 2024 00:34:02 +0000 (17:34 -0700)
commit2540088b836f9e208f7f722a67f9b168737036e8
treec1dbb0abd92cd9cf4d7d5ef62cd2e9b84310454a
parent2557e2ec94fe32d743b30d8a4f6acbaefcba0621
net: openvswitch: Check vport netdev name

Ensure that the provided netdev name is not one of its aliases to
prevent unnecessary creation and destruction of the vport by
ovs-vswitchd.

Signed-off-by: Jun Gu <jun.gu@easystack.cn>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Link: https://lore.kernel.org/r/20240419061425.132723-1-jun.gu@easystack.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/openvswitch/vport-netdev.c