From owner-svn-src-all@FreeBSD.ORG Wed Feb 25 21:44:55 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A1EA74F9; Wed, 25 Feb 2015 21:44:55 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 826B4D51; Wed, 25 Feb 2015 21:44:55 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1PLit1n048705; Wed, 25 Feb 2015 21:44:55 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1PLisCG048701; Wed, 25 Feb 2015 21:44:54 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201502252144.t1PLisCG048701@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Wed, 25 Feb 2015 21:44:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279299 - in head/sys/dev: e1000 ixgbe ixl X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2015 21:44:55 -0000 Author: adrian Date: Wed Feb 25 21:44:53 2015 New Revision: 279299 URL: https://svnweb.freebsd.org/changeset/base/279299 Log: Migrate using CPU_ZERO() + CPU_SET() -> CPU_SETOF(). Tested: * ixgbe, igb, RSS enabled Submitted by: jhb Sponsored by: Norse Corp, Inc. Modified: head/sys/dev/e1000/if_igb.c head/sys/dev/ixgbe/ixgbe.c head/sys/dev/ixl/if_ixl.c head/sys/dev/ixl/if_ixlv.c Modified: head/sys/dev/e1000/if_igb.c ============================================================================== --- head/sys/dev/e1000/if_igb.c Wed Feb 25 21:43:09 2015 (r279298) +++ head/sys/dev/e1000/if_igb.c Wed Feb 25 21:44:53 2015 (r279299) @@ -2569,8 +2569,7 @@ igb_allocate_msix(struct adapter *adapte * round-robin bucket -> queue -> CPU allocation. */ #ifdef RSS - CPU_ZERO(&cpu_mask); - CPU_SET(cpu_id, &cpu_mask); + CPU_SETOF(cpu_id, &cpu_mask); taskqueue_start_threads_cpuset(&que->tq, 1, PI_NET, &cpu_mask, "%s que (bucket %d)", Modified: head/sys/dev/ixgbe/ixgbe.c ============================================================================== --- head/sys/dev/ixgbe/ixgbe.c Wed Feb 25 21:43:09 2015 (r279298) +++ head/sys/dev/ixgbe/ixgbe.c Wed Feb 25 21:44:53 2015 (r279299) @@ -2463,8 +2463,7 @@ ixgbe_allocate_msix(struct adapter *adap que->tq = taskqueue_create_fast("ixgbe_que", M_NOWAIT, taskqueue_thread_enqueue, &que->tq); #ifdef RSS - CPU_ZERO(&cpu_mask); - CPU_SET(cpu_id, &cpu_mask); + CPU_SETOF(cpu_id, &cpu_mask); taskqueue_start_threads_cpuset(&que->tq, 1, PI_NET, &cpu_mask, "%s (bucket %d)", Modified: head/sys/dev/ixl/if_ixl.c ============================================================================== --- head/sys/dev/ixl/if_ixl.c Wed Feb 25 21:43:09 2015 (r279298) +++ head/sys/dev/ixl/if_ixl.c Wed Feb 25 21:44:53 2015 (r279299) @@ -1945,8 +1945,7 @@ ixl_assign_vsi_msix(struct ixl_pf *pf) que->tq = taskqueue_create_fast("ixl_que", M_NOWAIT, taskqueue_thread_enqueue, &que->tq); #ifdef RSS - CPU_ZERO(&cpu_mask); - CPU_SET(cpu_id, &cpu_mask); + CPU_SETOF(cpu_id, &cpu_mask); taskqueue_start_threads_cpuset(&que->tq, 1, PI_NET, &cpu_mask, "%s (bucket %d)", device_get_nameunit(dev), cpu_id); Modified: head/sys/dev/ixl/if_ixlv.c ============================================================================== --- head/sys/dev/ixl/if_ixlv.c Wed Feb 25 21:43:09 2015 (r279298) +++ head/sys/dev/ixl/if_ixlv.c Wed Feb 25 21:44:53 2015 (r279299) @@ -1419,8 +1419,7 @@ ixlv_assign_msix(struct ixlv_sc *sc) que->tq = taskqueue_create_fast("ixlv_que", M_NOWAIT, taskqueue_thread_enqueue, &que->tq); #ifdef RSS - CPU_ZERO(&cpu_mask); - CPU_SET(cpu_id, &cpu_mask); + CPU_SETOF(cpu_id, &cpu_mask); taskqueue_start_threads_cpuset(&que->tq, 1, PI_NET, &cpu_mask, "%s (bucket %d)", device_get_nameunit(dev), cpu_id);