flow: Increase number of registers to 4.
[openvswitch] / lib / odp-util.c
index dd6b6295b5d5c590a2c0980e63ed3febfb7e9f02..547e87ed90f93ec4ebdb0bf51999d3f6e06fa986 100644 (file)
@@ -103,9 +103,9 @@ format_odp_action(struct ds *ds, const struct nlattr *a)
     const uint8_t *eth;
     ovs_be32 ip;
 
-    if (nl_attr_get_size(a) != odp_action_len(a->nla_len)) {
+    if (nl_attr_get_size(a) != odp_action_len(nl_attr_type(a))) {
         ds_put_format(ds, "***bad action: length is %zu, expected %d*** ",
-                      nl_attr_get_size(a), odp_action_len(a->nla_len));
+                      nl_attr_get_size(a), odp_action_len(nl_attr_type(a)));
         format_generic_odp_action(ds, a);
         return;
     }
@@ -171,7 +171,7 @@ format_odp_action(struct ds *ds, const struct nlattr *a)
 
 void
 format_odp_actions(struct ds *ds, const struct nlattr *actions,
-                   unsigned int actions_len)
+                   size_t actions_len)
 {
     if (actions_len) {
         const struct nlattr *a;