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:21:34 +0000 (16:21 +0100)
commitd77763dc70c4afa451b33f80013910d502bf3bb7
treeeba8edeeb4309c9140e246961197167d44c07939
parent9b7d723439a444ea578462f50054641a09c45023
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