]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Use built in data structure counter
authorDonald Sharp <sharpd@nvidia.com>
Thu, 13 Jun 2024 19:30:00 +0000 (15:30 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 13 Jun 2024 19:30:00 +0000 (15:30 -0400)
commita23a9385a74dcf31be1224cd7536fa585e6f0283
treee44bc1eb799bc1ef41447925a1e947ca80b0362d
parent7b59adcbcb0a35b04ce168b497f53a0908ee45d5
zebra: Use built in data structure counter

Instead of keeping a counter that is independent
of the queue's data structure.  Just use the queue's
built-in counter.  Ensure that it's pthread safe by
keeping it wrapped inside the mutex for adding/deleting
to the queue.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/dplane_fpm_nl.c
zebra/zebra_dplane.c
zebra/zebra_dplane.h