t4_main.c (346923) | t4_main.c (346928) |
---|---|
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 346923 2019-04-29 20:10:28Z np $"); | 29__FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/t4_main.c 346928 2019-04-29 21:34:24Z np $"); |
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> --- 17 unchanged lines hidden (view full) --- 55#include <net/ethernet.h> 56#include <net/if.h> 57#include <net/if_types.h> 58#include <net/if_dl.h> 59#include <net/if_vlan_var.h> 60#ifdef RSS 61#include <net/rss_config.h> 62#endif | 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> --- 17 unchanged lines hidden (view full) --- 55#include <net/ethernet.h> 56#include <net/if.h> 57#include <net/if_types.h> 58#include <net/if_dl.h> 59#include <net/if_vlan_var.h> 60#ifdef RSS 61#include <net/rss_config.h> 62#endif |
63#include <netinet/in.h> 64#include <netinet/ip.h> |
|
63#if defined(__i386__) || defined(__amd64__) 64#include <machine/md_var.h> 65#include <machine/cputypes.h> 66#include <vm/vm.h> 67#include <vm/pmap.h> 68#endif 69#include <crypto/rijndael/rijndael.h> 70#ifdef DDB --- 1531 unchanged lines hidden (view full) --- 1602#ifdef TCP_OFFLOAD 1603 if (vi->nofldrxq != 0) 1604 ifp->if_capabilities |= IFCAP_TOE; 1605#endif 1606 ifp->if_capenable = T4_CAP_ENABLE; 1607 ifp->if_hwassist = CSUM_TCP | CSUM_UDP | CSUM_IP | CSUM_TSO | 1608 CSUM_UDP_IPV6 | CSUM_TCP_IPV6; 1609 | 65#if defined(__i386__) || defined(__amd64__) 66#include <machine/md_var.h> 67#include <machine/cputypes.h> 68#include <vm/vm.h> 69#include <vm/pmap.h> 70#endif 71#include <crypto/rijndael/rijndael.h> 72#ifdef DDB --- 1531 unchanged lines hidden (view full) --- 1604#ifdef TCP_OFFLOAD 1605 if (vi->nofldrxq != 0) 1606 ifp->if_capabilities |= IFCAP_TOE; 1607#endif 1608 ifp->if_capenable = T4_CAP_ENABLE; 1609 ifp->if_hwassist = CSUM_TCP | CSUM_UDP | CSUM_IP | CSUM_TSO | 1610 CSUM_UDP_IPV6 | CSUM_TCP_IPV6; 1611 |
1610 ifp->if_hw_tsomax = 65536 - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN); 1611 ifp->if_hw_tsomaxsegcount = TX_SGL_SEGS; | 1612 ifp->if_hw_tsomax = IP_MAXPACKET; 1613 ifp->if_hw_tsomaxsegcount = TX_SGL_SEGS_TSO; 1614#ifdef RATELIMIT 1615 if (is_ethoffload(vi->pi->adapter) && vi->nofldtxq != 0) 1616 ifp->if_hw_tsomaxsegcount = TX_SGL_SEGS_EO_TSO; 1617#endif |
1612 ifp->if_hw_tsomaxsegsize = 65536; 1613 1614 ether_ifattach(ifp, vi->hw_addr); 1615#ifdef DEV_NETMAP 1616 if (vi->nnmrxq != 0) 1617 cxgbe_nm_attach(vi); 1618#endif 1619 sb = sbuf_new_auto(); --- 8966 unchanged lines hidden --- | 1618 ifp->if_hw_tsomaxsegsize = 65536; 1619 1620 ether_ifattach(ifp, vi->hw_addr); 1621#ifdef DEV_NETMAP 1622 if (vi->nnmrxq != 0) 1623 cxgbe_nm_attach(vi); 1624#endif 1625 sb = sbuf_new_auto(); --- 8966 unchanged lines hidden --- |