The branch stable/12 has been updated by hselasky:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=918b98a061293dba0efd3ba6524ca6a4a0ef1d2e

commit 918b98a061293dba0efd3ba6524ca6a4a0ef1d2e
Author:     Hans Petter Selasky <hsela...@freebsd.org>
AuthorDate: 2021-01-25 10:22:55 +0000
Commit:     Hans Petter Selasky <hsela...@freebsd.org>
CommitDate: 2021-02-01 09:27:01 +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 79cf9d9b631d..1596ca0fb21a 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
@@ -3378,6 +3378,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);
_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to