Date: Mon, 30 May 2011 21:07:26 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: cvs-src-old@freebsd.org 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 Message-ID: <201105302107.p4UL7h7h057778@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105302107.p4UL7h7h057778>
