diff options
Diffstat (limited to 'datapath/datapath.c')
-rw-r--r-- | datapath/datapath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/datapath.c b/datapath/datapath.c index dab86313..be90d549 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -552,7 +552,7 @@ static int validate_action_key(const struct nlattr *a, nla_len(ovs_key) != ovs_key_lens[key_type]) return -EINVAL; -#define ACTION(act, key) ((act << 8) | key) +#define ACTION(act, key) (((act) << 8) | (key)) switch(ACTION(act_type, key_type)) { const struct ovs_key_ipv4 *ipv4_key; |