[ovs-dev] [PATCH 09/10] ofp-actions: Add more detail when formatting unroll_xlate pseudo-action.

Jarno Rajahalme jarno at ovn.org
Thu Jan 28 20:50:48 UTC 2016


Acked-by: Jarno Rajahalme <jarno at ovn.org>

> On Jan 27, 2016, at 9:51 AM, Ben Pfaff <blp at ovn.org> wrote:
> 
> This is helpful for debugging recirculation.
> 
> Signed-off-by: Ben Pfaff <blp at ovn.org>
> ---
> lib/ofp-actions.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c
> index ff3bc12..9b75526 100644
> --- a/lib/ofp-actions.c
> +++ b/lib/ofp-actions.c
> @@ -4493,10 +4493,10 @@ parse_UNROLL_XLATE(char *arg OVS_UNUSED, struct ofpbuf *ofpacts OVS_UNUSED,
> }
> 
> static void
> -format_UNROLL_XLATE(const struct ofpact_unroll_xlate *a OVS_UNUSED,
> -                    struct ds *s)
> +format_UNROLL_XLATE(const struct ofpact_unroll_xlate *a, struct ds *s)
> {
> -    ds_put_cstr(s, "unroll_xlate");
> +    ds_put_format(s, "unroll_xlate(table=%"PRIu8", cookie=%"PRIu64")",
> +                  a->rule_table_id, ntohll(a->rule_cookie));
> }
> 
> /* Action structure for NXAST_SAMPLE.
> -- 
> 2.1.3
> 
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev




More information about the dev mailing list