net: Make mpls_entry_encode() available for generic users
authorEli Cohen <eli@mellanox.com>
Wed, 27 May 2020 05:35:03 +0000 (08:35 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 30 May 2020 04:20:20 +0000 (21:20 -0700)
commit86ae579cefffe18cb08928505d90fbc87367e8f5
treec92e197ebad6d3f196f0aa22ea4a96173d8820c4
parente1167e16114f78f948078749aa1608a785f65807
net: Make mpls_entry_encode() available for generic users

Move mpls_entry_encode() from net/mpls/internal.h to include/net/mpls.h
and make it available for other users. Specifically, hardware driver that
offload MPLS can benefit from that.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Suggested-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
include/net/mpls.h
net/mpls/internal.h