Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/139657/?format=api
https://patches.dpdk.org/api/patches/139657/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/299db742da84ed0767017d267694745e406b9c54.1713964708.git.anatoly.burakov@intel.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<299db742da84ed0767017d267694745e406b9c54.1713964708.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/299db742da84ed0767017d267694745e406b9c54.1713964708.git.anatoly.burakov@intel.com", "date": "2024-04-24T13:21:46", "name": "[v1,12/22] net/ixgbe/base: added link state handling", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "f06dab7d351e72321e28c3722af6b87672dbc9e7", "submitter": { "id": 4, "url": "https://patches.dpdk.org/api/people/4/?format=api", "name": "Anatoly Burakov", "email": "anatoly.burakov@intel.com" }, "delegate": { "id": 10, "url": "https://patches.dpdk.org/api/users/10/?format=api", "username": "bruce", "first_name": "Bruce", "last_name": "Richardson", "email": "bruce.richardson@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/299db742da84ed0767017d267694745e406b9c54.1713964708.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 31814, "url": "https://patches.dpdk.org/api/series/31814/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=31814", "date": "2024-04-24T13:21:34", "name": "Update IXGBE base driver", "version": 1, "mbox": "https://patches.dpdk.org/series/31814/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/139657/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/139657/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 95AB443EAD;\n\tWed, 24 Apr 2024 15:23:45 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 69F44434BE;\n\tWed, 24 Apr 2024 15:22:47 +0200 (CEST)", "from mgamail.intel.com (mgamail.intel.com [192.198.163.9])\n by mails.dpdk.org (Postfix) with ESMTP id 92A7F434BC\n for <dev@dpdk.org>; Wed, 24 Apr 2024 15:22:44 +0200 (CEST)", "from fmviesa006.fm.intel.com ([10.60.135.146])\n by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 24 Apr 2024 06:22:44 -0700", "from silpixa00401119.ir.intel.com ([10.55.129.167])\n by fmviesa006.fm.intel.com with ESMTP; 24 Apr 2024 06:22:42 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1713964965; x=1745500965;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=Az6ekstKTYrf2jGrZ3RcLmxxo/FXdjG1D0NxeKvHWnY=;\n b=nCUzP/J47WlcI3uFckqos82Qp7Yj5C4A2uQAFngPbOzfivSH4FUFWYz/\n FVpjbAeHKmkAqPoO6k4LmAKrbuFxZPJ93nO1i8K5wbYIGgCfKwnICEkdk\n DtS+y0K3w1tI0kNfYr+Vm92VqcdypKvQ5WquuRaMasrvof7GpdceH5Jf6\n 00XZ6TKsYLE3fzNBo8AHZTXhVlgrTOsToSD/YdYTz/e/CWb4ZW/VU8vH0\n E4SOBfTimf6QKvQ3/jRkFhiTti6sIG3Qc8jQ8prti15/njK2vbRL1/A3b\n H9BUJhYb2Oq9GBXEOmEN44IskmNWXJo3db9hzmIzcRd52prFHa2ZE0eAe w==;", "X-CSE-ConnectionGUID": [ "rvjI3Sx0TFKTfImn6qVxHg==", "B9U/Wi+dQtGBOjLQ4lWyGA==" ], "X-CSE-MsgGUID": [ "+H8N1E/XSkSYttlDuoEEbA==", "4u0uM8tBTRClZKd/JmdEeg==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,11054\"; a=\"20289269\"", "E=Sophos;i=\"6.07,226,1708416000\"; d=\"scan'208\";a=\"20289269\"", "E=Sophos;i=\"6.07,226,1708416000\"; d=\"scan'208\";a=\"24749446\"" ], "X-ExtLoop1": "1", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>,\n\tvladimir.medvedkin@intel.com, bruce.richardson@intel.com,\n\tTyl@dpdk.org, RadoslawX <radoslawx.tyl@intel.com>,\n\tSkajewski@dpdk.org, PiotrX <piotrx.skajewski@intel.com>,\n\tMichael@dpdk.org, Alice <alice.michael@intel.com>", "Subject": "[PATCH v1 12/22] net/ixgbe/base: added link state handling", "Date": "Wed, 24 Apr 2024 14:21:46 +0100", "Message-ID": "\n <299db742da84ed0767017d267694745e406b9c54.1713964708.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<cover.1713964707.git.anatoly.burakov@intel.com>", "References": "<cover.1713964707.git.anatoly.burakov@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "From: Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>\n\nAdding a functionality that retrieves information from PF regarding\nthe link state of a given VF.\nIt is part of the general functionality that allows the PF driver\nto control the state of the virtual link VF devices.\n\nSigned-off-by: Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>\nReviewed-by: Tyl, RadoslawX <radoslawx.tyl@intel.com>\nReviewed-by: Skajewski, PiotrX <piotrx.skajewski@intel.com>\nReviewed-by: Michael, Alice <alice.michael@intel.com>\n---\n drivers/net/ixgbe/base/ixgbe_mbx.h | 1 +\n drivers/net/ixgbe/base/ixgbe_type.h | 1 +\n drivers/net/ixgbe/base/ixgbe_vf.c | 29 +++++++++++++++++++++++++++++\n drivers/net/ixgbe/base/ixgbe_vf.h | 1 +\n 4 files changed, 32 insertions(+)", "diff": "diff --git a/drivers/net/ixgbe/base/ixgbe_mbx.h b/drivers/net/ixgbe/base/ixgbe_mbx.h\nindex fadfccaabb..f368b1d745 100644\n--- a/drivers/net/ixgbe/base/ixgbe_mbx.h\n+++ b/drivers/net/ixgbe/base/ixgbe_mbx.h\n@@ -123,6 +123,7 @@ enum ixgbe_pfvf_api_rev {\n #define IXGBE_VF_GET_RETA 0x0a /* VF request for RETA */\n #define IXGBE_VF_GET_RSS_KEY\t0x0b /* get RSS key */\n #define IXGBE_VF_UPDATE_XCAST_MODE\t0x0c\n+#define IXGBE_VF_GET_LINK_STATE 0x10 /* get vf link state */\n \n /* mode choices for IXGBE_VF_UPDATE_XCAST_MODE */\n enum ixgbevf_xcast_modes {\ndiff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h\nindex 51b9ef274b..ec832fb1b0 100644\n--- a/drivers/net/ixgbe/base/ixgbe_type.h\n+++ b/drivers/net/ixgbe/base/ixgbe_type.h\n@@ -3983,6 +3983,7 @@ struct ixgbe_mac_operations {\n \t\t\t\t ixgbe_mc_addr_itr);\n \ts32 (*update_mc_addr_list)(struct ixgbe_hw *, u8 *, u32,\n \t\t\t\t ixgbe_mc_addr_itr, bool clear);\n+\ts32 (*get_link_state)(struct ixgbe_hw *, bool *);\n \ts32 (*enable_mc)(struct ixgbe_hw *);\n \ts32 (*disable_mc)(struct ixgbe_hw *);\n \ts32 (*clear_vfta)(struct ixgbe_hw *);\ndiff --git a/drivers/net/ixgbe/base/ixgbe_vf.c b/drivers/net/ixgbe/base/ixgbe_vf.c\nindex 603c24b653..0d5b29ba50 100644\n--- a/drivers/net/ixgbe/base/ixgbe_vf.c\n+++ b/drivers/net/ixgbe/base/ixgbe_vf.c\n@@ -46,6 +46,7 @@ s32 ixgbe_init_ops_vf(struct ixgbe_hw *hw)\n \thw->mac.ops.init_rx_addrs = NULL;\n \thw->mac.ops.update_mc_addr_list = ixgbe_update_mc_addr_list_vf;\n \thw->mac.ops.update_xcast_mode = ixgbevf_update_xcast_mode;\n+\thw->mac.ops.get_link_state = ixgbe_get_link_state_vf;\n \thw->mac.ops.enable_mc = NULL;\n \thw->mac.ops.disable_mc = NULL;\n \thw->mac.ops.clear_vfta = NULL;\n@@ -426,6 +427,34 @@ s32 ixgbevf_update_xcast_mode(struct ixgbe_hw *hw, int xcast_mode)\n \treturn IXGBE_SUCCESS;\n }\n \n+/**\n+ * ixgbe_get_link_state_vf - Get VF link state from PF\n+ * @hw: pointer to the HW structure\n+ * @link_state: link state storage\n+ *\n+ * Returns state of the operation error or success.\n+ **/\n+s32 ixgbe_get_link_state_vf(struct ixgbe_hw *hw, bool *link_state)\n+{\n+\tu32 msgbuf[2];\n+\ts32 err;\n+\ts32 ret_val;\n+\n+\tmsgbuf[0] = IXGBE_VF_GET_LINK_STATE;\n+\tmsgbuf[1] = 0x0;\n+\n+\terr = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, 2);\n+\n+\tif (err || (msgbuf[0] & IXGBE_VT_MSGTYPE_FAILURE)) {\n+\t\tret_val = IXGBE_ERR_MBX;\n+\t} else {\n+\t\tret_val = IXGBE_SUCCESS;\n+\t\t*link_state = msgbuf[1];\n+\t}\n+\n+\treturn ret_val;\n+}\n+\n /**\n * ixgbe_set_vfta_vf - Set/Unset vlan filter table address\n * @hw: pointer to the HW structure\ndiff --git a/drivers/net/ixgbe/base/ixgbe_vf.h b/drivers/net/ixgbe/base/ixgbe_vf.h\nindex be58b4f76e..bd10865d57 100644\n--- a/drivers/net/ixgbe/base/ixgbe_vf.h\n+++ b/drivers/net/ixgbe/base/ixgbe_vf.h\n@@ -106,6 +106,7 @@ s32 ixgbe_update_mc_addr_list_vf(struct ixgbe_hw *hw, u8 *mc_addr_list,\n \t\t\t\t u32 mc_addr_count, ixgbe_mc_addr_itr,\n \t\t\t\t bool clear);\n s32 ixgbevf_update_xcast_mode(struct ixgbe_hw *hw, int xcast_mode);\n+s32 ixgbe_get_link_state_vf(struct ixgbe_hw *hw, bool *link_state);\n s32 ixgbe_set_vfta_vf(struct ixgbe_hw *hw, u32 vlan, u32 vind,\n \t\t bool vlan_on, bool vlvf_bypass);\n s32 ixgbevf_rlpml_set_vf(struct ixgbe_hw *hw, u16 max_size);\n", "prefixes": [ "v1", "12/22" ] }{ "id": 139657, "url": "