Hi,
On 2020-11-20 2:32 a.m., Xiaoliang Yang wrote:
Hi Jamal,
On 2020-11-19 0:11, Jamal Hadi Salim wrote:
The 11/17/2020 14:30, Xiaoliang Yang wrote:
EXTERNAL EMAIL: Do not click links or open attachments unless you
[..]
We already have mirroring + ability to add/pop tags.
Would the following not work?
Example, generator mode:
tc filter add dev swp0 ingress protocol 802.1Q flower \
action vlan push id 789 protocol 802.1q \ action mirred egress mirror
dev swp1 \ action mirred egress mirror dev swp2
recovery mode:
tc filter add dev swp0 ingress protocol 802.1Q flower \ skip_hw dst_mac
00:01:02:03:04:06 vlan_id 1 \ actopm vlan pop
Action mirred only copy the packets and forward to different egress ports.
Also to ingress of ports (and can redirect as well, etc)
802.1CB need to add a redundancy tag before forward. Recovery mode need pop the
redundancy tag
and check sequence in R-TAG, drop the repeat frames. So I added a new
action to do this.
Ok, when you said "tags" I thought you meant 802.1q tags. But seems like
different ethernet tags?
The preferred approach is to write an action to pop/push these R-TAGs.
generator mode:
tc filter add dev swp0 ingress protocol 802.1Q flower \
action rtag push \
action mirred egress mirror dev swp1 \
action mirred egress mirror dev swp2
recovery mode:
tc filter add dev swp0 ingress protocol 802.1Q flower \
action rtag pop
...
.....
We have a few examplery actions which provide tags at L2
(IFE, MPLS, VLAN, etc).
cheers,
jamal