commit | 653c7517fd0853870eef78bec43f87b75771f4b7 | [log] [tgz] |
---|---|---|
author | Wojciech Drewek <wojciech.drewek@intel.com> | Fri Jul 29 10:50:33 2022 +0200 |
committer | David Ahern <dsahern@kernel.org> | Fri Jul 29 11:22:42 2022 -0600 |
tree | a05dd69bff08c35b9af65809d2be5c9f722e5c5f | |
parent | 876e792412fd3e8e2d3338a5d36cbb1e4f2b5a4e [diff] |
lib: refactor ll_proto functions Move core logic of ll_proto_n2a and ll_proto_a2n to utils.c and make it more generic by allowing to pass table of protocols as argument (proto_tb). Introduce struct proto with protocol ID and name to allow this. This wil allow to use those functions by other use cases. Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com> Acked-by: Guillaume Nault <gnault@redhat.com> Signed-off-by: David Ahern <dsahern@kernel.org>