mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
openvswitch: Rename GENEVE_TUN_OPTS() to TUN_METADATA_OPTS()
Also factors out Geneve validation code into a new separate function validate_and_copy_geneve_opts(). A subsequent patch will introduce VXLAN options. Rename the existing GENEVE_TUN_OPTS() to reflect its extended purpose of carrying generic tunnel metadata options. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ac5132d1a0
commit
d91641d9b5
3 changed files with 47 additions and 41 deletions
|
@ -691,7 +691,7 @@ int ovs_flow_key_extract(const struct ovs_tunnel_info *tun_info,
|
|||
BUILD_BUG_ON((1 << (sizeof(tun_info->options_len) *
|
||||
8)) - 1
|
||||
> sizeof(key->tun_opts));
|
||||
memcpy(GENEVE_OPTS(key, tun_info->options_len),
|
||||
memcpy(TUN_METADATA_OPTS(key, tun_info->options_len),
|
||||
tun_info->options, tun_info->options_len);
|
||||
key->tun_opts_len = tun_info->options_len;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue