Skip to content

Commit 77a1bed

Browse files
committed
netdev-offload-dpdk: Support offload of clone push_vlan action.
Support for tnl_push/output already exists, add push_vlan. Signed-off-by: Allen Chen <[email protected]> Signed-off-by: Kevin Traynor <[email protected]>
1 parent 365c2e5 commit 77a1bed

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Documentation/howto/dpdk.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ Supported actions for hardware offload are:
399399
- Modification of TCP/UDP (mod_tp_src/mod_tp_dst).
400400
- VLAN Push/Pop (push_vlan/pop_vlan).
401401
- Modification of IPv6 (set_field:<ADDR>->ipv6_src/ipv6_dst/mod_nw_ttl).
402-
- Clone/output (tnl_push and output) for encapsulating over a tunnel.
402+
- Clone/output (tnl_push/push_vlan/output) for encapsulating over a tunnel.
403403
- Tunnel pop, for packets received on physical ports.
404404

405405
.. note::

lib/netdev-offload-dpdk.c

+3
Original file line numberDiff line numberDiff line change
@@ -2137,6 +2137,9 @@ parse_clone_actions(struct netdev *netdev,
21372137
if (add_output_action(netdev, actions, ca)) {
21382138
return -1;
21392139
}
2140+
} else if (clone_type == OVS_ACTION_ATTR_PUSH_VLAN) {
2141+
const struct ovs_action_push_vlan *vlan = nl_attr_get(ca);
2142+
parse_vlan_push_action(actions, vlan);
21402143
} else {
21412144
VLOG_DBG_RL(&rl,
21422145
"Unsupported nested action inside clone(), "

0 commit comments

Comments
 (0)