]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - net/mpls/af_mpls.c
net: mpls: Pull common label check into helper
authorDavid Ahern <dsahern@gmail.com>
Sat, 27 May 2017 22:19:30 +0000 (16:19 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 15:55:32 +0000 (11:55 -0400)
commitb7b386f42f079b25b942c756820e36c6bd09b2ca
tree09e88d5823b597524f2df3dcbcde47bdf39a55b7
parenta1f10abe12b6d70f8b02dedccb48c9d234a57b67
net: mpls: Pull common label check into helper

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>
net/mpls/af_mpls.c