[Zrouter-src-freebsd] ZRouter.org: push to FreeBSD HEAD tree

zrouter-src-freebsd at zrouter.org zrouter-src-freebsd at zrouter.org
Fri Feb 3 15:31:01 UTC 2012


details:   http://zrouter.org/hg/FreeBSD/head//rev/1ba9fae8224d
changeset: 335:1ba9fae8224d
user:      ray at terran.dlink.ua
date:      Fri Feb 03 17:30:23 2012 +0200
description:
add pbvlan methods for Port Based VLAN setup

diffstat:

 head/sys/dev/switch/switch_if.m |  31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diffs (48 lines):

diff -r b553db5aa327 -r 1ba9fae8224d head/sys/dev/switch/switch_if.m
--- a/head/sys/dev/switch/switch_if.m	Fri Feb 03 17:28:39 2012 +0200
+++ b/head/sys/dev/switch/switch_if.m	Fri Feb 03 17:30:23 2012 +0200
@@ -147,6 +147,19 @@
 	{
 		return (0xffff);
 	}
+
+	static int
+	null_pbvlan_setports(device_t dev, int port, uint32_t allowed)
+	{
+		return (0);
+	}
+
+	static int
+	null_pbvlan_getports(device_t dev, int port, uint32_t *allowed)
+	{
+		return (0);
+	}
+
 	static int
 	null_reset_subsys(device_t dev, int subsys)
 	{
@@ -310,6 +323,24 @@
 } DEFAULT null_miibus_readreg;
 
 #
+# Write switch PHY register
+#
+METHOD int pbvlan_setports {
+	device_t dev;
+	int port;
+	uint32_t allowed;
+} DEFAULT null_pbvlan_setports;
+
+#
+# Read switch PHY register
+#
+METHOD int pbvlan_getports {
+	device_t dev;
+	int port;
+	uint32_t *allowed;
+} DEFAULT null_pbvlan_getports;
+
+#
 # Get port link status
 #
 METHOD int get_portlink {


More information about the Zrouter-src-freebsd mailing list