]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
geneve: move all configuration under struct geneve_config
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 6 Jul 2020 15:18:08 +0000 (17:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jul 2020 20:16:20 +0000 (13:16 -0700)
commit9e06e8596bc87cad9dd18869a1b1b42132170dd9
treeb846ac2baed230aecdfcab95730fde8a614f3d67
parent0fe665d42fd0844dbfb60f15b09d71fd0c409b00
geneve: move all configuration under struct geneve_config

This patch adds a new structure geneve_config and moves the per-device
configuration attributes to it, like we already have in VXLAN with
struct vxlan_config. This ends up being pretty invasive since those
attributes are used everywhere.

This allows us to clean up the argument lists for geneve_configure (4
arguments instead of 8) and geneve_nl2info (5 instead of 9).

This also reduces the copy-paste of code setting those attributes
between geneve_configure and geneve_changelink to a single memcpy,
which would have avoided the bug fixed in commit
56c09de347e4 ("geneve: allow changing DF behavior after creation").

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c