]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Add support for stream buffer to expand
authorSoumya Roy <souroy@nvidia.com>
Fri, 14 Mar 2025 21:44:39 +0000 (21:44 +0000)
committerSoumya Roy <souroy@nvidia.com>
Thu, 20 Mar 2025 16:13:34 +0000 (16:13 +0000)
commitc0c46bad15a5f3f69032678177ac7d00b7cd31be
tree2b72f2221423f27c55e224aa85b97a0a201c88ee
parent8f8d0923a7d0670abd48d3bc15a6c7a6296d6d2b
lib: Add support for stream buffer to expand

Issue:
 Currently, during encode time, if required memory is
 more than available space in stream buffer, stream buffer
 can't be expanded. This fix introduces new apis to support
 stream buffer expansion.

 Testing:
 Tested with zebra nexthop encoding with 512 nexthops, which triggers
 this new code changes, it works fine. Without fix, for same trigger
 it asserts.

Signed-off-by: Soumya Roy <souroy@nvidia.com>
lib/stream.c
lib/stream.h