From owner-cvs-src@FreeBSD.ORG Tue Jul 24 01:11:01 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B6F716A41A; Tue, 24 Jul 2007 01:11:01 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6FDFF13C474; Tue, 24 Jul 2007 01:11:01 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6O1B1Da051214; Tue, 24 Jul 2007 01:11:01 GMT (envelope-from yongari@repoman.freebsd.org) Received: (from yongari@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6O1B1Kc051213; Tue, 24 Jul 2007 01:11:01 GMT (envelope-from yongari) Message-Id: <200707240111.l6O1B1Kc051213@repoman.freebsd.org> From: Pyun YongHyeon Date: Tue, 24 Jul 2007 01:11:01 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/nfe if_nfe.c if_nfevar.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2007 01:11:01 -0000 yongari 2007-07-24 01:11:01 UTC FreeBSD src repository Modified files: sys/dev/nfe if_nfe.c if_nfevar.h Log: Don't fail on device attach if jumbo frame support was unsuccessful. Because nfe(4) hardware doesn't support SG on Rx path, supporting jumbo frame requires very large contiguous kernel memory(i.e. several mega bytes). In case of lack of contiguous kernel memory that allocation request may always fail. However nfe(4) can operate on normal sized MTU frames, so go ahead and just disable jumbo frame support. While I'm here add a new tunable "hw.nfe.jumbo_disable" to disable jumbo frame support. In nfe_poll, make sure to invoke correct Rx handler. Approved by: re (kensmith) Revision Changes Path 1.19 +25 -9 src/sys/dev/nfe/if_nfe.c 1.5 +1 -0 src/sys/dev/nfe/if_nfevar.h