]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
vxlan: add changelink support
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Mon, 20 Feb 2017 16:29:19 +0000 (08:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Feb 2017 17:19:21 +0000 (12:19 -0500)
commit8bcdc4f3a20be949df54b67e5ae2734daabb5792
tree14ae6124ddfeccc5a0555ca59188abec2abef9ff
parentd1892e4ec96aad4b733dfab3ed989718f04f03e9
vxlan: add changelink support

This patch adds changelink rtnl op support for vxlan netdevs.
code changes involve:
    - refactor vxlan_newlink into vxlan_nl2conf to be
    used by vxlan_newlink and vxlan_changelink
    - vxlan_nl2conf and vxlan_dev_configure take a
    changelink argument to isolate changelink checks
    and updates.
    - Allow changing only a few attributes:
        - return -EOPNOTSUPP for attributes that cannot
        be changed for now. Incremental patches can
        make the non-supported one available in the future
        if needed.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c