]> Pileus Git - ~andy/linux/commit
openvswitch: Refine Netlink message size calculation and kill FLOW_BUFSIZE
authorThomas Graf <tgraf@suug.ch>
Fri, 29 Mar 2013 13:46:49 +0000 (14:46 +0100)
committerJesse Gross <jesse@nicira.com>
Sat, 30 Mar 2013 00:53:57 +0000 (17:53 -0700)
commitc3ff8cfe3e7748a93c4815b76e464d54c7efd241
tree4526700f7eda3334516e16076c0917c1bae5fbac
parent32686a9d2988516788cfcc402e1355c1eba1186a
openvswitch: 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>
net/openvswitch/datapath.c
net/openvswitch/flow.h