From 300af20acd44243bad1b6c4bd6f9a25cf0a4a186 Mon Sep 17 00:00:00 2001 From: Daniele Di Proietto Date: Thu, 23 Jan 2014 17:18:59 +0100 Subject: [PATCH] datapath: Fix ovs_dp_cmd_msg_size() commit c58cc9a460fd158e5250e59902e96ac677dc115f (datapath: 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 Signed-off-by: Jesse Gross --- datapath/datapath.c | 1 + 1 file changed, 1 insertion(+) diff --git a/datapath/datapath.c b/datapath/datapath.c index c756e2f5c..f045fe4b5 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -1089,6 +1089,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; } -- 2.43.0