ofp-actions: Refactor set_field tokenization.
authorJoe Stringer <joestringer@nicira.com>
Wed, 30 Sep 2015 20:54:12 +0000 (13:54 -0700)
committerJoe Stringer <joestringer@nicira.com>
Tue, 13 Oct 2015 22:34:14 +0000 (15:34 -0700)
commit36b43aa6500124578b75a8c3cb6417201b58cce2
tree81402952ca17af18965e714d425b239524296a09
parent293a104b1dd31133497c15618969cdc9db6ada46
ofp-actions: Refactor set_field tokenization.

Combine the codepaths for splitting "set_field" and "reg_load" string
arguments into the value, key, and delimiter component. The only
user-visible change is that reg_load will now provide a more meaningful
error message when parsing input such as "reg_load:1".

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/ofp-actions.c