Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/840485/?format=api
{ "id": 840485, "url": "http://patchwork.ozlabs.org/api/patches/840485/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20171122185616.29785.79685.stgit@localhost.localdomain/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20171122185616.29785.79685.stgit@localhost.localdomain>", "list_archive_url": null, "date": "2017-11-22T18:56:16", "name": "[jkirsher/next-queue,01/16] ixgbe: Fix interaction between SR-IOV and macvlan offload", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "5ee8486eaf6ed888f87d28071fa385c5d0158f83", "submitter": { "id": 252, "url": "http://patchwork.ozlabs.org/api/people/252/?format=api", "name": "Alexander Duyck", "email": "alexander.duyck@gmail.com" }, "delegate": { "id": 68, "url": "http://patchwork.ozlabs.org/api/users/68/?format=api", "username": "jtkirshe", "first_name": "Jeff", "last_name": "Kirsher", "email": "jeffrey.t.kirsher@intel.com" }, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20171122185616.29785.79685.stgit@localhost.localdomain/mbox/", "series": [ { "id": 14756, "url": "http://patchwork.ozlabs.org/api/series/14756/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=14756", "date": "2017-11-22T18:56:10", "name": "ixgbe/fm10k: macvlan fixes", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/14756/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/840485/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/840485/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Authentication-Results": [ "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.133; helo=hemlock.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"aqSI1j3c\"; dkim-atps=neutral" ], "Received": [ "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3yhsXf4cV0z9s83\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 23 Nov 2017 06:12:34 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 97AA988B20;\n\tWed, 22 Nov 2017 19:12:32 +0000 (UTC)", "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id TkwYKSsTXYnu; Wed, 22 Nov 2017 19:12:29 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id E630888AF8;\n\tWed, 22 Nov 2017 19:12:29 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id E90961C2314\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 22 Nov 2017 18:56:18 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id DF8F487966\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 22 Nov 2017 18:56:18 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id HGeLNDIO04Ff for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 22 Nov 2017 18:56:18 +0000 (UTC)", "from mail-pf0-f196.google.com (mail-pf0-f196.google.com\n\t[209.85.192.196])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 251A787963\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 22 Nov 2017 18:56:18 +0000 (UTC)", "by mail-pf0-f196.google.com with SMTP id j28so12449355pfk.8\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 22 Nov 2017 10:56:18 -0800 (PST)", "from localhost.localdomain ([2001:470:b:9c3:9e5c:8eff:fe4f:f2d0])\n\tby smtp.gmail.com with ESMTPSA id\n\tf10sm26042496pgr.8.2017.11.22.10.56.16\n\tfor <intel-wired-lan@lists.osuosl.org>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 22 Nov 2017 10:56:16 -0800 (PST)" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:from:to:date:message-id:in-reply-to:references:user-agent\n\t:mime-version:content-transfer-encoding;\n\tbh=1tSv1/FAsRRbZj+RUqKbcKbG2DsMZyuEVoO2P3RIfLk=;\n\tb=aqSI1j3cMz2ahWRrEWXdXUn/jBZFQKkyOsVBbE3RpnaCA6hmVcBevOvshVm6LUvdNj\n\tyC6rgM+MhNq0vTdyHeFUxfHGGMVHegGSpeSUcooQKz2oaY+ZxUXE74NDdkSqBgNkWZjw\n\tus3m/u/m8g2xowQDf+64DDtB2RYnieaakRnMQbYTrfrj/vOXoknNvipf1u58r2bxpN/F\n\t85Bo3/O5aLW/fim32BOnkxh/WKcCIMSE2svWgkJlvTY1leGAgDRxHowyxCRhArw+OwI2\n\tfPV53l+x+zykIduKPXHjqIPS2jsEd9fUpLBBmU9RvEz5WqTDpb8968ZZlNOWrAYEoe0/\n\t8+rA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:from:to:date:message-id:in-reply-to\n\t:references:user-agent:mime-version:content-transfer-encoding;\n\tbh=1tSv1/FAsRRbZj+RUqKbcKbG2DsMZyuEVoO2P3RIfLk=;\n\tb=eeronlIEwVYijCBK+e2utMyQenv8exKv6dxh3We3wopTSQCEX6QcC3CUJUWaD5vsle\n\tzeUcxdfXc8o6sPANOnis0F/9Nq8ND1fGIFMyHxWBt0yC+OSs/rCnF/Dej9E9C0XDgSRZ\n\twLWwp//YJsOWqwCh7q8m7Bnhek+xrsDP+wcc+175iLzXnH6Qs5Rnw/moA593YNWsLwc9\n\tHFP1dnUjr4qobRehmSfkzZwxj9Ept7ZheS4hnLBz9SdVBg8IP2FxjJF8DO6ylOWOM5Zb\n\tFULzLhchvzqiiPwybPNcvKsO9MVyQMb0avwzS1eWBDBekhzI40VwJTnEvYNYYVSJvz4f\n\t6Dtw==", "X-Gm-Message-State": "AJaThX7QfeuylrjFYJ4FsuzTYusU74Iolznl850wJvJH86D6U44GPXm/\n\tLhWWb8UPk6zurp/f9VEr9oFTXCRY", "X-Google-Smtp-Source": "AGs4zMYKL9LPpO1yyVjHvJyaL1JzzEH65+s2QikCWJ1kb/02nNzxkaj2IW6xrWdVyj0FZ/YdTzAJGg==", "X-Received": "by 10.101.67.140 with SMTP id m12mr21113526pgp.51.1511376977465; \n\tWed, 22 Nov 2017 10:56:17 -0800 (PST)", "From": "Alexander Duyck <alexander.duyck@gmail.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Wed, 22 Nov 2017 10:56:16 -0800", "Message-ID": "<20171122185616.29785.79685.stgit@localhost.localdomain>", "In-Reply-To": "<20171122185256.29785.93548.stgit@localhost.localdomain>", "References": "<20171122185256.29785.93548.stgit@localhost.localdomain>", "User-Agent": "StGit/0.17.1-dirty", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [jkirsher/next-queue PATCH 01/16] ixgbe: Fix\n\tinteraction between SR-IOV and macvlan offload", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.24", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>", "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>" }, "content": "From: Alexander Duyck <alexander.h.duyck@intel.com>\n\nWhen SR-IOV was enabled the macvlan offload was configuring several filters\nwith the wrong pool value. This would result in the macvlan interfaces not\nbeing able to receive traffic that had to pass over the physical interface.\n\nTo fix it wrap the pool argument in the VMDQ_P macro which will add the\nnecessary offset to get to the actual VMDq pool\n\nSigned-off-by: Alexander Duyck <alexander.h.duyck@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 12 +++++-------\n 1 file changed, 5 insertions(+), 7 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\nindex f52ad0d0782f..9c6d4926a136 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n@@ -5426,10 +5426,11 @@ static int ixgbe_fwd_ring_up(struct net_device *vdev,\n \t\tgoto fwd_queue_err;\n \n \tif (is_valid_ether_addr(vdev->dev_addr))\n-\t\tixgbe_add_mac_filter(adapter, vdev->dev_addr, accel->pool);\n+\t\tixgbe_add_mac_filter(adapter, vdev->dev_addr,\n+\t\t\t\t VMDQ_P(accel->pool));\n \n \tixgbe_fwd_psrtype(accel);\n-\tixgbe_macvlan_set_rx_mode(vdev, accel->pool, adapter);\n+\tixgbe_macvlan_set_rx_mode(vdev, VMDQ_P(accel->pool), adapter);\n \treturn err;\n fwd_queue_err:\n \tixgbe_fwd_ring_down(vdev, accel);\n@@ -9034,6 +9035,7 @@ static int get_macvlan_queue(struct net_device *upper, void *_data)\n static int handle_redirect_action(struct ixgbe_adapter *adapter, int ifindex,\n \t\t\t\t u8 *queue, u64 *action)\n {\n+\tstruct ixgbe_ring_feature *vmdq = &adapter->ring_feature[RING_F_VMDQ];\n \tunsigned int num_vfs = adapter->num_vfs, vf;\n \tstruct upper_walk_data data;\n \tstruct net_device *upper;\n@@ -9042,11 +9044,7 @@ static int handle_redirect_action(struct ixgbe_adapter *adapter, int ifindex,\n \tfor (vf = 0; vf < num_vfs; ++vf) {\n \t\tupper = pci_get_drvdata(adapter->vfinfo[vf].vfdev);\n \t\tif (upper->ifindex == ifindex) {\n-\t\t\tif (adapter->num_rx_pools > 1)\n-\t\t\t\t*queue = vf * 2;\n-\t\t\telse\n-\t\t\t\t*queue = vf * adapter->num_rx_queues_per_pool;\n-\n+\t\t\t*queue = vf * __ALIGN_MASK(1, ~vmdq->mask);\n \t\t\t*action = vf + 1;\n \t\t\t*action <<= ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF;\n \t\t\treturn 0;\n", "prefixes": [ "jkirsher/next-queue", "01/16" ] }