Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2408946ybt; Tue, 16 Jun 2020 05:31:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNuNFgk0OMVhZDVI7xF3uQTiWViiuGSoLiB01zG0ugHGu9M3JF4b4xKm0PNHpJ1U98ia01 X-Received: by 2002:a05:6402:3106:: with SMTP id dc6mr2228705edb.375.1592310665092; Tue, 16 Jun 2020 05:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592310665; cv=none; d=google.com; s=arc-20160816; b=RvnFoYUCurfHfQFisAWYwXlV42izbceNg0R3xZH8jAT+bGjxBcRdjsy9A6lIbRNnDN UCVorOj33qkfMmtf563PGghGV2ZBrJtU1kvU/eCG/47NIDWYbU1Jn7iGsWZ0JKYHO5O9 Dr/soCkHQsFKRYlDwqoH2mXTOiw6X0ewklf0YIK0N8VHbJ7LDpF1iRNpm2nf0opnsY3b 1cOMlScSKdmMIaN8DVh+7UtcybOfTknpREZcNYsIvLg94eQlQ4t0Mmx2msk9iUY2G603 zvP3OSsRna+8WKw7Q4iPBVO00M+O3T3eDcZfZxgdTUNQ+y14ck+aSoO44yLWYQpf9rVp tlTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=0rpZ0RT5AIgAlvJnYng6I2el9Zqqe4dE1ldx4/bb1fg=; b=iUiHpPAbXDLRT9zQCsaJCjRu2v9Zgg5hsRFJET0Yl8ZwHZH1K8whuJqZyIB3u/E8u3 sFKsvGzz0H15VSdAOeBzBEjcNcW3TQ1bwvNPm4Loii/Rk0RWiou+kNTsdacMnmpXe1Us aGIqE4fzVKyc8kjjcxXE+O7hguVRBkocdjQDGdWiDNU/5bhU8ceGkNCyXC35YLLxHVsZ SHj3BH3fwWYuWhN1Djyp6RZeckaAPfBWqIKoyvlTnEry5Z0qZnzCkPEtXyJiMikA3DdP pnofWljiRG+aQIvj+KbMdHYO4Q0vM6TaMLyBkzPT+54+gZpQBNpZKwGHyqP4M+arPXt3 ro6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=GmSjm9vh; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si9805729edr.520.2020.06.16.05.30.40; Tue, 16 Jun 2020 05:31:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=GmSjm9vh; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725843AbgFPM1a (ORCPT + 99 others); Tue, 16 Jun 2020 08:27:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbgFPM12 (ORCPT ); Tue, 16 Jun 2020 08:27:28 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61F35C08C5C2 for ; Tue, 16 Jun 2020 05:27:27 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id x25so7155130edr.8 for ; Tue, 16 Jun 2020 05:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0rpZ0RT5AIgAlvJnYng6I2el9Zqqe4dE1ldx4/bb1fg=; b=GmSjm9vhoF3btgE+FGeqq4PqIYlnYF+nlZR3WSv2s3/xJcyy1uWrkoHHFQtypUvMsC Fk8dbeRyvzLdjhM4midBH60MopQOVE2pvrBrdwM2I/mpP9J4Avly5ZJqB++y39J/cCUL bGh8buRbqYwQFSwaaNymyUhFTOzrdA+PFSTXcsN3j4GYGEQNcrCq7YRLVgFwqYhJypfk Xb5qH0zor73r8DawJ2FXyhT9nqhc7E+kgHjiizNaPsxUo9l7bKDpQhuOCqN5Eq1QtGjr dyVFQ/pdCuZHHX37w9Ty2A2I7cqngxyH7vWKXuQvucOsMc9OuEfDzOhvcP/Szsv1kZiJ PbxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0rpZ0RT5AIgAlvJnYng6I2el9Zqqe4dE1ldx4/bb1fg=; b=ALcQ0igZsqBO5oVLHsd7LCqVS2wgjvWHtepwlATTE1fYJie+a7wABE2df3liV+4ukL vhXd8sEKG+HMpGk9/zPsbF3PIrP2O3fSoQYEjUXGbmMDlHikDfjZI57QET0WShGYxbik sTI/fmyi4ZmwDl5c6Gcqm8KlN93QcwSLaQ7r/hPhueG8m0lnNVqIUGmrfQTa3S4jU6Dm 0AeRuHey5+L380KvZaxSKaz5xESPylHw/vl8o9IWdJqLIjr4YkILq8d6KnbGVBbvTeGg VvqGlKLWXr14Do49p2eGZo2w67AdKMBTt1CvBnQknby5mGMXSX/er5p+JJm+Aegl71oF slUw== X-Gm-Message-State: AOAM533ZhDfDIj1uy6FtIIw2GDjS7w24IOFpBKYme9iNPuJf4epi5sWV IldgVg61s06SmHndL7LjFemLxrOTUW+D5A== X-Received: by 2002:a50:9517:: with SMTP id u23mr2248672eda.332.1592310445534; Tue, 16 Jun 2020 05:27:25 -0700 (PDT) Received: from mlowasrzechonek2133.silvair.lan ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id bt11sm3246334edb.48.2020.06.16.05.27.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 05:27:25 -0700 (PDT) From: =?UTF-8?q?Micha=C5=82=20Lowas-Rzechonek?= To: linux-bluetooth@vger.kernel.org Subject: [RFC BlueZ 0/2] mesh: Deliver mesh packets over datagram socket Date: Tue, 16 Jun 2020 14:27:43 +0200 Message-Id: <20200616122745.25056-1-michal.lowas-rzechonek@silvair.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patchset adds another D-Bus API for attaching applications, called AttachFD. When application uses that API, it receives one end of a datagram socket pair, which it's supposed to recv() from in order to receive mesh packets, instead of wating for *MessageReceived() calls over D-Bus. This significantly reduces system load for high traffic environment (e.g. an application that subscribes to a large number of publications in a big network). Message delivery is one way only: application is still supposed to call *Send methods via D-Bus, although the socket pair is bidirectional, so it would be possible to add sending as well. Michał Lowas-Rzechonek (1): mesh: Implement AttachFD method Przemysław Fierek (1): mesh: Add documentation for AttachFD doc/mesh-api.txt | 40 +++++++++++++++ mesh/mesh.c | 12 ++++- mesh/model.c | 126 ++++++++++++++++++++++++++++++++++++++++++++++- mesh/node.c | 83 ++++++++++++++++++++++++++++++- mesh/node.h | 4 +- 5 files changed, 259 insertions(+), 6 deletions(-) -- 2.20.1