git: 70323196c2b1 - stable/14 - vmxnet3: do restart on VLAN changes

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Thu, 07 Sep 2023 19:27:02 UTC
The branch stable/14 has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=70323196c2b1969a69b5888519d0375882fc8ca9

commit 70323196c2b1969a69b5888519d0375882fc8ca9
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-08-31 07:32:54 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-09-07 19:26:05 +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
    Approved by:    re (gjb)
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit 8c1274138a20ee2342c4f217adb605e3abc14042)
---
 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);
 	}