ovs_vport_cmd_new create a new vport with port num specified by user. when this port num is already occupied, it's more clear to return -EEXIST as the reason than -EBUSY.
Signed-off-by: Fan Du <fan...@windriver.com> --- datapath/datapath.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/datapath/datapath.c b/datapath/datapath.c index 42af315..e9d1662 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -2041,7 +2041,7 @@ static int ovs_vport_cmd_new(struct sk_buff *skb, struct genl_info *info) goto exit_unlock; vport = ovs_vport_ovsl(dp, port_no); - err = -EBUSY; + err = -EEXIST; if (vport) goto exit_unlock; } else { -- 1.7.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev