Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Feb 2021 09:28:47 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: 8340ed8900e4 - stable/11 - MFC 064009e79462: Add support for enabling and disabling IFCAP_VLAN_HWTSO via ifconfig(8) in mlx5en(4).
Message-ID:  <202102010928.1119SlTd039567@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=8340ed8900e4ff48e7a428f30a98c0e91c91da03

commit 8340ed8900e4ff48e7a428f30a98c0e91c91da03
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:28:13 +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 d1288ddd6f23..7f004ed96c70 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
@@ -3233,6 +3233,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?202102010928.1119SlTd039567>