[ovs-dev] [PATCH] tnl-arp-cache: Indentation fixes.

Pravin Shelar pshelar at nicira.com
Wed Jul 22 04:53:23 UTC 2015


On Tue, Jul 21, 2015 at 4:03 PM, Ben Pfaff <blp at nicira.com> wrote:
> Signed-off-by: Ben Pfaff <blp at nicira.com>
> ---
>  lib/tnl-arp-cache.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/lib/tnl-arp-cache.c b/lib/tnl-arp-cache.c
> index 0113474..b6bfd22 100644
> --- a/lib/tnl-arp-cache.c
> +++ b/lib/tnl-arp-cache.c
> @@ -75,8 +75,8 @@ tnl_arp_lookup(const char br_name[IFNAMSIZ], ovs_be32 dst,
>
>      arp = tnl_arp_lookup__(br_name, dst);
>      if (arp) {
> -            memcpy(mac, arp->mac, ETH_ADDR_LEN);
> -            res = 0;
> +        memcpy(mac, arp->mac, ETH_ADDR_LEN);
> +        res = 0;
>      }
>
>      return res;
> @@ -142,8 +142,8 @@ tnl_arp_cache_run(void)
>      ovs_mutex_lock(&mutex);
>      CMAP_FOR_EACH(arp, cmap_node, &table) {
>          if (arp->expires <= time_now()) {
> -             tnl_arp_delete(arp);
> -             changed = true;
> +            tnl_arp_delete(arp);
> +            changed = true;
>          }
>      }
>      ovs_mutex_unlock(&mutex);
> @@ -162,8 +162,8 @@ tnl_arp_cache_flush(struct unixctl_conn *conn OVS_UNUSED, int argc OVS_UNUSED,
>
>      ovs_mutex_lock(&mutex);
>      CMAP_FOR_EACH(arp, cmap_node, &table) {
> -          tnl_arp_delete(arp);
> -          changed = true;
> +        tnl_arp_delete(arp);
> +        changed = true;
>      }
>      ovs_mutex_unlock(&mutex);
>      if (changed) {
> --

Acked-by: Pravin B Shelar <pshelar at nicira.com>

Thanks.



More information about the dev mailing list