Skip to content

Commit

Permalink
netdev_offload_dpdk: Support vlan insertion in vxlan header.
Browse files Browse the repository at this point in the history
Support vlan insertion in vxlan header

Signed-off-by: Allen Chen <[email protected]>
Signed-off-by: 0-day Robot <[email protected]>
  • Loading branch information
Allen Chen authored and ovsrobot committed Jan 17, 2025
1 parent caed64d commit 0140b37
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/netdev-offload-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2137,6 +2137,14 @@ parse_clone_actions(struct netdev *netdev,
if (add_output_action(netdev, actions, ca)) {
return -1;
}
} else if (clone_type == OVS_ACTION_ATTR_PUSH_VLAN) {
const struct ovs_action_push_vlan *vlan = nl_attr_get(ca);
if (parse_vlan_push_action(actions, vlan)) {
VLOG_DBG_RL(&rl,
"push vlan in vxlan header failed, "
"action type: %d", clone_type);
return -1;
}
} else {
VLOG_DBG_RL(&rl,
"Unsupported nested action inside clone(), "
Expand Down

0 comments on commit 0140b37

Please sign in to comment.