projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove /proc/net compatibility support.
[openvswitch]
/
datapath
/
flow.c
diff --git
a/datapath/flow.c
b/datapath/flow.c
index 4b0e6cc310c4bdac563a616737f5d8bfa1853920..fe05df324c529af3b10f771631d074f93c09ff8f 100644
(file)
--- a/
datapath/flow.c
+++ b/
datapath/flow.c
@@
-819,6
+819,11
@@
int flow_to_nlattrs(const struct sw_flow_key *swkey, struct sk_buff *skb)
struct odp_key_ethernet *eth_key;
struct nlattr *nla;
struct odp_key_ethernet *eth_key;
struct nlattr *nla;
+ /* This is an imperfect sanity-check that FLOW_BUFSIZE doesn't need
+ * to be updated, but will at least raise awareness when new ODP key
+ * types are added. */
+ BUILD_BUG_ON(__ODP_KEY_ATTR_MAX != 14);
+
if (swkey->tun_id != cpu_to_be64(0))
NLA_PUT_BE64(skb, ODP_KEY_ATTR_TUN_ID, swkey->tun_id);
if (swkey->tun_id != cpu_to_be64(0))
NLA_PUT_BE64(skb, ODP_KEY_ATTR_TUN_ID, swkey->tun_id);