Message ID | 1571472524-73832-10-git-send-email-xiangxia.m.yue@gmail.com |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="eG558Glh"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 472vhM0Bc2z9sCJ for <incoming@patchwork.ozlabs.org>; Wed, 30 Oct 2019 14:53:54 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 0D8B7E61; Wed, 30 Oct 2019 03:48:57 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id D787AE34 for <dev@openvswitch.org>; Wed, 30 Oct 2019 03:48:53 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 8C3AF87B for <dev@openvswitch.org>; Wed, 30 Oct 2019 03:48:53 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id y8so336021plk.0 for <dev@openvswitch.org>; Tue, 29 Oct 2019 20:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qNMP2DUI9muUqsSG2DrAsJDDEz4pD/8p5Z2KkI73k2w=; b=eG558GlhtTsyH33lgqqFu+v4qQSqCoIdD/FBj01HVilT7o8JTd/dUNBwxWHyWmYk9q JlC+hMMl+T+Ityi6jZ/4hTr/19hwL+JHtjD5KVrqUykIxhUp7R2BNC4YfQ+ellvh0ht4 sGE8ht7sTgdU1a+YoHQ7pMBXYu1R8z2ezKDnn35n6OPm1h2lV1hU/c2tQLfz89RFdsr5 OhjbDLLsU7pc5jTob4TgSx83xbuhLZwQ5wwd8s3SrUpNEuhOl8DKDQwS2kUYNpfs/tAX 4kuY60nppsGLxhaacbzYXHpezViwVKZzx5I920DXFvkzkVueiHrlj1H2cKEnXaI6SHRf 3mbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qNMP2DUI9muUqsSG2DrAsJDDEz4pD/8p5Z2KkI73k2w=; b=FW+T69l4kFRLUkhDjkB4md5udRL75uHDTeEqT0WN2zhzKo0kgecOg6ui2C9G2gpoLE bvgdU1WUl9zhzXMtWIV2owS20BKeUpRXdrD92IeqcNCfISlqdZPe9P1yx7IrbynHMmqb QcsosQhypTlSKe42PUyWy05dYirNpyLHeyFoFNCt7yrnt6LJOA5uO8LAXwqJUzxThyH6 /r1PhI3DPLVQ+oBXT9JEeaIAw7Lv5ekD0jj8yn1jE5TQNK0o2opMDW3FTrCeg1v+NayV nm0YwLp0RFEyK8r8Hckaoo9J1OhpAtDs82lyLPvA6ccAhrhjRiOSra1jGRNiApdWvYNV WxzA== X-Gm-Message-State: APjAAAWJhOYLhNMMmL7mPfMjtJF1cTC1ocItIMb5q8cMaZeHgxdyA2mD QbjUaKL9txhpMVdD07q6O4dv1UQA X-Google-Smtp-Source: APXvYqwXm5ESDLi+/bd/4RLgpPJKv03S97HQgXMQUuo+QcciSVFqfGDF33fRn+3Kn+Nbr8i52xBmEg== X-Received: by 2002:a17:902:142:: with SMTP id 60mr2366200plb.38.1572407333207; Tue, 29 Oct 2019 20:48:53 -0700 (PDT) Received: from local.opencloud.tech.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id l22sm632390pgj.4.2019.10.29.20.48.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Oct 2019 20:48:52 -0700 (PDT) From: xiangxia.m.yue@gmail.com To: gvrose8192@gmail.com, pshelar@ovn.org Date: Sat, 19 Oct 2019 16:08:43 +0800 Message-Id: <1571472524-73832-10-git-send-email-xiangxia.m.yue@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1571472524-73832-1-git-send-email-xiangxia.m.yue@gmail.com> References: <1571472524-73832-1-git-send-email-xiangxia.m.yue@gmail.com> X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00, DATE_IN_PAST_96_XX, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: dev@openvswitch.org, netdev@vger.kernel.org Subject: [ovs-dev] [PATCH net-next v5 09/10] net: openvswitch: don't unlock mutex when changing the user_features fails X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org |
Series |
optimize openvswitch flow looking up
|
expand
|
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 9fea7e1..aeb76e4 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c @@ -1657,6 +1657,7 @@ static int ovs_dp_cmd_new(struct sk_buff *skb, struct genl_info *info) ovs_dp_reset_user_features(skb, info); } + ovs_unlock(); goto err_destroy_meters; } @@ -1673,7 +1674,6 @@ static int ovs_dp_cmd_new(struct sk_buff *skb, struct genl_info *info) return 0; err_destroy_meters: - ovs_unlock(); ovs_meters_exit(dp); err_destroy_ports_array: kfree(dp->ports);