datapath-windows: Add support for OVS_DP_CMD_NEW Netlink command.
authorNithin Raju <nithin@vmware.com>
Wed, 8 Oct 2014 21:21:50 +0000 (14:21 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 9 Oct 2014 15:41:15 +0000 (08:41 -0700)
commitdf4879cd5f2c13f80416db84e75692340ba42021
tree7024e1bf806adf42cc9d6b5f5e326469b1dbc2fb
parent79461d20a8d5b7aba6cae5f6fa0fad5e8ac49235
datapath-windows: Add support for OVS_DP_CMD_NEW Netlink command.

In this change, we add support for the 'OVS_DP_CMD_NEW' netlink command
in the kernel. We don't really support creation of a new datapath. If
the name of the userspace is the same as the single datapath we support,
we return EEXIST.

This code is required to bootstrap ovs-vswitchd which makes the
following sequence of calls:
open_dpif_backer() -> dpif_create_and_open() -> dpif_create()

We also rename HandleDpTransaction() to HandleDpTransactionCommon().

Signed-off-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Tested-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
datapath-windows/ovsext/Datapath.c