Re: [ovs-dev] [PATCH] net: openvswitch: Check vport name

2024-04-16 Thread Paolo Abeni
On Sat, 2024-04-13 at 16:48 +0800, jun.gu wrote: > Check vport name from dev_get_by_name, this can avoid to add and remove > NIC repeatedly when NIC rename failed at system startup. > > Signed-off-by: Jun Gu > --- > net/openvswitch/vport-netdev.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [ovs-dev] [PATCH] net: openvswitch: Check vport name

2024-04-16 Thread Jun Gu
Hi Chaudron, thanks for your reply. Considerthe following scenario: - set a net device alias name (such as *enpxx*) into ovs. - |OVS_VPORT_CMD_NEW -> ||dev_get_by_name can query the net device using *enpxx* name, but the dev->name that return is *ensxx* name. the |net_device|struct including:

Re: [ovs-dev] [PATCH] net: openvswitch: Check vport name

2024-04-16 Thread Eelco Chaudron
On 16 Apr 2024, at 9:57, Jun Gu wrote: > Hi Chaudron, thanks for your reply. Considerthe following scenario: > > - set a net device alias name (such as *enpxx*) into ovs. > > - |OVS_VPORT_CMD_NEW -> ||dev_get_by_name can query the net device using > *enpxx* name, but the dev->name that return

Re: [ovs-dev] [PATCH] net: openvswitch: Check vport name

2024-04-15 Thread Eelco Chaudron
On 13 Apr 2024, at 10:48, jun.gu wrote: > Check vport name from dev_get_by_name, this can avoid to add and remove > NIC repeatedly when NIC rename failed at system startup. > > Signed-off-by: Jun Gu > --- > net/openvswitch/vport-netdev.c | 2 +- > 1 file changed, 1 insertion(+), 1

[ovs-dev] [PATCH] net: openvswitch: Check vport name

2024-04-13 Thread jun.gu
Check vport name from dev_get_by_name, this can avoid to add and remove NIC repeatedly when NIC rename failed at system startup. Signed-off-by: Jun Gu --- net/openvswitch/vport-netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/openvswitch/vport-netdev.c