datapath-windows: add a context structure for user parameters
authorNithin Raju <nithin@vmware.com>
Fri, 29 Aug 2014 22:47:49 +0000 (15:47 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 4 Sep 2014 19:40:42 +0000 (12:40 -0700)
commite4bd84f36b5670b8f394c8bb5170a85aed9b5901
treee082e2f3ef9161d64aade06e9dfe79612ab1da50
parenta19f14a74d7efcde7116e95051cbc28d3ee9984b
datapath-windows: add a context structure for user parameters

In this patch we add a context structure for collecting all the parameters
passed from usersapce in one place. The idea is to reduce the number of
parameters being passed to the netlink command handler functions.

It can be argued that not all functions require all the arguments, but this
approach keeps the code clean, IMO.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ankur Sharma <ankursharma@vmware.com>
Acked-by: Ankur Sharma <ankursharma@vmware.com>
Acked-by: Saurabh Shah <ssaurabh@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/Datapath.c
datapath-windows/ovsext/Datapath.h