From patchwork Thu Oct 5 03:50:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 114837 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp143757qgn; Wed, 4 Oct 2017 20:52:22 -0700 (PDT) X-Received: by 10.99.96.87 with SMTP id u84mr14747723pgb.234.1507175542569; Wed, 04 Oct 2017 20:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507175542; cv=none; d=google.com; s=arc-20160816; b=C6QgALUB3sK9uvD+c18KVz0hP8knQubmOQYLT7Qf1zAk2qS0PiFGTInxzA08InRywa o7iVFkLHn9L+yCuQEni6JRwflrRca1YqxUQjW2eSX9XrZG2CwpByXnORRN2Smb/+jK/M wIaZ/IXSzGNcxwCAvEKqL7WmSKRn8rJUvXnDTpXvnxbLLvg4uLl9FzI22QI2FxFXXshl kQk3EkBKKcl/5WtdUc9L6iL27gCSpnC2OlTlsNkeiKdVnNpBE4DKugU8akUQk3BQSW/7 KYyWudtT8iMCTLEnkPpZizz1epuC2vabWRoTPg7bW7AtISB83XyajGiYRSUc7WR0Sb67 WNsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=qYtY4mCurUmBxsOBwnyPu2eEe3iKl7iXqwffodkM/pg=; b=i4S79vhzOlqbzpK8ZVfN3LFjVjClUBuMhCgn0NzczB37mzMuVev5dt2dTYdeRgq3Wj Zfm8UYA9KcZQ8rg75Rt2s37cigwSPOYf1V6p4ENQtJtv8RWFxwrLgJr/ZkXrYrcJGZUS hKZUwijQXVwS6VkhwpIhT1yX/3O7cIjm9SoYZvwNF3cf8eYpGqQpfQkaBsqmcQdw50r8 atX4gXdF6+U6piU6IJbBmBy0K86WWqv1FTjdBRL5VGaGLW2ASZ6OmebEyf+Ju+dEl1bF 8pbJDcIrhDaAiM40xGk/uPpLwgb5KDusjNkXeRhe94ZOpCT6Clbf5KTxxXQ0mLYAQcej +M9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YszhdLqS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si7149162pfl.418.2017.10.04.20.52.22; Wed, 04 Oct 2017 20:52:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YszhdLqS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751907AbdJEDvQ (ORCPT + 26 others); Wed, 4 Oct 2017 23:51:16 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:53524 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751719AbdJEDvK (ORCPT ); Wed, 4 Oct 2017 23:51:10 -0400 Received: by mail-pf0-f171.google.com with SMTP id n73so648028pfg.10 for ; Wed, 04 Oct 2017 20:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=qYtY4mCurUmBxsOBwnyPu2eEe3iKl7iXqwffodkM/pg=; b=YszhdLqSY0SHupKWBtKvG2vxBKHLlfPmxFaJRIxJU/do8tjYbzJdor5pIhzCaJs5+Y WrbwAF9EgrNxVD06D2blezqXKH3go4h/4kKOPMqpZfzJRszR9WffSHxNTIDDL+sO3fEB JKcrkmB8pfvGFaEIWJwUPZBEzzz0o8ajEgX1w= 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; bh=qYtY4mCurUmBxsOBwnyPu2eEe3iKl7iXqwffodkM/pg=; b=mnchCooTLnyP7Qc7W5T7wo6N0fM2odu1yi6VO4473bG/s9d9poPVNl6mcIG1vESsM4 DMlveByZOserJVfvWUlGsqbeXv1LTYyVk238bLhxhLsDGeLxuHblrMLyvjvKIz1YARoT 7hFG2R5EqVbyHyOPkhbzoT0a/i6hv1Y0yabaJFhoXdoX/SvwmaQXEGh8mBor7biVZv/c Dfyek+CFX6dFDfJexEfBYoCiJJLmyb8mT3i7rvXwTj3qVBGw0BlPAIiMm72KVsmdJPdr j+xIxih+YGifjm6LcZWKae/RiN19LEBnzF2G9Kv5eeAzwZ84Jusasfv1Fitp2zBHAtDg eSgA== X-Gm-Message-State: AMCzsaW/PAqRY0CzCoUgzzvxYqT36WXQ5TV535udih/EIehcv8J3y4Sp JA8aV05goa7Df911o1k5EU01caCVDdg= X-Google-Smtp-Source: AOwi7QC0qrY8RL58RwL64cYfxedZgKf1JFPJdIRJNMzlDJO1R6FOq0uii4fidPNwjXtlGfcX4KnIHA== X-Received: by 10.99.147.65 with SMTP id w1mr14033380pgm.401.1507175469375; Wed, 04 Oct 2017 20:51:09 -0700 (PDT) Received: from localhost.localdomain (ip68-111-217-79.sd.sd.cox.net. [68.111.217.79]) by smtp.gmail.com with ESMTPSA id f131sm13067035pfc.27.2017.10.04.20.51.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 20:51:08 -0700 (PDT) From: Bjorn Andersson To: "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Chris Lew Subject: [RESEND PATCH 0/7] net: qrtr: Fixes and support receiving version 2 packets Date: Wed, 4 Oct 2017 20:50:58 -0700 Message-Id: <20171005035105.14677-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On the latest Qualcomm platforms remote processors are sending packets with version 2 of the message header. This series starts off with some fixes and then refactors the qrtr code to support receiving messages of both version 1 and version 2. As all remotes are backwards compatible transmitted packets continues to be send as version 1, but some groundwork has been done to make this a per-link property. Bjorn Andersson (7): net: qrtr: Invoke sk_error_report() after setting sk_err net: qrtr: Move constants to header file net: qrtr: Add control packet definition to uapi net: qrtr: Pass source and destination to enqueue functions net: qrtr: Clean up control packet handling net: qrtr: Use sk_buff->cb in receive path net: qrtr: Support decoding incoming v2 packets include/uapi/linux/qrtr.h | 35 +++++ net/qrtr/qrtr.c | 377 +++++++++++++++++++++++++--------------------- 2 files changed, 241 insertions(+), 171 deletions(-) -- 2.12.0