]> git.puffer.fish Git - mirror/frr.git/commitdiff
doc: Add typesafe conversion examples
authorDonald Sharp <sharpd@nvidia.com>
Fri, 7 Mar 2025 02:43:10 +0000 (21:43 -0500)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Sun, 9 Mar 2025 03:50:00 +0000 (03:50 +0000)
Try to give some good examples of various lists being
converted over to the typesafe way of doing things.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 39909f9fb9459ce210cb44a10291a053d4fbb272)

doc/developer/lists.rst

index ccac10aab929c04bda70eabef8a8224f93df9ef0..b761cc3671eacd13f731ba1d372863f34af2768a 100644 (file)
@@ -187,6 +187,17 @@ To switch between compatible data structures, only these two lines need to be
 changes.  To switch to a data structure with a different API, some source
 changes are necessary.
 
+As a example to the developer here are some example commits that convert
+over to usage of the typesafe data structures:
+
++------------------------------------------------------+------------------------------------+
+| Commit Message                                       | SHA                                |
++======================================================+====================================+
+| bgpd: Convert the bgp_advertise_attr->adv to a fifo  | b2e0c12d723a6464f67491ceb9         |
++------------------------------------------------------+------------------------------------+
+| zebra: convert LSP nhlfe lists to use typesafe lists | ee70f629792b90f92ea7e6bece         |
++------------------------------------------------------+------------------------------------+
+
 Common iteration macros
 -----------------------