]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: We already store the last command as part of zserv_write
authorDonald Sharp <sharpd@nvidia.com>
Thu, 10 Jun 2021 15:05:26 +0000 (11:05 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 18 Jun 2021 12:37:52 +0000 (08:37 -0400)
when sending nexthop information.  We do not need to reset the
last_write_cmd since that is taken care of in the send routine.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_rnh.c
zebra/zebra_srte.c

index a4382441c862c1a6243d24938baa1f3205ba5bd1..41d55c2e6c1a99c8ed78a71d50b6c5494c8041cc 100644 (file)
@@ -1367,7 +1367,6 @@ int zebra_send_rnh_update(struct rnh *rnh, struct zserv *client,
        stream_putw_at(s, 0, stream_get_endp(s));
 
        client->nh_last_upd_time = monotime(NULL);
-       client->last_write_cmd = cmd;
        return zserv_send_message(client, s);
 
 failure:
index 98158ecc12b2a22d1d9a694d1de255e93a7c51fd..6dd60af9fb059158c1cfc4b514b5430379733d7d 100644 (file)
@@ -161,7 +161,6 @@ static int zebra_sr_policy_notify_update_client(struct zebra_sr_policy *policy,
        stream_putw_at(s, 0, stream_get_endp(s));
 
        client->nh_last_upd_time = monotime(NULL);
-       client->last_write_cmd = ZEBRA_NEXTHOP_UPDATE;
        return zserv_send_message(client, s);
 
 failure: