vxlan: add extack support for create and changelink
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Tue, 26 Feb 2019 06:03:01 +0000 (22:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Feb 2019 16:54:37 +0000 (08:54 -0800)
commit70fb0828800b45bfb1887223715263440dfb6b23
treeeeba764c823eaa5f8cff558c46aea276e191fcc3
parent703bdcbc8e4e19ab4e1a5d819251978b85777f53
vxlan: add extack support for create and changelink

This patch adds extack coverage in vxlan link
create and changelink paths. Introduces a new helper
vxlan_nl2flags to consolidate flag attribute validation.

thanks to Johannes Berg for some tips to construct the
generic vxlan flag extack strings.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/vxlan.h