projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dpif-linux: Use get_32aligned_u64() in an appropriate place.
[openvswitch]
/
datapath
/
tunnel.h
diff --git
a/datapath/tunnel.h
b/datapath/tunnel.h
index b3e21fa9f3006904518515410e915452fc0de419..e7bafbc94699a8a29a61f2d58ba3131ddf7d747e 100644
(file)
--- a/
datapath/tunnel.h
+++ b/
datapath/tunnel.h
@@
-58,6
+58,9
@@
struct port_lookup_key {
u32 tunnel_type;
};
u32 tunnel_type;
};
+#define PORT_KEY_LEN (offsetof(struct port_lookup_key, tunnel_type) + \
+ FIELD_SIZEOF(struct port_lookup_key, tunnel_type))
+
/**
* struct tnl_mutable_config - modifiable configuration for a tunnel.
* @key: Used as key for tunnel port. Configured via OVS_TUNNEL_ATTR_*
/**
* struct tnl_mutable_config - modifiable configuration for a tunnel.
* @key: Used as key for tunnel port. Configured via OVS_TUNNEL_ATTR_*