geneve: allow changing DF behavior after creation
authorSabrina Dubroca <sd@queasysnail.net>
Thu, 18 Jun 2020 10:13:22 +0000 (12:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Jun 2020 03:06:34 +0000 (20:06 -0700)
commit56c09de347e40804fc8dad155272fb9609e0a97b
treec4f7ab1463297b691647d928f03c1131848f7fed
parent9deba33f1b7266a3870c9da31f787b605748fc0c
geneve: allow changing DF behavior after creation

Currently, trying to change the DF parameter of a geneve device does
nothing:

    # ip -d link show geneve1
    14: geneve1: <snip>
        link/ether <snip>
        geneve id 1 remote 10.0.0.1 ttl auto df set dstport 6081 <snip>
    # ip link set geneve1 type geneve id 1 df unset
    # ip -d link show geneve1
    14: geneve1: <snip>
        link/ether <snip>
        geneve id 1 remote 10.0.0.1 ttl auto df set dstport 6081 <snip>

We just need to update the value in geneve_changelink.

Fixes: a025fb5f49ad ("geneve: Allow configuration of DF behaviour")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c