From owner-svn-src-head@freebsd.org Thu Jul 5 04:12:06 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9D3191042970; Thu, 5 Jul 2018 04:12:06 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E503C857B8; Thu, 5 Jul 2018 04:12:05 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w654C1sS046150; Wed, 4 Jul 2018 21:12:01 -0700 (PDT) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w654C1IO046149; Wed, 4 Jul 2018 21:12:01 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201807050412.w654C1IO046149@pdx.rh.CN85.dnsmgr.net> Subject: Re: svn commit: r335973 - head/sys/dev/mxge In-Reply-To: <201807050243.w652hAYL018215@repo.freebsd.org> To: Andrew Gallatin Date: Wed, 4 Jul 2018 21:12:01 -0700 (PDT) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2018 04:12:06 -0000 [ Charset UTF-8 unsupported, converting... ] > Author: gallatin > Date: Thu Jul 5 02:43:10 2018 > New Revision: 335973 > URL: https://svnweb.freebsd.org/changeset/base/335973 > > Log: > mxge: replace 65536 with IP_MAXPACKET in tso settings. > Thank you, I see some of the oddities in tso for other cards but I think there are card limitations occuring there that are at issue. > Modified: > head/sys/dev/mxge/if_mxge.c > > Modified: head/sys/dev/mxge/if_mxge.c > ============================================================================== > --- head/sys/dev/mxge/if_mxge.c Thu Jul 5 02:08:57 2018 (r335972) > +++ head/sys/dev/mxge/if_mxge.c Thu Jul 5 02:43:10 2018 (r335973) > @@ -4984,9 +4984,9 @@ mxge_attach(device_t dev) > ifp->if_ioctl = mxge_ioctl; > ifp->if_start = mxge_start; > ifp->if_get_counter = mxge_get_counter; > - ifp->if_hw_tsomax = 65536 - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN); > + ifp->if_hw_tsomax = IP_MAXPACKET - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN); > ifp->if_hw_tsomaxsegcount = sc->ss[0].tx.max_desc; > - ifp->if_hw_tsomaxsegsize = 65536; > + ifp->if_hw_tsomaxsegsize = IP_MAXPACKET; > /* Initialise the ifmedia structure */ > ifmedia_init(&sc->media, 0, mxge_media_change, > mxge_media_status); > > -- Rod Grimes rgrimes@freebsd.org