From owner-cvs-src-old@FreeBSD.ORG Fri May 13 22:49:13 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DB43106566C for ; Fri, 13 May 2011 22:49:13 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 40F238FC1F for ; Fri, 13 May 2011 22:49:13 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p4DMnDs3019596 for ; Fri, 13 May 2011 22:49:13 GMT (envelope-from np@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p4DMnDIs019595 for cvs-src-old@freebsd.org; Fri, 13 May 2011 22:49:13 GMT (envelope-from np@repoman.freebsd.org) Message-Id: <201105132249.p4DMnDIs019595@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to np@repoman.freebsd.org using -f From: Navdeep Parhar Date: Fri, 13 May 2011 22:48:44 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/dev/cxgbe offload.h t4_ioctl.h t4_main.c t4_sge.c src/sys/modules/cxgbe/if_cxgbe Makefile X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2011 22:49:13 -0000 np 2011-05-13 22:48:44 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/dev/cxgbe offload.h t4_ioctl.h t4_main.c t4_sge.c sys/modules/cxgbe/if_cxgbe Makefile Log: SVN rev 221861 on 2011-05-13 22:48:44Z by np MFC r221474, r221477 (packet filter/steer/switch, timestamps) r221474: T4 packet filtering/steering. - Enable 5-tuple and every-packet lookup. - Setup the default filter mode to allow filtering/steering based on IP protocol, ingress port, inner VLAN ID, IP frag, FCoE, and MPS match type; all combined together. You can also filter based on MAC index, Ethernet type, IP TOS/IPv6 Traffic Class, and outer VLAN ID but you'll have to modify the default filter mode and exclude some of the match-fields in it. IPv4 and IPv6 SIP/DIP/SPORT/DPORT are always available in all filter rules. - Add driver ioctls to get/set the global filter mode. - Add driver ioctls to program and delete hardware filters. A couple of the "switch" actions that rewrite Ethernet and VLAN information and switch the packet out of another port may not work as the L2 code is not yet in place. Everything else, including all "drop" and "pass" rules with RSS or absolute qid, should work. r221477: T4 packet timestamps. Reference code that shows how to get a packet's timestamp out of cxgbe(4). Disabled by default because we don't have a standard way today to pass this information up the stack. The timestamp is 60 bits wide and each increment represents 1 tick of the T4's core clock. As an example, the timestamp granularity is ~4.4ns for this card: # sysctl dev.t4nex.0.core_clock dev.t4nex.0.core_clock: 228125 Revision Changes Path 1.1.2.3 +2 -0 src/sys/dev/cxgbe/offload.h 1.1.2.4 +134 -0 src/sys/dev/cxgbe/t4_ioctl.h 1.7.2.10 +530 -3 src/sys/dev/cxgbe/t4_main.c 1.8.2.9 +27 -2 src/sys/dev/cxgbe/t4_sge.c 1.1.2.3 +3 -0 src/sys/modules/cxgbe/if_cxgbe/Makefile