Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/662974/?format=api
{ "id": 662974, "url": "http://patchwork.ozlabs.org/api/patches/662974/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1472165922-60629-1-git-send-email-sridhar.samudrala@intel.com/", "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": "<1472165922-60629-1-git-send-email-sridhar.samudrala@intel.com>", "list_archive_url": null, "date": "2016-08-25T22:58:42", "name": "[dev-queue] i40evf: Fix link state event handling.", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "b98bbd0e79c20c9606794872d55b908b0f5ea796", "submitter": { "id": 65219, "url": "http://patchwork.ozlabs.org/api/people/65219/?format=api", "name": "Samudrala, Sridhar", "email": "sridhar.samudrala@intel.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/1472165922-60629-1-git-send-email-sridhar.samudrala@intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/662974/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/662974/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@lists.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" ], "Received": [ "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\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 3sL1WY0mfQz9sCj\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 26 Aug 2016 10:04:57 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 831998C7F4;\n\tFri, 26 Aug 2016 00:04:55 +0000 (UTC)", "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 1PHJsxLMLmSc; Fri, 26 Aug 2016 00:04:54 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id C285F8C66F;\n\tFri, 26 Aug 2016 00:04:54 +0000 (UTC)", "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 93DFE1C2C20\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 26 Aug 2016 00:04:53 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 8D7AB8ACDE\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 26 Aug 2016 00:04:53 +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 rcUMLuJ1QkHd for <intel-wired-lan@lists.osuosl.org>;\n\tFri, 26 Aug 2016 00:04:52 +0000 (UTC)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id 9ED608ACE2\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 26 Aug 2016 00:04:52 +0000 (UTC)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga101.fm.intel.com with ESMTP; 25 Aug 2016 17:04:52 -0700", "from unknown (HELO sri-mi-02.jf.intel.com) ([10.166.31.66])\n\tby orsmga003.jf.intel.com with ESMTP; 25 Aug 2016 17:04:51 -0700" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.28,578,1464678000\"; d=\"scan'208\";a=\"871210086\"", "From": "Sridhar Samudrala <sridhar.samudrala@intel.com>", "To": "intel-wired-lan@lists.osuosl.org, anjali.singhai@intel.com,\n\tjohn.r.fastabend@intel.com", "Date": "Fri, 26 Aug 2016 00:58:42 +0200", "Message-Id": "<1472165922-60629-1-git-send-email-sridhar.samudrala@intel.com>", "X-Mailer": "git-send-email 2.5.5", "Subject": "[Intel-wired-lan] [dev-queue PATCH] i40evf: Fix link state event\n\thandling.", "X-BeenThere": "intel-wired-lan@lists.osuosl.org", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>", "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>", "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>" }, "content": "Currently disabling the link state from PF via\n\tip link set enp5s0f0 vf 0 state disable\ndoesnt' disable the CARRIER on the VF.\n\nThis patch updates the carrier and starts/stops the tx queues based on the\nlink state notification from PF.\n\n PF: enp5s0f0, VF: enp5s2\n #modprobe i40e\n #echo 2 > /sys/class/net/enp5s0f0/device/sriov_numvfs\n #ip link set enp5s2 up\n #ip -d link show enp5s2\n 175: enp5s2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000\n link/ether ea:4d:60:bc:6f:85 brd ff:ff:ff:ff:ff:ff promiscuity 0 addrgenmode eui64\n #ip link set enp5s0f0 vf 0 state disable\n #ip -d link show enp5s0f0\n 171: enp5s0f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000\n link/ether 68:05:ca:2e:72:68 brd ff:ff:ff:ff:ff:ff promiscuity 0 addrgenmode eui64 numtxqueues 72 numrxqueues 72 portid 6805ca2e7268\n vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state disable, trust off\n vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust off\n #ip -d link show enp5s2\n 175: enp5s2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000\n link/ether ea:4d:60:bc:6f:85 brd ff:ff:ff:ff:ff:ff promiscuity 0 addrgenmode eui64 numtxqueues 16 numrxqueues 16\n\nSigned-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>\n---\n drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c | 10 +++++++---\n 1 file changed, 7 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c b/drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c\nindex cc6cb30..ddf478d 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c\n+++ b/drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c\n@@ -898,8 +898,14 @@ void i40evf_virtchnl_completion(struct i40evf_adapter *adapter,\n \t\t\t vpe->event_data.link_event.link_status) {\n \t\t\t\tadapter->link_up =\n \t\t\t\t\tvpe->event_data.link_event.link_status;\n+\t\t\t\tif (adapter->link_up) {\n+\t\t\t\t\tnetif_tx_start_all_queues(netdev);\n+\t\t\t\t\tnetif_carrier_on(netdev);\n+\t\t\t\t} else {\n+\t\t\t\t\tnetif_tx_stop_all_queues(netdev);\n+\t\t\t\t\tnetif_carrier_off(netdev);\n+\t\t\t\t}\n \t\t\t\ti40evf_print_link_message(adapter);\n-\t\t\t\tnetif_tx_stop_all_queues(netdev);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase I40E_VIRTCHNL_EVENT_RESET_IMPENDING:\n@@ -974,8 +980,6 @@ void i40evf_virtchnl_completion(struct i40evf_adapter *adapter,\n \tcase I40E_VIRTCHNL_OP_ENABLE_QUEUES:\n \t\t/* enable transmits */\n \t\ti40evf_irq_enable(adapter, true);\n-\t\tnetif_tx_start_all_queues(adapter->netdev);\n-\t\tnetif_carrier_on(adapter->netdev);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_DISABLE_QUEUES:\n \t\ti40evf_free_all_tx_resources(adapter);\n", "prefixes": [ "dev-queue" ] }