OSDN Git Service

net: mpls: Pull common label check into helper
authorDavid Ahern <dsahern@gmail.com>
Thu, 8 Mar 2018 18:36:16 +0000 (18:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Mar 2018 15:19:47 +0000 (16:19 +0100)
commit4bd01ca7633432694cab0a098dfb9cee7b157512
treec048e172b7956728281c93354e3b90efae1b2542
parent54b183ea4fe96c7b80439971ee04cf634a6e0459
net: mpls: Pull common label check into helper

commit b7b386f42f079b25b942c756820e36c6bd09b2ca upstream.

mpls_route_add and mpls_route_del have the same checks on the label.
Move to a helper. Avoid duplicate extack messages in the next patch.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mpls/af_mpls.c