From owner-freebsd-net@FreeBSD.ORG Sun May 18 23:44:24 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 960862B8; Sun, 18 May 2014 23:44:24 +0000 (UTC) Received: from mail-qg0-x231.google.com (mail-qg0-x231.google.com [IPv6:2607:f8b0:400d:c04::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A30F2774; Sun, 18 May 2014 23:44:24 +0000 (UTC) Received: by mail-qg0-f49.google.com with SMTP id a108so7529598qge.36 for ; Sun, 18 May 2014 16:44:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=adycisgBehZMJaGd7jW/wmspl8OHPL4fhmk6fxrpFBM=; b=ix3fyDLVicTJn3vfd/V4+JYshmwuN1Nj5W0YYFpUmrzW+Kf/Tw4Ogi34Qsc5RdHH9G UA4ee3QpRnwvGEm8QBQxX/JWgbK+oeiNIk062dUgxZ2retGwlR4OB/F0LvYZ+kR/nV7P wl6fk9uVthG7bVPwv+KNBxzumc9LEBbYai/CPJxrLXFATy4RQMqDSHZYUUQi4LQfkUxc 6izNA/bwoYRMW9DOxhqXNntV/M3LcUkkb2PSsNMWYP/1kiquF3LOIjPN+1co8gvxeQFD gjtGoJQBWoC40BpaxJQoLHcF4wRnBSlUUDLUWgFt/JQMtH4NTVrjzs2vLc1JXSSbLGGY o/9w== MIME-Version: 1.0 X-Received: by 10.224.137.1 with SMTP id u1mr42220050qat.73.1400456663494; Sun, 18 May 2014 16:44:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.191.201 with HTTP; Sun, 18 May 2014 16:44:23 -0700 (PDT) Date: Sun, 18 May 2014 16:44:23 -0700 X-Google-Sender-Auth: wWW3g-T1NLhWgsHe8cBIux6F_Vs Message-ID: Subject: [rfc] teach netstat about flowid/flowtype From: Adrian Chadd To: "freebsd-arch@freebsd.org" , FreeBSD Net Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2014 23:44:24 -0000 Hi! My next hack - adding flowid/flowtype to netstat. It's netstat -R. It's like -x, but listing RSS/flowid stuff. http://people.freebsd.org/~adrian/norse/20140518-netstat-rss-1.diff This is useful for both RSS and non-RSS debugging - NICs that populate the mbuf flowid will start to show flowid's up in netstat. It doesn't currently show the rss CPUID as that isn't cached in the inpcb. I'll worry about adding that later on. Any issues with me just committing this? I promise I'll email doc@ to get it documented. Thanks, -a