diff options
author | Daniele Di Proietto <daniele.di.proietto@gmail.com> | 2014-01-23 10:47:35 -0800 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2014-02-04 22:21:23 -0800 |
commit | 45fb9c35b27c9982e9a55d04ed0a5230a2d0b306 (patch) | |
tree | d3bca8b4e39d7ebd4951efa95bb7823f47cdacf7 /net | |
parent | e80857cce82da31e41a6599fc888dfc92e0167cc (diff) | |
download | op-kernel-dev-45fb9c35b27c9982e9a55d04ed0a5230a2d0b306.zip op-kernel-dev-45fb9c35b27c9982e9a55d04ed0a5230a2d0b306.tar.gz |
openvswitch: Fix ovs_dp_cmd_msg_size()
commit 43d4be9cb55f3bac5253e9289996fd9d735531db (openvswitch: Allow user space
to announce ability to accept unaligned Netlink messages) introduced
OVS_DP_ATTR_USER_FEATURES netlink attribute in datapath responses,
but the attribute size was not taken into account in ovs_dp_cmd_msg_size().
Signed-off-by: Daniele Di Proietto <daniele.di.proietto@gmail.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/openvswitch/datapath.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index e1b337e..58689dd 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c @@ -1087,6 +1087,7 @@ static size_t ovs_dp_cmd_msg_size(void) msgsize += nla_total_size(IFNAMSIZ); msgsize += nla_total_size(sizeof(struct ovs_dp_stats)); msgsize += nla_total_size(sizeof(struct ovs_dp_megaflow_stats)); + msgsize += nla_total_size(sizeof(u32)); /* OVS_DP_ATTR_USER_FEATURES */ return msgsize; } |