Support IPv4 multicast in P4 fabric pipeline
- Multicast can use the same table as unicast. Merge into one.
- Allow masked destination MAC in classifier table
Note:
- Pipeliner now translates all exact MAC match to masked match with FF:FF:FF:FF:FF:FF mask.
- Interpreter now only uses masked src/dst MAC
Change-Id: Ibd27ebfb2d72ba929031f07a29927eb6f1844f11
(cherry picked from commit 0865779b66a59a623856b1353615e462af5575c5)
diff --git a/utils/misc/src/main/java/org/onlab/packet/MacAddress.java b/utils/misc/src/main/java/org/onlab/packet/MacAddress.java
index 8a6d918..7abf12a 100644
--- a/utils/misc/src/main/java/org/onlab/packet/MacAddress.java
+++ b/utils/misc/src/main/java/org/onlab/packet/MacAddress.java
@@ -48,6 +48,10 @@
*/
public static final MacAddress BROADCAST = valueOf("ff:ff:ff:ff:ff:ff");
/**
+ * Mask that indicates exact match on the MacAddress.
+ */
+ public static final MacAddress EXACT_MASK = valueOf("ff:ff:ff:ff:ff:ff");
+ /**
* IPv4 multicast MAC address.
*/
public static final MacAddress IPV4_MULTICAST = valueOf("01:00:5e:00:00:00");