X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Factions.c;h=a2a572e3f7df8974c6e3dc486b291d7b5f9d7b6d;hb=e1ce3f2dccb027ef5ebe6035ab4f6a71de4ccf1c;hp=c44e00c4cfeedd3d8188c94446424c4e3fa9db83;hpb=a4a2643672e4d2f68f8246e406749009a3f3211b;p=openvswitch diff --git a/datapath/actions.c b/datapath/actions.c index c44e00c4..a2a572e3 100644 --- a/datapath/actions.c +++ b/datapath/actions.c @@ -84,11 +84,8 @@ static struct sk_buff *strip_vlan(struct sk_buff *skb) return skb; } -static struct sk_buff *modify_vlan_tci(struct datapath *dp, struct sk_buff *skb, - const struct sw_flow_key *key, - const struct nlattr *a, u32 actions_len) +static struct sk_buff *modify_vlan_tci(struct sk_buff *skb, __be16 tci) { - __be16 tci = nla_get_be16(a); struct vlan_ethhdr *vh; __be16 old_tci; @@ -327,7 +324,7 @@ static int do_execute_actions(struct datapath *dp, struct sk_buff *skb, break; case ODP_ACTION_ATTR_SET_DL_TCI: - skb = modify_vlan_tci(dp, skb, key, a, rem); + skb = modify_vlan_tci(skb, nla_get_be16(a)); break; case ODP_ACTION_ATTR_STRIP_VLAN: