Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Feb 2021 09:26:03 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6bc1f8425560 - stable/13 - MFC 064009e79462: Add support for enabling and disabling IFCAP_VLAN_HWTSO via ifconfig(8) in mlx5en(4).
Message-ID:  <202102010926.1119Q3Hw038931@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=6bc1f8425560fa3e2ebc6ac3367967a083ccf6e0

commit 6bc1f8425560fa3e2ebc6ac3367967a083ccf6e0
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2021-01-25 10:22:55 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2021-02-01 09:25:16 +0000

    MFC 064009e79462:
    Add support for enabling and disabling IFCAP_VLAN_HWTSO via
    ifconfig(8) in mlx5en(4).
    
    Sponsored by:   Mellanox Technologies // NVIDIA Networking
    
    (cherry picked from commit 064009e79462dea517aa7f1a857fb4d5393caa69)
---
 sys/dev/mlx5/mlx5_en/mlx5_en_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
index 0d4028e240ca..023f519f7ced 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
@@ -3413,6 +3413,8 @@ mlx5e_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
 			ifp->if_capenable ^= IFCAP_TSO6;
 			ifp->if_hwassist ^= CSUM_IP6_TSO;
 		}
+		if (mask & IFCAP_VLAN_HWTSO)
+			ifp->if_capenable ^= IFCAP_VLAN_HWTSO;
 		if (mask & IFCAP_VLAN_HWFILTER) {
 			if (ifp->if_capenable & IFCAP_VLAN_HWFILTER)
 				mlx5e_disable_vlan_filter(priv);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102010926.1119Q3Hw038931>