git: 8c1274138a20 - main - vmxnet3: do restart on VLAN changes

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Thu, 31 Aug 2023 08:42:42 UTC
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=8c1274138a20ee2342c4f217adb605e3abc14042

commit 8c1274138a20ee2342c4f217adb605e3abc14042
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-08-31 07:32:54 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-08-31 08:42:29 +0000

    vmxnet3: do restart on VLAN changes
    
    At least one user reports issues with vmx interfaces after 725e4008ef,
    where we default to not resetting the interface on VLAN changes. This
    was on an ESXi 7.0.3 setup.
    
    Reported by:    Marcos Mendoza <mmendoza@netgate.com>
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/dev/vmware/vmxnet3/if_vmx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/vmware/vmxnet3/if_vmx.c b/sys/dev/vmware/vmxnet3/if_vmx.c
index 2c3530a217f3..fdcad0dd4bba 100644
--- a/sys/dev/vmware/vmxnet3/if_vmx.c
+++ b/sys/dev/vmware/vmxnet3/if_vmx.c
@@ -2513,6 +2513,7 @@ vmxnet3_if_needs_restart(if_ctx_t ctx __unused, enum iflib_restart_event event)
 {
 	switch (event) {
 	case IFLIB_RESTART_VLAN_CONFIG:
+		return (true);
 	default:
 		return (false);
 	}