aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/cxgbe/if_cxgbe
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2011-05-30 21:07:26 +0000
committerNavdeep Parhar <np@FreeBSD.org>2011-05-30 21:07:26 +0000
commit4dba21f17e7d77718b76685b2635b33efd520db9 (patch)
tree4f96a53fa05f51b7cc751e27bf7c0016ed713121 /sys/modules/cxgbe/if_cxgbe
parent9aa461b5701c0ede80228ad4b710ed2a09059ba6 (diff)
downloadsrc-4dba21f17e7d77718b76685b2635b33efd520db9.tar.gz
src-4dba21f17e7d77718b76685b2635b33efd520db9.zip
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
Notes
Notes: svn path=/head/; revision=222509
Diffstat (limited to 'sys/modules/cxgbe/if_cxgbe')
-rw-r--r--sys/modules/cxgbe/if_cxgbe/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/modules/cxgbe/if_cxgbe/Makefile b/sys/modules/cxgbe/if_cxgbe/Makefile
index a524cdeeda26..ac1d22c1f095 100644
--- a/sys/modules/cxgbe/if_cxgbe/Makefile
+++ b/sys/modules/cxgbe/if_cxgbe/Makefile
@@ -6,7 +6,7 @@ CXGBE = ${.CURDIR}/../../../dev/cxgbe
.PATH: ${CXGBE} ${CXGBE}/common
KMOD = if_cxgbe
-SRCS = t4_main.c t4_sge.c
+SRCS = t4_main.c t4_sge.c t4_l2t.c
SRCS+= t4_hw.c
SRCS+= device_if.h bus_if.h pci_if.h
SRCS+= opt_inet.h