From patchwork Mon Jul 5 13:38:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Gray X-Patchwork-Id: 1500763 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=140.211.166.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=NyfSEJa4; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.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 4GJRbs6Q7mz9sV8 for ; Mon, 5 Jul 2021 23:38:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 1B02260861; Mon, 5 Jul 2021 13:38:47 +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 6WI6N8mu-BQ0; Mon, 5 Jul 2021 13:38:46 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 6757860684; Mon, 5 Jul 2021 13:38:45 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 35050C0010; Mon, 5 Jul 2021 13:38:45 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 5711DC000E for ; Mon, 5 Jul 2021 13:38:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 38D1260708 for ; Mon, 5 Jul 2021 13:38:43 +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 eAvvD9tEefVD for ; Mon, 5 Jul 2021 13:38:42 +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 [216.205.24.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id 5097E60684 for ; Mon, 5 Jul 2021 13:38:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625492320; 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=BSmOKdUO5eaW+dtyorGFO7eQSFiVrNIGXT77UOvUMps=; b=NyfSEJa4hGmmEKDB8FBrOWLyY/UtQdw9ryD0qu8yv+O0uzugQK1Da6L2x6Ma2nDNrJes0R iqphNNgwEReovY/Y8QjZLXjGMnOIblZ3ffIZANR5Gbbtxb2dSmmZYDvd+eH5d42qEXIev+ PfWURzAXFCMfkzV3fdZBsqyEgXVEC3Q= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-427-b9My7YbfPg2Ky1i3Qx6HHg-1; Mon, 05 Jul 2021 09:38:40 -0400 X-MC-Unique: b9My7YbfPg2Ky1i3Qx6HHg-1 Received: by mail-qv1-f72.google.com with SMTP id ke6-20020a0562143006b029028b8546bb01so10995128qvb.20 for ; Mon, 05 Jul 2021 06:38:40 -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=ggmVyiIIAznzVDq1xhfLxfEW0MEmDdXRQKuLllb3lkA=; b=XaysLPE/dCcK/LNBNNWotwiVg/N+SoOJPmuWy0NWwWX+V4R+iabw44VMc0R/EXjcb7 zz0JfVyBriH0v1fJaiNjoBBkl12OoSm+dFDHX4rlqzSCsDIX9Rl45pFTge5V0XCk4WGg mUgBrkZDFM2JFyFcZlvU3PG8YuYLCus5ZjRMp/eKSCD+eW5UL7pM733xAylH/IgnNS/B /PAQ9s0j55idTm0tHC+Adl23EIuaMRvunqn+pZbSXAFI2sfSWAEMrJ3WT9SbWB3PnmHx YEgGRrmdTMH/oEvNLYwwfk9MdL+A3m6/PbNBFIWGNjvUiN5K8QOiO+Mf3vQAgxkKilqT xuhA== X-Gm-Message-State: AOAM532TDl19va32JaOrUzCmMFnXbK4w5XXu4pzUblPDTVRAbKFB+86x +4oWUVCxeQupe+TIgjQ3bV8I516gee986GixXy48EuMN3Fx7Nh66tAM2g9QD/eC6iTYmtMy5tTt 4JkN+fMVKVt72API73BwRPLYDSfv2Jb4OLFw9xK7+vo9Nr89tOpswzgYgHVyOT2LxBeUx X-Received: by 2002:a37:62c7:: with SMTP id w190mr14294046qkb.55.1625492319369; Mon, 05 Jul 2021 06:38:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU6icgNIk4Buj0MssAc/Psll+OkYFnRyzEcZg1fwTK9Q0i6zJ6A3Sl8gEDAJTdN2CsVMHncg== X-Received: by 2002:a37:62c7:: with SMTP id w190mr14294027qkb.55.1625492319149; Mon, 05 Jul 2021 06:38:39 -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 i19sm5375100qkl.19.2021.07.05.06.38.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jul 2021 06:38:38 -0700 (PDT) From: Mark Gray To: dev@openvswitch.org Date: Mon, 5 Jul 2021 09:38:34 -0400 Message-Id: <20210705133837.992663-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 v3 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 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 | 460 ++++++++++++++++-- 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, 537 insertions(+), 111 deletions(-) create mode 100644 lib/dpif-netlink-unixctl.man