datapath: Validate flags during port delete

Flags are used to indicate the type of vport being deleted (in port
or out port). These flags are not correctly validated and this
eventually results in "success" messages being returned to the dpif
even for failures cases. Fix this.

Change-Id: Iac76396e12a6b5fa80064ad25debdaf73fdb7e95
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Signed-off-by: Mark B. Kavanagh <mark.b.kavanagh@intel.com>
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Reviewed-by: Kevin Traynor <kevin.traynor@intel.com>
Reviewed-by: Stephen Finucane <stephen.finucane@intel.com>
Reviewed-by: Ciara Loftus <ciara.loftus@intel.com>
datapath: Validate flags during port add

Flags are used to indicate the type of vport being added (in port
or out port). These flags are not correctly validated and this
eventually results in "success" messages being returned to the dpif
even for failures cases. Fix this.

Change-Id: I017c16f640c940edf146315220b4d389df5dc237
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Signed-off-by: Mark B. Kavanagh <mark.b.kavanagh@intel.com>
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Reviewed-by: Kevin Traynor <kevin.traynor@intel.com>
Reviewed-by: Stephen Finucane <stephen.finucane@intel.com>
Reviewed-by: Ciara Loftus <ciara.loftus@intel.com>