Add support for IFCAP_NOMAP to mlx5(4).
Since mlx5 uses bus_dma, this only required adding the capability flag. Submitted by: gallatin Reviewed by: gallatin, hselasky, rrs Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D20616
This commit is contained in:
parent
d76bbe175a
commit
e37240f9f3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349534
@ -3281,6 +3281,8 @@ mlx5e_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
|
|||||||
"tso6 disabled due to -txcsum6.\n");
|
"tso6 disabled due to -txcsum6.\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (mask & IFCAP_NOMAP)
|
||||||
|
ifp->if_capenable ^= IFCAP_NOMAP;
|
||||||
if (mask & IFCAP_RXCSUM)
|
if (mask & IFCAP_RXCSUM)
|
||||||
ifp->if_capenable ^= IFCAP_RXCSUM;
|
ifp->if_capenable ^= IFCAP_RXCSUM;
|
||||||
if (mask & IFCAP_RXCSUM_IPV6)
|
if (mask & IFCAP_RXCSUM_IPV6)
|
||||||
@ -4147,6 +4149,7 @@ mlx5e_create_ifp(struct mlx5_core_dev *mdev)
|
|||||||
ifp->if_capabilities |= IFCAP_LRO;
|
ifp->if_capabilities |= IFCAP_LRO;
|
||||||
ifp->if_capabilities |= IFCAP_TSO | IFCAP_VLAN_HWTSO;
|
ifp->if_capabilities |= IFCAP_TSO | IFCAP_VLAN_HWTSO;
|
||||||
ifp->if_capabilities |= IFCAP_HWSTATS | IFCAP_HWRXTSTMP;
|
ifp->if_capabilities |= IFCAP_HWSTATS | IFCAP_HWRXTSTMP;
|
||||||
|
ifp->if_capabilities |= IFCAP_NOMAP;
|
||||||
ifp->if_capabilities |= IFCAP_TXRTLMT;
|
ifp->if_capabilities |= IFCAP_TXRTLMT;
|
||||||
ifp->if_snd_tag_alloc = mlx5e_snd_tag_alloc;
|
ifp->if_snd_tag_alloc = mlx5e_snd_tag_alloc;
|
||||||
ifp->if_snd_tag_free = mlx5e_snd_tag_free;
|
ifp->if_snd_tag_free = mlx5e_snd_tag_free;
|
||||||
|
Loading…
Reference in New Issue
Block a user