Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2012 07:40:37 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r236353 - user/np/toe_iwarp/usr.bin/sockstat
Message-ID:  <201205310740.q4V7eba3023968@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Thu May 31 07:40:37 2012
New Revision: 236353
URL: http://svn.freebsd.org/changeset/base/236353

Log:
  Have sockstat display "toe" instead of "tcp" for offloaded connections.

Modified:
  user/np/toe_iwarp/usr.bin/sockstat/sockstat.c

Modified: user/np/toe_iwarp/usr.bin/sockstat/sockstat.c
==============================================================================
--- user/np/toe_iwarp/usr.bin/sockstat/sockstat.c	Thu May 31 07:16:50 2012	(r236352)
+++ user/np/toe_iwarp/usr.bin/sockstat/sockstat.c	Thu May 31 07:40:37 2012	(r236353)
@@ -324,6 +324,7 @@ gather_inet(int proto)
 			}
 			inp = &xtp->xt_inp;
 			so = &xtp->xt_socket;
+			protoname = xtp->xt_tp.t_flags & TF_TOE ? "toe" : "tcp";
 			break;
 		case IPPROTO_UDP:
 		case IPPROTO_DIVERT:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205310740.q4V7eba3023968>