From owner-svn-src-user@FreeBSD.ORG Sun Feb 7 05:16:39 2010 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B7A11065676; Sun, 7 Feb 2010 05:16:39 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 205418FC0A; Sun, 7 Feb 2010 05:16:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o175Gdjt048643; Sun, 7 Feb 2010 05:16:39 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o175GdPk048641; Sun, 7 Feb 2010 05:16:39 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <201002070516.o175GdPk048641@svn.freebsd.org> From: Kip Macy Date: Sun, 7 Feb 2010 05:16:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r203601 - user/kmacy/head_flowtable_v6/sys/net X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2010 05:16:39 -0000 Author: kmacy Date: Sun Feb 7 05:16:38 2010 New Revision: 203601 URL: http://svn.freebsd.org/changeset/base/203601 Log: clean up ddb output further Modified: user/kmacy/head_flowtable_v6/sys/net/flowtable.c Modified: user/kmacy/head_flowtable_v6/sys/net/flowtable.c ============================================================================== --- user/kmacy/head_flowtable_v6/sys/net/flowtable.c Sun Feb 7 05:01:02 2010 (r203600) +++ user/kmacy/head_flowtable_v6/sys/net/flowtable.c Sun Feb 7 05:16:38 2010 (r203601) @@ -1073,8 +1073,11 @@ flowtable_lookup(struct flowtable *ft, s keycheck: #ifdef FLOWTABLE_DEBUG if (flags & FL_DEBUG){ - printf("keycheck: key=%x:%x:%x hash=%x ", - key[0], key[1], key[2], hash); + printf("keycheck: key=%x:%x:%x hash=%x fibnum=%02d " + "keyequal=%d hashequal=%d", + key[0], key[1], key[2], hash, fibnum, + flowtable_key_equal(fle, key), + (fle->f_fhash == hash)); ipv4_flow_print_tuple(flags, proto, (struct sockaddr_in *)ssa, (struct sockaddr_in *)dsa); @@ -1573,10 +1576,11 @@ skipaddr: if (rt_valid && (fle->f_rt->rt_flags & RTF_UP)) db_printf(" RTF_UP "); - db_printf("\n\tkey=%x:%x:%x hash=%08x idle_time=%03d" - "\n\trt=%p ifp=%p", + db_printf("\n\tkey=%08x:%08x:%08x hash=%08x idle_time=%03d" + "\n\tfibnum=%02d rt=%p ifp=%p", hashkey[0], hashkey[1], hashkey[2], fle->f_fhash, - idle_time, fle->f_rt, rt_valid ? fle->f_rt->rt_ifp : NULL); + idle_time, fle->f_fibnum, + fle->f_rt, rt_valid ? fle->f_rt->rt_ifp : NULL); db_printf("\n"); } @@ -1587,7 +1591,8 @@ flowtable_show(struct flowtable *ft, int struct flentry *fle, **flehead; bitstr_t *mask, *tmpmask; - db_printf("cpu: %d\n", cpuid); + if (cpuid != -1) + db_printf("cpu: %d\n", cpuid); mask = flowtable_mask_pcpu(ft, cpuid); tmpmask = ft->ft_tmpmask; memcpy(tmpmask, mask, ft->ft_size/8); @@ -1632,7 +1637,7 @@ flowtable_show_vnet(void) flowtable_show(ft, i); } } else { - flowtable_show(ft, 0); + flowtable_show(ft, -1); } ft = ft->ft_next; }