Skip to content

Commit 56c09de

Browse files
qsndavem330
authored andcommitted
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: a025fb5 ("geneve: Allow configuration of DF behaviour") Signed-off-by: Sabrina Dubroca <[email protected]> Reviewed-by: Stefano Brivio <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9deba33 commit 56c09de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/geneve.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,6 +1649,7 @@ static int geneve_changelink(struct net_device *dev, struct nlattr *tb[],
16491649
geneve->collect_md = metadata;
16501650
geneve->use_udp6_rx_checksums = use_udp6_rx_checksums;
16511651
geneve->ttl_inherit = ttl_inherit;
1652+
geneve->df = df;
16521653
geneve_unquiesce(geneve, gs4, gs6);
16531654

16541655
return 0;

0 commit comments

Comments
 (0)