t4_main.c (355252) | t4_main.c (362511) |
---|---|
1/*- 2 * Copyright (c) 2011 Chelsio Communications, Inc. 3 * All rights reserved. 4 * Written by: Navdeep Parhar <np@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2011 Chelsio Communications, Inc. 3 * All rights reserved. 4 * Written by: Navdeep Parhar <np@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/t4_main.c 355252 2019-11-30 20:51:47Z np $"); | 29__FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/t4_main.c 362511 2020-06-22 21:28:51Z freqlabs $"); |
30 31#include "opt_ddb.h" 32#include "opt_inet.h" 33#include "opt_inet6.h" 34#include "opt_rss.h" 35 36#include <sys/param.h> 37#include <sys/conf.h> --- 1822 unchanged lines hidden (view full) --- 1860 1861 mask = ifr->ifr_reqcap ^ ifp->if_capenable; 1862 if (mask & IFCAP_TXCSUM) { 1863 ifp->if_capenable ^= IFCAP_TXCSUM; 1864 ifp->if_hwassist ^= (CSUM_TCP | CSUM_UDP | CSUM_IP); 1865 1866 if (IFCAP_TSO4 & ifp->if_capenable && 1867 !(IFCAP_TXCSUM & ifp->if_capenable)) { | 30 31#include "opt_ddb.h" 32#include "opt_inet.h" 33#include "opt_inet6.h" 34#include "opt_rss.h" 35 36#include <sys/param.h> 37#include <sys/conf.h> --- 1822 unchanged lines hidden (view full) --- 1860 1861 mask = ifr->ifr_reqcap ^ ifp->if_capenable; 1862 if (mask & IFCAP_TXCSUM) { 1863 ifp->if_capenable ^= IFCAP_TXCSUM; 1864 ifp->if_hwassist ^= (CSUM_TCP | CSUM_UDP | CSUM_IP); 1865 1866 if (IFCAP_TSO4 & ifp->if_capenable && 1867 !(IFCAP_TXCSUM & ifp->if_capenable)) { |
1868 mask &= ~IFCAP_TSO4; |
|
1868 ifp->if_capenable &= ~IFCAP_TSO4; 1869 if_printf(ifp, 1870 "tso4 disabled due to -txcsum.\n"); 1871 } 1872 } 1873 if (mask & IFCAP_TXCSUM_IPV6) { 1874 ifp->if_capenable ^= IFCAP_TXCSUM_IPV6; 1875 ifp->if_hwassist ^= (CSUM_UDP_IPV6 | CSUM_TCP_IPV6); 1876 1877 if (IFCAP_TSO6 & ifp->if_capenable && 1878 !(IFCAP_TXCSUM_IPV6 & ifp->if_capenable)) { | 1869 ifp->if_capenable &= ~IFCAP_TSO4; 1870 if_printf(ifp, 1871 "tso4 disabled due to -txcsum.\n"); 1872 } 1873 } 1874 if (mask & IFCAP_TXCSUM_IPV6) { 1875 ifp->if_capenable ^= IFCAP_TXCSUM_IPV6; 1876 ifp->if_hwassist ^= (CSUM_UDP_IPV6 | CSUM_TCP_IPV6); 1877 1878 if (IFCAP_TSO6 & ifp->if_capenable && 1879 !(IFCAP_TXCSUM_IPV6 & ifp->if_capenable)) { |
1880 mask &= ~IFCAP_TSO6; |
|
1879 ifp->if_capenable &= ~IFCAP_TSO6; 1880 if_printf(ifp, 1881 "tso6 disabled due to -txcsum6.\n"); 1882 } 1883 } 1884 if (mask & IFCAP_RXCSUM) 1885 ifp->if_capenable ^= IFCAP_RXCSUM; 1886 if (mask & IFCAP_RXCSUM_IPV6) --- 8927 unchanged lines hidden --- | 1881 ifp->if_capenable &= ~IFCAP_TSO6; 1882 if_printf(ifp, 1883 "tso6 disabled due to -txcsum6.\n"); 1884 } 1885 } 1886 if (mask & IFCAP_RXCSUM) 1887 ifp->if_capenable ^= IFCAP_RXCSUM; 1888 if (mask & IFCAP_RXCSUM_IPV6) --- 8927 unchanged lines hidden --- |