]> git.proxmox.com Git - mirror_ovs.git/commit
packets: Un-inline functions needed by DDlog.
authorLeonid Ryzhyk <lryzhyk@vmware.com>
Thu, 29 Nov 2018 02:41:34 +0000 (18:41 -0800)
committerBen Pfaff <blp@ovn.org>
Mon, 26 Oct 2020 17:47:35 +0000 (10:47 -0700)
commit50f603dc4bf09125e924d850a11078068b7d68b0
treed6089bca48d08733cd5c69de8aac6d163ed279bd
parenta87d827ecb993f3aa9913d9736542ed613ebb25c
packets: Un-inline functions needed by DDlog.

DDlog uses these functions from Rust, but Rust can't use inline
functions (since it doesn't compile C headers but only links
against a C-compatible ABI).  Thus, move the implementations
of these functions to a .c file.

I don't think any of these functions is likely to be an
important part of a "fast path" in OVS, but if that's wrong,
then we could take another approach.

Signed-off-by: Leonid Ryzhyk <lryzhyk@vmware.com>
Co-authored-by: Ben Pfaff <blp@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Numan Siddique <numans@ovn.org>
lib/packets.c
lib/packets.h