From owner-svn-src-stable@FreeBSD.ORG Wed Feb 15 06:16:52 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2D75106566C; Wed, 15 Feb 2012 06:16:52 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BC7798FC12; Wed, 15 Feb 2012 06:16:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q1F6Gqg7040584; Wed, 15 Feb 2012 06:16:52 GMT (envelope-from luigi@svn.freebsd.org) Received: (from luigi@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q1F6GqVf040582; Wed, 15 Feb 2012 06:16:52 GMT (envelope-from luigi@svn.freebsd.org) Message-Id: <201202150616.q1F6GqVf040582@svn.freebsd.org> From: Luigi Rizzo Date: Wed, 15 Feb 2012 06:16:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231742 - stable/8/sys/dev/netmap X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 06:16:52 -0000 Author: luigi Date: Wed Feb 15 06:16:52 2012 New Revision: 231742 URL: http://svn.freebsd.org/changeset/base/231742 Log: use 4096 instead of PAGE_SIZE to determine the initial size of the memory allocated for netmap. Apparently the previous value fails with an integer overflow on stable/8-IA64 (4M pages ? curious that it does not fail on stable/9 and head) Modified: stable/8/sys/dev/netmap/netmap.c Modified: stable/8/sys/dev/netmap/netmap.c ============================================================================== --- stable/8/sys/dev/netmap/netmap.c Wed Feb 15 05:37:41 2012 (r231741) +++ stable/8/sys/dev/netmap/netmap.c Wed Feb 15 06:16:52 2012 (r231742) @@ -133,7 +133,7 @@ SYSCTL_INT(_dev_netmap, OID_AUTO, no_pen * At the moment the block is contiguous, but we can easily * restrict our demand to smaller units (16..64k) */ -#define NETMAP_MEMORY_SIZE (64 * 1024 * PAGE_SIZE) +#define NETMAP_MEMORY_SIZE (64 * 1024 * 4096) static void * netmap_malloc(size_t size, const char *msg); static void netmap_free(void *addr, const char *msg);