diff options
author | Pravin Shelar <pshelar@nicira.com> | 2011-09-09 18:13:26 -0700 |
---|---|---|
committer | Pravin Shelar <pshelar@nicira.com> | 2011-09-09 18:13:26 -0700 |
commit | d9065a90b6b955aa38586c952e8804ca7a22547e (patch) | |
tree | 76f07c99c491ccbfc247fc52961e05b56ec53b04 /lib/packets.h | |
parent | f37c91c76785e335e9d89aa31a7f0ab290223193 (diff) |
datapath: VLAN actions should use push/pop semantics
Currently the kernel vlan actions mirror those used by OpenFlow 1.0.
i.e. MODIFY and STRIP. More flexible approach is to have an action to
push a tag and pop a tag off, so that it can handle multiple levels of vlan
tags. Plus it aligns with newer version of OpenFlow.
As this patch replaces MODIFY with PUSH semantic, action
mapping done in userpace is fixed accordingly.
GSO handling for multiple levels of vlan tags is also added as
Jesse suggested before.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'lib/packets.h')
-rw-r--r-- | lib/packets.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/packets.h b/lib/packets.h index a389e6af..cb126380 100644 --- a/lib/packets.h +++ b/lib/packets.h @@ -131,7 +131,7 @@ void compose_benign_packet(struct ofpbuf *, const char *tag, uint16_t snap_type, const uint8_t eth_src[ETH_ADDR_LEN]); -void eth_set_vlan_tci(struct ofpbuf *, ovs_be16 tci); +void eth_push_vlan(struct ofpbuf *, ovs_be16 tci); /* Example: * |