summaryrefslogtreecommitdiff
path: root/include/openvswitch
diff options
context:
space:
mode:
authorJianbo Liu <jianbol@mellanox.com>2018-07-17 02:01:56 +0000
committerSimon Horman <simon.horman@netronome.com>2018-07-25 18:15:34 +0200
commit2f9366beb4f6c1bac690d7665008c1f85c16d253 (patch)
treefa7dbabb77fe3a9255b44c15e4cb2b012d09e242 /include/openvswitch
parentb5ad40a9b84bf509248a451e9f4222fc37afeeb7 (diff)
downloadopenvswitch-2f9366beb4f6c1bac690d7665008c1f85c16d253.tar.gz
flow: Refactor some of VLAN helper functions
By default, these function are to change the first vlan vid and pcp in the flow. Add a parameter as index for vlans if we want to handle the second ones. Signed-off-by: Jianbo Liu <jianbol@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Signed-off-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'include/openvswitch')
-rw-r--r--include/openvswitch/match.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openvswitch/match.h b/include/openvswitch/match.h
index 49e463a22..b43ecb179 100644
--- a/include/openvswitch/match.h
+++ b/include/openvswitch/match.h
@@ -163,11 +163,11 @@ void match_set_dl_dst_masked(struct match *, const struct eth_addr dl_dst,
void match_set_dl_tci(struct match *, ovs_be16 tci);
void match_set_dl_tci_masked(struct match *, ovs_be16 tci, ovs_be16 mask);
void match_set_any_vid(struct match *);
-void match_set_dl_vlan(struct match *, ovs_be16);
+void match_set_dl_vlan(struct match *, ovs_be16, int id);
void match_set_vlan_vid(struct match *, ovs_be16);
void match_set_vlan_vid_masked(struct match *, ovs_be16 vid, ovs_be16 mask);
void match_set_any_pcp(struct match *);
-void match_set_dl_vlan_pcp(struct match *, uint8_t);
+void match_set_dl_vlan_pcp(struct match *, uint8_t, int id);
void match_set_any_mpls_lse(struct match *, int idx);
void match_set_mpls_lse(struct match *, int idx, ovs_be32);
void match_set_any_mpls_label(struct match *, int idx);