From a6208952a366096657d15c7a955180d02c88b87d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 15 Apr 2009 16:00:16 -0700 Subject: Add Qos matching based on Ethernet MAC address Use existing u32 infrastructure to match in header --- .../node.tag/class/node.tag/match/node.tag/ether/destination/node.def | 2 ++ .../node.tag/class/node.tag/match/node.tag/ether/protocol/node.def | 3 +++ .../node.tag/class/node.tag/match/node.tag/ether/source/node.def | 2 ++ .../node.tag/class/node.tag/match/node.tag/ether/destination/node.def | 2 ++ .../node.tag/class/node.tag/match/node.tag/ether/protocol/node.def | 3 +++ .../node.tag/class/node.tag/match/node.tag/ether/source/node.def | 2 ++ .../node.tag/class/node.tag/match/node.tag/ether/destination/node.def | 2 ++ .../node.tag/class/node.tag/match/node.tag/ether/protocol/node.def | 3 +++ .../node.tag/class/node.tag/match/node.tag/ether/source/node.def | 2 ++ 9 files changed, 21 insertions(+) create mode 100644 templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/destination/node.def create mode 100644 templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def create mode 100644 templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/source/node.def create mode 100644 templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/destination/node.def create mode 100644 templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def create mode 100644 templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/source/node.def create mode 100644 templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/destination/node.def create mode 100644 templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def create mode 100644 templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/source/node.def (limited to 'templates/qos-policy') diff --git a/templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/destination/node.def b/templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/destination/node.def new file mode 100644 index 0000000..e8be347 --- /dev/null +++ b/templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/destination/node.def @@ -0,0 +1,2 @@ +type: macaddr +help: Set the Ethernet destination address for this match diff --git a/templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def b/templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def new file mode 100644 index 0000000..05d6511 --- /dev/null +++ b/templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def @@ -0,0 +1,3 @@ +type: u32 +help: Set Ethernet protocol for this match +syntax:expression: ($VAR(@) >= 0 && $VAR(@) < 65536) ; "protocol must be between 0 and 65535" diff --git a/templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/source/node.def b/templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/source/node.def new file mode 100644 index 0000000..b993af6 --- /dev/null +++ b/templates/qos-policy/round-robin/node.tag/class/node.tag/match/node.tag/ether/source/node.def @@ -0,0 +1,2 @@ +type: macaddr +help: Set the Ethernet source address for this match diff --git a/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/destination/node.def b/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/destination/node.def new file mode 100644 index 0000000..e8be347 --- /dev/null +++ b/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/destination/node.def @@ -0,0 +1,2 @@ +type: macaddr +help: Set the Ethernet destination address for this match diff --git a/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def b/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def new file mode 100644 index 0000000..05d6511 --- /dev/null +++ b/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def @@ -0,0 +1,3 @@ +type: u32 +help: Set Ethernet protocol for this match +syntax:expression: ($VAR(@) >= 0 && $VAR(@) < 65536) ; "protocol must be between 0 and 65535" diff --git a/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/source/node.def b/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/source/node.def new file mode 100644 index 0000000..b993af6 --- /dev/null +++ b/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/match/node.tag/ether/source/node.def @@ -0,0 +1,2 @@ +type: macaddr +help: Set the Ethernet source address for this match diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/destination/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/destination/node.def new file mode 100644 index 0000000..e8be347 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/destination/node.def @@ -0,0 +1,2 @@ +type: macaddr +help: Set the Ethernet destination address for this match diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def new file mode 100644 index 0000000..05d6511 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/protocol/node.def @@ -0,0 +1,3 @@ +type: u32 +help: Set Ethernet protocol for this match +syntax:expression: ($VAR(@) >= 0 && $VAR(@) < 65536) ; "protocol must be between 0 and 65535" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/source/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/source/node.def new file mode 100644 index 0000000..b993af6 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ether/source/node.def @@ -0,0 +1,2 @@ +type: macaddr +help: Set the Ethernet source address for this match -- cgit v1.2.3