Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1332225ybh; Mon, 13 Jul 2020 16:06:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYEAOrjCfRyHHDWH+IXSaNwc7vjhEgpC57r3CvT7hXzeH/rq94G1E1/epH3+Kd896epUY8 X-Received: by 2002:a05:6402:234b:: with SMTP id r11mr1672905eda.5.1594681599983; Mon, 13 Jul 2020 16:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594681599; cv=none; d=google.com; s=arc-20160816; b=xBzJdvPYHqYmkUUAjcxtKjpOnJAosPaHaAP7GUFhaAigwOzftOO0wqGdl4NeE+lfFI h5+vy36OyCM7FGXyE1fIa7FFsp4jLbm2ECsuGIS8xAnWvY76r2rPTxntfzm0zvQtPYCh DcVTBzo1DAIkO2q+AucE/2eqkuJnEP9FSFjgM/x8Ct+JaveRe4BsNWXCsxb+wG2KWQuE tIUffK8WjaOptWsmzq88YVFORO8iIwI9J9U4wo7G1nFSTasHMFG39XUtQEvE7TGOAMts z111+28qRLfKUQJYT44+6H5tEJgARqYlxiGg8lxUBtMSB32SKnZU4xtnPpaWsTGW1T3v tq1g== 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:cc:to:from:ironport-sdr:ironport-sdr; bh=nVXhM54JA7ghrdDIjboOUCVE3PgJoVGM0ENESXbNgnI=; b=erkpnNV9YjEFJ83jyooTcFUeDC2Jw39RsacHs/Zcd4LtOoKrDCsgk6gGzBphBwru3w xIqHVVG64I440/NxZGlYS3sLYpaU660TRCeSOZy7+XbKjPnM9WmITFg5DDpmIhxHVHa/ 0VHfZqkCFHT7846eqlSH+N+AvxHfv06eXfzIIBXqWafVGUdaTf6bYqhi5xZPGYQdxKXq 1eL2NTJmylwlLjN3fn33oQApRKxrzrh0podRJQdB5fR35mecJuYsWtF9wl2T8mJrbKWb NpQXVnb+YIcQtUZnjaZRkzwyhb+KwpqjC3VHKslBJ32eWRYgZBUfBt1s94hMI8WB8g53 w6Tw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 91si11956328edy.467.2020.07.13.16.06.14; Mon, 13 Jul 2020 16:06:39 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726742AbgGMXFa (ORCPT + 99 others); Mon, 13 Jul 2020 19:05:30 -0400 Received: from mga06.intel.com ([134.134.136.31]:39333 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbgGMXFa (ORCPT ); Mon, 13 Jul 2020 19:05:30 -0400 IronPort-SDR: 62StNtStyf++ANDxVtnwWrAAV52EPDMHGqC/bBDWvh/rMEDESreFNEeaCXvR+hrNa0AE4uhTRL RtQgVQhMYPSA== X-IronPort-AV: E=McAfee;i="6000,8403,9681"; a="210285807" X-IronPort-AV: E=Sophos;i="5.75,349,1589266800"; d="scan'208";a="210285807" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2020 16:05:29 -0700 IronPort-SDR: 3VsUlibAzn2f3pvQ3VSnU/R7Rj+oUZgMHMgwZMLtTALiDpT4fQnyKmjoW970fzGlpAh1kjzlkX o3gUhmXBxjQw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,349,1589266800"; d="scan'208";a="459465770" Received: from unknown (HELO ingas-nuc1.intel.com) ([10.254.112.118]) by orsmga005.jf.intel.com with ESMTP; 13 Jul 2020 16:05:29 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, Inga Stotland Subject: [PATCH BlueZ 0/3] Code re-org and clean up Date: Mon, 13 Jul 2020 16:05:25 -0700 Message-Id: <20200713230528.107948-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patch set is part of the on-going clean up effort that targets some of more convoluted areas of meshd source code. The patchset provides better functional separation, smaller function granularity and better memory handling. Inga Stotland (3): mesh: Use static array to hold config server response mesh: Add size checks for every opcode in config server mesh: move model functionality out of node.c to model.c mesh/cfgmod-server.c | 99 ++++++----- mesh/cfgmod.h | 4 +- mesh/mesh-config-json.c | 5 +- mesh/model.c | 359 +++++++++++++++++++++++++++++++++------- mesh/model.h | 32 ++-- mesh/node.c | 286 ++++---------------------------- 6 files changed, 403 insertions(+), 382 deletions(-) -- 2.26.2