From patchwork Tue Jul 6 09:31:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Gray X-Patchwork-Id: 1501096 Return-Path: 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=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=DShJmF+K; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GJy3t2g9Wz9sX3 for ; Tue, 6 Jul 2021 19:31:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 6C3CC607D2; Tue, 6 Jul 2021 09:31:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GMSP8jRuNv7F; Tue, 6 Jul 2021 09:31:18 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id C6AE660671; Tue, 6 Jul 2021 09:31:17 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 966D7C0010; Tue, 6 Jul 2021 09:31:17 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id D0F87C000E for ; Tue, 6 Jul 2021 09:31:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A33E760671 for ; Tue, 6 Jul 2021 09:31:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kvJT8Z__IjpE for ; Tue, 6 Jul 2021 09:31:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id D7C5E60592 for ; Tue, 6 Jul 2021 09:31:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625563874; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=myghmzXcndy8RXFy/Z9vsB+sHhvxq6NmPC29Ywdiipc=; b=DShJmF+KDHvu/yw5A+Rj/Nq0A1NWlKPdsdmkdDCow3YHBJAhq7Urv5sGlT0EAoYQenfEl7 o8OMUyJY531LkzngR7cTVDYfNbuagWIhuNp5wkVuuf4PL1AtQp3K7mgWMbicwbOsEtzHWW tbB/3J0Y580NRkr4OZXNShZuSovJh+Y= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-152-SsjtzKOyNAWo-6k-9DeTXg-1; Tue, 06 Jul 2021 05:31:13 -0400 X-MC-Unique: SsjtzKOyNAWo-6k-9DeTXg-1 Received: by mail-qt1-f198.google.com with SMTP id q16-20020ac845100000b0290252006e22f6so336960qtn.22 for ; Tue, 06 Jul 2021 02:31:13 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=1/Pu09JjHm6HCO3E69ADn5lvAoe/OlhPiwMgeGEwM78=; b=r2UeL3bHaKLe+9bSbZQNQqPzKhYSWO0aPyS68qVGZbLXMIWUBK69rHXjaxi9lbwkyu lrUfR4D+gMJJ8EyOLOPk+POJXu6JMpeDWIIoRCu9A9KYBaqrVRNu6XdU4qkLqDQ/KUhH QBzaofeyvwLvVwG4F6p3TEKcfetjDefbxLWaElpamnJHmfwLh+qnTBeq8tOfauAjQfrc qunWcFOyiu37KQK6VvC7BpmTBEKtzA5dcHHciG/lv4vMvWnY9slkgjNeOdM0uhDDrTdj WfmqHQ3ZQwso+AWfShDwsxyZv32JtbpJtcDNa15eGP4iGHlE9yl8Rlcl8ctC3QmFBGb0 o5JQ== X-Gm-Message-State: AOAM532ui7xMXMduq7BG0cml0A2etEejI2Wg9urCSkfKMPKdXZbx1jZ7 g98qt6ZjwWyaeHDd5ZifFqSS5PvE8EZqOFkXlNjNbkLPoEnK1gGK9nfzxQWov+d3Ok84jSOhMlv kATmctPN3muOERhi7dluYZZh0D3vLlDSgLeKlRbMA6M39m4gJjGX4gSqe0OafdwRmYlzh X-Received: by 2002:a0c:eacc:: with SMTP id y12mr3247000qvp.58.1625563872873; Tue, 06 Jul 2021 02:31:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoQKCSNtew6J/9fkoKpcc9DL+2y0KNW9+Dd7Wyj3ETqDBOjI6jgqH6WUgdScWO1s/IyE9kBg== X-Received: by 2002:a0c:eacc:: with SMTP id y12mr3246974qvp.58.1625563872541; Tue, 06 Jul 2021 02:31:12 -0700 (PDT) Received: from wsfd-netdev76.ntdv.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id x125sm6646017qkd.8.2021.07.06.02.31.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 02:31:12 -0700 (PDT) From: Mark Gray To: dev@openvswitch.org Date: Tue, 6 Jul 2021 05:31:08 -0400 Message-Id: <20210706093111.1017422-1-mark.d.gray@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mark.d.gray@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: fbl@sysclose.org Subject: [ovs-dev] [PATCH v4 0/3] dpif-netlink: Introduce per-cpu upcall dispatching X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" This series proposes a new method of distributing upcalls to user space threads attempting to resolve a number of issues with the current method. v2 - Rebase Address Flavio's comments v3 - Add man page to automake v4 - Rebase and address Flavio's comments Mark Gray (3): ofproto: change type of n_handlers and n_revalidators dpif-netlink: fix report_loss() message dpif-netlink: Introduce per-cpu upcall dispatch NEWS | 7 +- .../linux/compat/include/linux/openvswitch.h | 7 + lib/automake.mk | 1 + lib/dpif-netdev.c | 1 + lib/dpif-netlink-unixctl.man | 6 + lib/dpif-netlink.c | 464 ++++++++++++++++-- lib/dpif-provider.h | 32 +- lib/dpif.c | 17 + lib/dpif.h | 1 + ofproto/ofproto-dpif-upcall.c | 71 ++- ofproto/ofproto-dpif-upcall.h | 5 +- ofproto/ofproto-provider.h | 2 +- ofproto/ofproto.c | 14 +- vswitchd/ovs-vswitchd.8.in | 1 + vswitchd/vswitch.xml | 23 +- 15 files changed, 541 insertions(+), 111 deletions(-) create mode 100644 lib/dpif-netlink-unixctl.man