]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6381d8f9b4d3abbdb05654a0cf87829a848edf1
treec92e197ebad6d3f196f0aa22ea4a96173d8820c4
parent72f25653819c2d8c9cb06c024628f3a6f4d36e13
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