summaryrefslogtreecommitdiff
path: root/zebra/kernel_socket.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-09-16 17:48:15 -0400
committerDonald Sharp <sharpd@nvidia.com>2020-09-16 17:48:15 -0400
commit3584c85e92b8edfb3a306d26844066bb741a2074 (patch)
treed73deb4b46c2fc9c5238acc08212efc56c9da537 /zebra/kernel_socket.c
parentf6374bd9b7bf00aae9d32134e5848ba214e99317 (diff)
bgpd: Avoid memset when tip hash is empty
The tip hash is only used when we are dealing with evpn. In bgp_nexthop_self we are doing a memset irrelevant of whether we will ever find data. Yes hash_lookup will return pretty quickly. Modify the code to avoid doing a memset in the case where the tip hash is empty as that we know we'll never find anything. With full BGP feeds this small memset does take some time. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/kernel_socket.c')
0 files changed, 0 insertions, 0 deletions