From owner-cvs-src-old@FreeBSD.ORG Mon Nov 29 21:04:20 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A44C10656C1 for ; Mon, 29 Nov 2010 21:04:20 +0000 (UTC) (envelope-from jmallett@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5756F8FC16 for ; Mon, 29 Nov 2010 21:04:20 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oATL4Klb009239 for ; Mon, 29 Nov 2010 21:04:20 GMT (envelope-from jmallett@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oATL4Kfd009238 for cvs-src-old@freebsd.org; Mon, 29 Nov 2010 21:04:20 GMT (envelope-from jmallett@repoman.freebsd.org) Message-Id: <201011292104.oATL4Kfd009238@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jmallett@repoman.freebsd.org using -f From: Juli Mallett Date: Mon, 29 Nov 2010 21:04:00 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/mips/cavium/octe ethernet-tx.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2010 21:04:20 -0000 jmallett 2010-11-29 21:04:00 UTC FreeBSD src repository Modified files: sys/mips/cavium/octe ethernet-tx.c Log: SVN rev 216064 on 2010-11-29 21:04:00Z by jmallett Don't free the work queue entry that we're using to hold the scatter-gather list on exit from the transmit path. The scatter-gather list itself can be asynchronously DMAed to the transmit hardware, and we could actually lock up the transmitter if any of a number of races around this were lost. Instead, let the PKO free the scatter-gather list when it is done with it, and use the "i" bit in each segment of the packet to avoid having them go into the FPA. This fixes an unrecoverable transmit stall under transmit load. MFC after: 3 days Revision Changes Path 1.4 +8 -4 src/sys/mips/cavium/octe/ethernet-tx.c