Skip to content

Support vlan action, including pop and push#810

Closed
shuowang-123 wants to merge 1 commit intovishvananda:mainfrom
shuowang-123:shuow/vlanaction
Closed

Support vlan action, including pop and push#810
shuowang-123 wants to merge 1 commit intovishvananda:mainfrom
shuowang-123:shuow/vlanaction

Conversation

@shuowang-123
Copy link
Copy Markdown

This would allow users to strip/add vlan tags as a packet goes through an interface. Tested on an Oracle Linux 8 VM. I ran the test without clean up, and verified that vlan push rule was added correctly:

filter parent ffff: protocol all pref 1 flower chain 0
filter parent ffff: protocol all pref 1 flower chain 0 handle 0x1
eth_type ipv4
dst_ip 1.0.0.1/24
src_ip 2.0.0.1/24
enc_dst_ip 3.0.0.1/24
enc_src_ip 4.0.0.1/24
enc_key_id 1234
enc_dst_port 8472
not_in_hw
action order 1: vlan pop pipe
index 1 ref 1 bind 1

action order 2: vlan  push id 1234 protocol 802.1Q priority 0 pipe
 index 2 ref 1 bind 1

action order 3: mirred (Egress Redirect to device bar) stolen
index 1 ref 1 bind 1

@shuowang-123
Copy link
Copy Markdown
Author

This should fix #588

@aboch
Copy link
Copy Markdown
Collaborator

aboch commented Mar 28, 2024

@shuowang-123 please fix the conflicts

1 similar comment
@aboch
Copy link
Copy Markdown
Collaborator

aboch commented Jul 3, 2024

@shuowang-123 please fix the conflicts

@aboch
Copy link
Copy Markdown
Collaborator

aboch commented Aug 23, 2024

@shuowang-123 ping

@vishvananda
Copy link
Copy Markdown
Owner

Closing due to inactivity. Feel free to reopen.

@vishvananda vishvananda closed this Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants