mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 22:12:16 +00:00
ip_tunnel: Make ovs_tunnel_info and ovs_key_ipv4_tunnel generic
Rename the tunnel metadata data structures currently internal to OVS and make them generic for use by all IP tunnels. Both structures are kernel internal and will stay that way. Their members are exposed to user space through individual Netlink attributes by OVS. It will therefore be possible to extend/modify these structures without affecting user ABI. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e3e4712ec0
commit
1d8fff9073
13 changed files with 128 additions and 135 deletions
|
@ -682,12 +682,12 @@ int ovs_flow_key_update(struct sk_buff *skb, struct sw_flow_key *key)
|
|||
return key_extract(skb, key);
|
||||
}
|
||||
|
||||
int ovs_flow_key_extract(const struct ovs_tunnel_info *tun_info,
|
||||
int ovs_flow_key_extract(const struct ip_tunnel_info *tun_info,
|
||||
struct sk_buff *skb, struct sw_flow_key *key)
|
||||
{
|
||||
/* Extract metadata from packet. */
|
||||
if (tun_info) {
|
||||
memcpy(&key->tun_key, &tun_info->tunnel, sizeof(key->tun_key));
|
||||
memcpy(&key->tun_key, &tun_info->key, sizeof(key->tun_key));
|
||||
|
||||
if (tun_info->options) {
|
||||
BUILD_BUG_ON((1 << (sizeof(tun_info->options_len) *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue