datapath: Refine Netlink message size calculation and kill FLOW_BUFSIZE
authorThomas Graf <tgraf@suug.ch>
Sat, 30 Mar 2013 01:18:58 +0000 (18:18 -0700)
committerJesse Gross <jesse@nicira.com>
Sat, 30 Mar 2013 01:18:58 +0000 (18:18 -0700)
commit0afa23732d743729e6087b33e4a6f2825990d62c
tree0ec7ccd9ca4e2d10380d3efb50c10e78bfe77e30
parentbf3d6fce9472742bc69939898ad4f0e1c97d69e6
datapath: Refine Netlink message size calculation and kill FLOW_BUFSIZE

Kills the FLOW_BUFSIZE constant which needs to be calculated manually
and replaces it with key_attr_size() based on nla_total_size().
Calculates the size of datapath messages instead of relying on
NLMSG_DEFAULT_SIZE and moves the existing message size calculations
into own functions for clarity.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
datapath/flow.h