From owner-cvs-src-old@FreeBSD.ORG Mon May 30 21:07:43 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 62EAD106564A for ; Mon, 30 May 2011 21:07:43 +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 4EB198FC14 for ; Mon, 30 May 2011 21:07:43 +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 p4UL7hFV057779 for ; Mon, 30 May 2011 21:07:43 GMT (envelope-from np@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p4UL7h7h057778 for cvs-src-old@freebsd.org; Mon, 30 May 2011 21:07:43 GMT (envelope-from np@repoman.freebsd.org) Message-Id: <201105302107.p4UL7h7h057778@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to np@repoman.freebsd.org using -f From: Navdeep Parhar Date: Mon, 30 May 2011 21:07:26 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/conf files src/sys/dev/cxgbe adapter.h offload.h osdep.h t4_ioctl.h t4_l2t.c t4_l2t.h t4_main.c src/sys/dev/cxgbe/common jhash.h 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: Mon, 30 May 2011 21:07:43 -0000 np 2011-05-30 21:07:26 UTC FreeBSD src repository Modified files: sys/conf files sys/dev/cxgbe adapter.h offload.h osdep.h t4_ioctl.h t4_main.c sys/modules/cxgbe/if_cxgbe Makefile Added files: sys/dev/cxgbe t4_l2t.c t4_l2t.h sys/dev/cxgbe/common jhash.h Log: SVN rev 222509 on 2011-05-30 21:07:26Z by np L2 table code. This is enough to get the T4's switch + L2 rewrite filters working. (All other filters - switch without L2 info rewrite, steer, and drop - were already fully-functional). Some contrived examples of "switch" filters with L2 rewriting: # cxgbetool t4nex0 iport 0 dport 80 action switch vlan +9 eport 3 Intercept all packets received on physical port 0 with TCP port 80 as destination, insert a vlan tag with VID 9, and send them out of port 3. # cxgbetool t4nex0 sip 192.168.1.1/32 ivlan 5 action switch \ vlan =9 smac aa:bb:cc:dd:ee:ff eport 0 Intercept all packets (received on any port) with source IP address 192.168.1.1 and VLAN id 5, rewrite the VLAN id to 9, rewrite source mac to aa:bb:cc:dd:ee:ff, and send it out of port 0. MFC after: 1 week Revision Changes Path 1.1601 +2 -0 src/sys/conf/files 1.12 +1 -0 src/sys/dev/cxgbe/adapter.h 1.1 +140 -0 src/sys/dev/cxgbe/common/jhash.h (new) 1.3 +18 -0 src/sys/dev/cxgbe/offload.h 1.3 +1 -0 src/sys/dev/cxgbe/osdep.h 1.4 +2 -0 src/sys/dev/cxgbe/t4_ioctl.h 1.1 +361 -0 src/sys/dev/cxgbe/t4_l2t.c (new) 1.1 +71 -0 src/sys/dev/cxgbe/t4_l2t.h (new) 1.20 +32 -12 src/sys/dev/cxgbe/t4_main.c 1.3 +1 -1 src/sys/modules/cxgbe/if_cxgbe/Makefile