adrian a2ba9f176f Add -R to netstat to dump RSS/flow information.
This is intended to help in diagnostics and debugging of NIC and stack
flowid support.

Eventually this will grow another column (RSS CPU ID) but
that currently isn't cached in the inpcb.

There's also no clean flowtype -> flowtype identifier string.  This is
the mbuf M_HASHTYPE_* values for RSS.

Here's some example output:

adrian@adrian-hackbox:~/work/freebsd/head/src % netstat -Rn | more
Active Internet connections
Proto Recv-Q Send-Q Local Address          Foreign Address           flowid ftype
tcp4       0      0 10.11.1.65.22          10.11.1.64.12409        29041942     2
udp4       0      0 127.0.0.1.123          *.*                     00000000     0
udp6       0      0 fe80::1%lo0.123        *.*                     00000000     0
udp6       0      0 ::1.123                *.*                     00000000     0
udp4       0      0 10.11.1.65.123         *.*                     00000000     0

Tested:

* amd64 system w/ igb NIC; local driver changes to expose RSS flowid in if_igb.
2014-05-19 17:11:43 +00:00
..
2013-11-18 23:11:42 +00:00
2011-11-06 08:14:22 +00:00
2014-02-08 13:29:35 +00:00
2014-04-16 23:14:05 +00:00
2013-09-22 20:30:55 +00:00
2014-03-15 00:58:08 +00:00
2012-11-04 09:27:01 +00:00
2013-03-11 13:08:32 +00:00
2012-04-19 03:20:13 +00:00
2014-04-13 19:48:51 +00:00
2013-11-21 21:19:01 +00:00
2013-05-11 13:46:05 +00:00
2014-04-25 04:01:25 +00:00
2013-09-30 17:23:45 +00:00
2012-05-10 02:07:00 +00:00
2011-12-30 11:02:40 +00:00
2014-04-24 11:27:03 +00:00
2013-02-19 13:32:26 +00:00
2012-09-14 17:50:42 +00:00
2012-11-17 23:52:38 +00:00
2011-10-16 08:04:43 +00:00
2013-07-04 03:24:58 +00:00
2014-02-01 09:27:57 +00:00
2014-05-11 02:04:40 +00:00
2012-06-21 21:47:08 +00:00
2014-05-15 19:19:57 +00:00
2011-05-13 09:55:48 +00:00
2010-10-19 00:01:53 +00:00
2012-05-26 17:10:16 +00:00
2013-09-20 16:05:09 +00:00
2013-03-17 06:36:04 +00:00
2014-02-08 13:37:02 +00:00
2011-11-06 08:16:35 +00:00
2013-11-09 09:05:50 +00:00
2013-01-14 11:06:50 +00:00
2013-04-23 13:03:17 +00:00
2013-11-20 17:48:38 +00:00
2013-03-28 20:33:07 +00:00
2014-05-15 05:35:00 +00:00
2013-05-12 22:22:12 +00:00
2012-09-14 17:50:42 +00:00
2013-07-28 18:44:17 +00:00
2011-11-06 08:19:00 +00:00
2012-10-07 20:01:41 +00:00
2014-02-08 13:37:02 +00:00
2011-10-16 08:04:43 +00:00
2012-09-17 23:04:15 +00:00
2010-06-19 16:24:55 +00:00
2013-03-07 23:44:35 +00:00