[ovs-discuss] pop_vlan action is missing in datapath actions with write_action(group)

Rudra Surya Bhaskara Rao rudrasurya.r at altencalsoftlabs.com
Wed Apr 7 17:32:25 UTC 2021


Hi,

 

Please help me with the below issue. Please let me know is it expected
behaviour or issue.

With the write_actions(group) inside a group bucket is ignoring the
pop_vlan action . Please find the sample flows and groups configuration
below:

 

root at dell31:/home/sdn# ovs-ofctl dump-groups br-int

NXST_GROUP_DESC reply (xid=0x2):

group_id=5500,type=all,bucket=bucket_id:0,actions=mod_vlan_vid:101,output:"
vhu-vm2p1"

group_id=4500,type=all,bucket=bucket_id:0,actions=resubmit(,18),bucket=buck
et_id:1,actions=output:"vhu-vm2p1"

 

root at dell31:/home/sdn# ovs-ofctl dump-flows br-int -OOpenflow13

cookie=0x0, duration=17466.238s, table=0, n_packets=1237, n_bytes=56902,
in_port="vhu-vm1p1",dl_vlan=85
actions=load:0->NXM_OF_IN_PORT[],write_metadata:0x1ca50000000000/0xffffff00
00000001,goto_table:17

cookie=0x0, duration=17407.864s, table=17, n_packets=1179, n_bytes=54234,
priority=10,metadata=0x1ca50000000000/0xffffff0000000000
actions=write_metadata:0x201ca51118a00000/0xfffffffffffffffe,goto_table:170

cookie=0x0, duration=17110.720s, table=17, n_packets=889, n_bytes=40894,
priority=10,metadata=0x201ca51118a00000/0xfffffffffffffffe
actions=write_actions(group:5500)

cookie=0x0, duration=17224.273s, table=18, n_packets=1002, n_bytes=46092,
metadata=0x201ca51118a00000/0xfffffffffffffffe,vlan_tci=0x1000/0x1000
actions=pop_vlan,resubmit(,17)

cookie=0x0, duration=16624.698s, table=170, n_packets=396, n_bytes=18216,
reset_counts priority=0 actions=group:4500

cookie=0x0, duration=17274.915s, table=171, n_packets=1053, n_bytes=48438,
reset_counts priority=10 actions=output:"vhu-vm2p1"

 

root at dell31:/home/sdn# ovs-appctl ofproto/trace br-int
"in_port="vhu-vm1p1",dl_vlan=85"

Flow:
in_port=101,dl_vlan=85,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=00:00:00:00:00
:00,dl_dst=00:00:00:00:00:00,dl_type=0x0000

 

bridge("br-int")

----------------

0. in_port=101,dl_vlan=85, priority 32768

    load:0->NXM_OF_IN_PORT[]

    write_metadata:0x1ca50000000000/0xffffff0000000001

    goto_table:17

    17. metadata=0x1ca50000000000/0xffffff0000000000, priority 10

            write_metadata:0x201ca51118a00000/0xfffffffffffffffe

            goto_table:170

        170. priority 0

            group:4500

            bucket 0

                    resubmit(,18)

                18.
metadata=0x201ca51118a00000/0xfffffffffffffffe,vlan_tci=0x1000/0x1000,
priority 32768

                    pop_vlan

                    resubmit(,17)

                17. metadata=0x201ca51118a00000/0xfffffffffffffffe,
priority 10

                    write_actions(group:5500)

                     -> action set is: group:5500

            bucket 1

                    output:102

--. Executing action set:

    group:5500

    bucket 0

            push_vlan:0x8100

            set_field:4197->vlan_vid

            output:102

 

Final flow:
metadata=0x201ca51118a00000,dl_vlan=85,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_sr
c=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,dl_type=0x0000

Megaflow:
recirc_id=0,eth,in_port=101,dl_vlan=85,dl_vlan_pcp=0,dl_type=0x0000

Datapath actions: 6,push_vlan(vid=101,pcp=0),6   <-- pop_vlan is missing,
expectation is 6,pop_vlan, push_vlan(vid=101,pcp=0),6

root at dell31:/home/sdn#

 

If we use plain pipeline by avoiding group:4500, it is working as expected.

 

root at dell31:/home/sdn# ovs-ofctl mod-flows br-int
"table=17,priority=10,metadata=0x1ca50000000000/0xffffff0000000000
actions=write_metadata:0x201ca51118a00000/0xfffffffffffffffe,goto_table:18"
-OOpenflow13

root at dell31:/home/sdn# ovs-ofctl dump-flows br-int -OOpenflow13

cookie=0x0, duration=18055.377s, table=0, n_packets=1237, n_bytes=56902,
in_port="vhu-vm1p1",dl_vlan=85
actions=load:0->NXM_OF_IN_PORT[],write_metadata:0x1ca50000000000/0xffffff00
00000001,goto_table:17

cookie=0x0, duration=17997.003s, table=17, n_packets=1179, n_bytes=54234,
priority=10,metadata=0x1ca50000000000/0xffffff0000000000
actions=write_metadata:0x201ca51118a00000/0xfffffffffffffffe,goto_table:18

cookie=0x0, duration=17699.859s, table=17, n_packets=889, n_bytes=40894,
priority=10,metadata=0x201ca51118a00000/0xfffffffffffffffe
actions=write_actions(group:5500)

cookie=0x0, duration=17813.412s, table=18, n_packets=1002, n_bytes=46092,
metadata=0x201ca51118a00000/0xfffffffffffffffe,vlan_tci=0x1000/0x1000
actions=pop_vlan,resubmit(,17)

cookie=0x0, duration=17213.837s, table=170, n_packets=396, n_bytes=18216,
reset_counts priority=0 actions=group:4500

cookie=0x0, duration=17864.054s, table=171, n_packets=1053, n_bytes=48438,
reset_counts priority=10 actions=output:"vhu-vm2p1"

root at dell31:/home/sdn#

 

 

root at dell31:/home/sdn# ovs-appctl ofproto/trace br-int
"in_port="vhu-vm1p1",dl_vlan=85"

Flow:
in_port=101,dl_vlan=85,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=00:00:00:00:00
:00,dl_dst=00:00:00:00:00:00,dl_type=0x0000

 

bridge("br-int")

----------------

0. in_port=101,dl_vlan=85, priority 32768

    load:0->NXM_OF_IN_PORT[]

    write_metadata:0x1ca50000000000/0xffffff0000000001

    goto_table:17

    17. metadata=0x1ca50000000000/0xffffff0000000000, priority 10

            write_metadata:0x201ca51118a00000/0xfffffffffffffffe

            goto_table:18

        18.
metadata=0x201ca51118a00000/0xfffffffffffffffe,vlan_tci=0x1000/0x1000,
priority 32768

            pop_vlan

            resubmit(,17)

        17. metadata=0x201ca51118a00000/0xfffffffffffffffe, priority 10

            write_actions(group:5500)

             -> action set is: group:5500

--. Executing action set:

    group:5500

    bucket 0

            push_vlan:0x8100

            set_field:4197->vlan_vid

            output:102

 

Final flow:
metadata=0x201ca51118a00000,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst
=00:00:00:00:00:00,dl_type=0x0000

Megaflow:
recirc_id=0,eth,in_port=101,dl_vlan=85,dl_vlan_pcp=0,dl_type=0x0000

Datapath actions: pop_vlan,push_vlan(vid=101,pcp=0),6

root at dell31:/home/sdn#

 

Thanks & Regards,

Surya.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20210407/48e36233/attachment-0001.html>


More information about the discuss mailing list