get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/522/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 522,
    "url": "https://patches.dpdk.org/api/patches/522/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1411654744-9460-19-git-send-email-changchun.ouyang@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": "<1411654744-9460-19-git-send-email-changchun.ouyang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1411654744-9460-19-git-send-email-changchun.ouyang@intel.com",
    "date": "2014-09-25T14:19:04",
    "name": "[dpdk-dev,18/18] ixgbe: Support X550 in IXGBE poll mode driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "19585bc40cd06cd4a1c6c5f82840db4390a80013",
    "submitter": {
        "id": 31,
        "url": "https://patches.dpdk.org/api/people/31/?format=api",
        "name": "Ouyang Changchun",
        "email": "changchun.ouyang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1411654744-9460-19-git-send-email-changchun.ouyang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/522/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/522/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 6BA61B430;\n\tThu, 25 Sep 2014 16:13:39 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 7ACD2B403\n\tfor <dev@dpdk.org>; Thu, 25 Sep 2014 16:13:36 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga101.fm.intel.com with ESMTP; 25 Sep 2014 07:19:53 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby FMSMGA003.fm.intel.com with ESMTP; 25 Sep 2014 07:13:53 -0700",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id s8PEJoBP027976;\n\tThu, 25 Sep 2014 22:19:50 +0800",
            "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid s8PEJmlL009619; Thu, 25 Sep 2014 22:19:50 +0800",
            "(from couyang@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s8PEJlYt009615; \n\tThu, 25 Sep 2014 22:19:47 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"4.97,862,1389772800\"; d=\"scan'208\";a=\"391518256\"",
        "From": "Ouyang Changchun <changchun.ouyang@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Thu, 25 Sep 2014 22:19:04 +0800",
        "Message-Id": "<1411654744-9460-19-git-send-email-changchun.ouyang@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1411654744-9460-1-git-send-email-changchun.ouyang@intel.com>",
        "References": "<1411654744-9460-1-git-send-email-changchun.ouyang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 18/18] ixgbe: Support X550 in IXGBE poll mode\n\tdriver",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch updates device id and PF driver in IXGBE PMD to support X550.\n\nSigned-off-by: Changchun Ouyang <changchun.ouyang@intel.com>\n---\n lib/librte_eal/common/include/rte_pci_dev_ids.h | 14 ++++++++++\n lib/librte_ether/rte_ethdev.h                   |  2 +-\n lib/librte_pmd_ixgbe/ixgbe_bypass_api.h         |  9 +++++++\n lib/librte_pmd_ixgbe/ixgbe_ethdev.c             | 11 +++++---\n lib/librte_pmd_ixgbe/ixgbe_fdir.c               | 35 ++++++++++++++++++++-----\n lib/librte_pmd_ixgbe/ixgbe_pf.c                 |  6 +++--\n lib/librte_pmd_ixgbe/ixgbe_rxtx.c               |  6 +++++\n 7 files changed, 70 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/common/include/rte_pci_dev_ids.h b/lib/librte_eal/common/include/rte_pci_dev_ids.h\nindex 978b0ed..dea620f 100644\n--- a/lib/librte_eal/common/include/rte_pci_dev_ids.h\n+++ b/lib/librte_eal/common/include/rte_pci_dev_ids.h\n@@ -391,6 +391,9 @@ RTE_PCI_DEV_ID_DECL_IGB(PCI_VENDOR_ID_INTEL, E1000_DEV_ID_DH89XXCC_SFP)\n #define IXGBE_DEV_ID_82599_T3_LOM               0x151C\n #define IXGBE_DEV_ID_X540T                      0x1528\n #define IXGBE_DEV_ID_X540T1                     0x1560\n+#define IXGBE_DEV_ID_X550T                      0x1563\n+#define IXGBE_DEV_ID_X550EM_X_KX4               0x15AA\n+#define IXGBE_DEV_ID_X550EM_X_KR                0x15AB\n \n #ifdef RTE_NIC_BYPASS\n #define IXGBE_DEV_ID_82599_BYPASS               0x155D\n@@ -433,6 +436,9 @@ RTE_PCI_DEV_ID_DECL_IXGBE(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_82599_XAUI_LOM)\n RTE_PCI_DEV_ID_DECL_IXGBE(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_82599_T3_LOM)\n RTE_PCI_DEV_ID_DECL_IXGBE(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X540T)\n RTE_PCI_DEV_ID_DECL_IXGBE(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X540T1)\n+RTE_PCI_DEV_ID_DECL_IXGBE(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X550T)\n+RTE_PCI_DEV_ID_DECL_IXGBE(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X550EM_X_KX4)\n+RTE_PCI_DEV_ID_DECL_IXGBE(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X550EM_X_KR)\n \n #ifdef RTE_NIC_BYPASS\n RTE_PCI_DEV_ID_DECL_IXGBE(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_82599_BYPASS)\n@@ -480,11 +486,19 @@ RTE_PCI_DEV_ID_DECL_IGBVF(PCI_VENDOR_ID_INTEL, E1000_DEV_ID_I350_VF_HV)\n #define IXGBE_DEV_ID_82599_VF_HV                0x152E\n #define IXGBE_DEV_ID_X540_VF                    0x1515\n #define IXGBE_DEV_ID_X540_VF_HV                 0x1530\n+#define IXGBE_DEV_ID_X550_VF_HV                 0x1564\n+#define IXGBE_DEV_ID_X550_VF                    0x1565\n+#define IXGBE_DEV_ID_X550EM_X_VF                0x15A8\n+#define IXGBE_DEV_ID_X550EM_X_VF_HV             0x15A9\n \n RTE_PCI_DEV_ID_DECL_IXGBEVF(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_82599_VF)\n RTE_PCI_DEV_ID_DECL_IXGBEVF(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_82599_VF_HV)\n RTE_PCI_DEV_ID_DECL_IXGBEVF(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X540_VF)\n RTE_PCI_DEV_ID_DECL_IXGBEVF(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X540_VF_HV)\n+RTE_PCI_DEV_ID_DECL_IXGBEVF(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X550_VF_HV)\n+RTE_PCI_DEV_ID_DECL_IXGBEVF(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X550_VF)\n+RTE_PCI_DEV_ID_DECL_IXGBEVF(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X550EM_X_VF)\n+RTE_PCI_DEV_ID_DECL_IXGBEVF(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X550EM_X_VF_HV)\n \n /****************** Virtual I40E devices from i40e_type.h ********************/\n \ndiff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 50df654..0004604 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -2119,7 +2119,7 @@ extern int rte_eth_dev_vlan_filter(uint8_t port_id, uint16_t vlan_id , int on);\n \n /**\n  * Enable/Disable hardware VLAN Strip by a rx queue of an Ethernet device.\n- * 82599/X540 can support VLAN stripping at the rx queue level\n+ * 82599/X540/X550 can support VLAN stripping at the rx queue level\n  *\n  * @param port_id\n  *   The port identifier of the Ethernet device.\ndiff --git a/lib/librte_pmd_ixgbe/ixgbe_bypass_api.h b/lib/librte_pmd_ixgbe/ixgbe_bypass_api.h\nindex 6af370a..b4a7386 100644\n--- a/lib/librte_pmd_ixgbe/ixgbe_bypass_api.h\n+++ b/lib/librte_pmd_ixgbe/ixgbe_bypass_api.h\n@@ -76,6 +76,15 @@ static s32 ixgbe_bypass_rw_generic(struct ixgbe_hw *hw, u32 cmd, u32 *status)\n \t\tdir_sdi = IXGBE_ESDP_SDP0_DIR;\n \t\tdir_sdo = IXGBE_ESDP_SDP1_DIR;\n \t\tbreak;\n+\tcase ixgbe_mac_X550:\n+\tcase ixgbe_mac_X550EM_x:\n+\t\tsck = IXGBE_ESDP_SDP2;\n+\t\tsdi = IXGBE_ESDP_SDP0;\n+\t\tsdo = IXGBE_ESDP_SDP1;\n+\t\tdir_sck = IXGBE_ESDP_SDP2_DIR;\n+\t\tdir_sdi = IXGBE_ESDP_SDP0_DIR;\n+\t\tdir_sdo = IXGBE_ESDP_SDP1_DIR;\n+\t\tbreak;\n \tdefault:\n \t\treturn IXGBE_ERR_DEVICE_NOT_SUPPORTED;\n \t}\ndiff --git a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c\nindex 59122a1..2961016 100644\n--- a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c\n+++ b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c\n@@ -544,7 +544,10 @@ ixgbe_dev_queue_stats_mapping_set(struct rte_eth_dev *eth_dev,\n \tuint32_t q_map;\n \tuint8_t n, offset;\n \n-\tif ((hw->mac.type != ixgbe_mac_82599EB) && (hw->mac.type != ixgbe_mac_X540))\n+\tif ((hw->mac.type != ixgbe_mac_82599EB) &&\n+\t\t(hw->mac.type != ixgbe_mac_X540) &&\n+\t\t(hw->mac.type != ixgbe_mac_X550) &&\n+\t\t(hw->mac.type != ixgbe_mac_X550EM_x))\n \t\treturn -ENOSYS;\n \n \tPMD_INIT_LOG(INFO, \"Setting port %d, %s queue_id %d to stat index %d\\n\",\n@@ -644,8 +647,10 @@ ixgbe_dcb_init(struct ixgbe_hw *hw,struct ixgbe_dcb_config *dcb_config)\n \t/* support all DCB capabilities in 82599 */\n \tdcb_config->support.capabilities = 0xFF;\n \n-\t/*we only support 4 Tcs for X540*/\n-\tif (hw->mac.type == ixgbe_mac_X540) {\n+\t/*we only support 4 Tcs for X540, X550 */\n+\tif (hw->mac.type == ixgbe_mac_X540 ||\n+\t\thw->mac.type == ixgbe_mac_X550 ||\n+\t\thw->mac.type == ixgbe_mac_X550EM_x) {\n \t\tdcb_config->num_tcs.pg_tcs = 4;\n \t\tdcb_config->num_tcs.pfc_tcs = 4;\n \t}\ndiff --git a/lib/librte_pmd_ixgbe/ixgbe_fdir.c b/lib/librte_pmd_ixgbe/ixgbe_fdir.c\nindex 6c0a530..a47118f 100644\n--- a/lib/librte_pmd_ixgbe/ixgbe_fdir.c\n+++ b/lib/librte_pmd_ixgbe/ixgbe_fdir.c\n@@ -182,7 +182,10 @@ ixgbe_fdir_configure(struct rte_eth_dev *dev)\n \n \tPMD_INIT_FUNC_TRACE();\n \n-\tif (hw->mac.type != ixgbe_mac_82599EB && hw->mac.type !=ixgbe_mac_X540)\n+\tif (hw->mac.type != ixgbe_mac_82599EB &&\n+\t\thw->mac.type != ixgbe_mac_X540 &&\n+\t\thw->mac.type != ixgbe_mac_X550 &&\n+\t\thw->mac.type != ixgbe_mac_X550EM_x)\n \t\treturn -ENOSYS;\n \n \terr = configure_fdir_flags(&dev->data->dev_conf.fdir_conf, &fdirctrl);\n@@ -463,7 +466,10 @@ fdir_add_update_signature_filter(struct rte_eth_dev *dev,\n \tunion ixgbe_atr_input input;\n \tint err;\n \n-\tif (hw->mac.type != ixgbe_mac_82599EB && hw->mac.type !=ixgbe_mac_X540)\n+\tif (hw->mac.type != ixgbe_mac_82599EB &&\n+\t\thw->mac.type != ixgbe_mac_X540 &&\n+\t\thw->mac.type != ixgbe_mac_X550 &&\n+\t\thw->mac.type != ixgbe_mac_X550EM_x)\n \t\treturn -ENOSYS;\n \n \terr = fdir_filter_to_atr_input(fdir_filter, &input);\n@@ -549,7 +555,10 @@ ixgbe_fdir_remove_signature_filter(struct rte_eth_dev *dev,\n \n \tPMD_INIT_FUNC_TRACE();\n \n-\tif (hw->mac.type != ixgbe_mac_82599EB && hw->mac.type !=ixgbe_mac_X540)\n+\tif (hw->mac.type != ixgbe_mac_82599EB &&\n+\t\thw->mac.type != ixgbe_mac_X540 &&\n+\t\thw->mac.type != ixgbe_mac_X550 &&\n+\t\thw->mac.type != ixgbe_mac_X550EM_x)\n \t\treturn -ENOSYS;\n \n \terr = fdir_filter_to_atr_input(fdir_filter, &input);\n@@ -673,7 +682,10 @@ ixgbe_fdir_set_masks(struct rte_eth_dev *dev, struct rte_fdir_masks *fdir_masks)\n \n \thw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n \n-\tif (hw->mac.type != ixgbe_mac_82599EB && hw->mac.type !=ixgbe_mac_X540)\n+\tif (hw->mac.type != ixgbe_mac_82599EB &&\n+\t\thw->mac.type != ixgbe_mac_X540 &&\n+\t\thw->mac.type != ixgbe_mac_X550 &&\n+\t\thw->mac.type != ixgbe_mac_X550EM_x)\n \t\treturn -ENOSYS;\n \n \terr = ixgbe_reinit_fdir_tables_82599(hw);\n@@ -783,7 +795,10 @@ fdir_add_update_perfect_filter(struct rte_eth_dev *dev,\n \tunion ixgbe_atr_input input;\n \tint err;\n \n-\tif (hw->mac.type != ixgbe_mac_82599EB && hw->mac.type !=ixgbe_mac_X540)\n+\tif (hw->mac.type != ixgbe_mac_82599EB &&\n+\t\thw->mac.type != ixgbe_mac_X540 &&\n+\t\thw->mac.type != ixgbe_mac_X550 &&\n+\t\thw->mac.type != ixgbe_mac_X550EM_x)\n \t\treturn -ENOSYS;\n \n \terr = fdir_filter_to_atr_input(fdir_filter, &input);\n@@ -835,7 +850,10 @@ ixgbe_fdir_remove_perfect_filter(struct rte_eth_dev *dev,\n \n \tPMD_INIT_FUNC_TRACE();\n \n-\tif (hw->mac.type != ixgbe_mac_82599EB && hw->mac.type !=ixgbe_mac_X540)\n+\tif (hw->mac.type != ixgbe_mac_82599EB &&\n+\t\thw->mac.type != ixgbe_mac_X540 &&\n+\t\thw->mac.type != ixgbe_mac_X550 &&\n+\t\thw->mac.type != ixgbe_mac_X550EM_x)\n \t\treturn -ENOSYS;\n \n \terr = fdir_filter_to_atr_input(fdir_filter, &input);\n@@ -858,7 +876,10 @@ ixgbe_fdir_info_get(struct rte_eth_dev *dev, struct rte_eth_fdir *fdir)\n \t\t\tIXGBE_DEV_PRIVATE_TO_FDIR_INFO(dev->data->dev_private);\n \tuint32_t reg;\n \n-\tif (hw->mac.type != ixgbe_mac_82599EB && hw->mac.type !=ixgbe_mac_X540)\n+\tif (hw->mac.type != ixgbe_mac_82599EB &&\n+\t\thw->mac.type != ixgbe_mac_X540 &&\n+\t\thw->mac.type != ixgbe_mac_X550 &&\n+\t\thw->mac.type != ixgbe_mac_X550EM_x)\n \t\treturn;\n \n \t/* Get the information from registers */\ndiff --git a/lib/librte_pmd_ixgbe/ixgbe_pf.c b/lib/librte_pmd_ixgbe/ixgbe_pf.c\nindex 170944d..7f2b3d2 100644\n--- a/lib/librte_pmd_ixgbe/ixgbe_pf.c\n+++ b/lib/librte_pmd_ixgbe/ixgbe_pf.c\n@@ -449,8 +449,10 @@ ixgbe_set_vf_lpe(struct rte_eth_dev *dev, __rte_unused uint32_t vf, uint32_t *ms\n \tuint32_t max_frs;\n \tint max_frame = new_mtu + ETHER_HDR_LEN + ETHER_CRC_LEN;\n \n-\t/* Only X540 supports jumbo frames in IOV mode */\n-\tif (hw->mac.type != ixgbe_mac_X540)\n+\t/* X540 and X550 support jumbo frames in IOV mode */\n+\tif (hw->mac.type != ixgbe_mac_X540 &&\n+\t\thw->mac.type != ixgbe_mac_X550 &&\n+\t\thw->mac.type != ixgbe_mac_X550EM_x)\n \t\treturn -1;\n \n \tif ((max_frame < ETHER_MIN_LEN) || (max_frame > ETHER_MAX_JUMBO_FRAME_LEN))\ndiff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c\nindex dfc2076..ebb2e79 100644\n--- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c\n+++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c\n@@ -2836,6 +2836,8 @@ ixgbe_dcb_hw_arbite_rx_config(struct ixgbe_hw *hw, uint16_t *refill,\n \t\tbreak;\n \tcase ixgbe_mac_82599EB:\n \tcase ixgbe_mac_X540:\n+\tcase ixgbe_mac_X550:\n+\tcase ixgbe_mac_X550EM_x:\n \t\tixgbe_dcb_config_rx_arbiter_82599(hw, refill, max, bwg_id,\n \t\t\t\t\t\t  tsa, map);\n \t\tbreak;\n@@ -2855,6 +2857,8 @@ ixgbe_dcb_hw_arbite_tx_config(struct ixgbe_hw *hw, uint16_t *refill, uint16_t *m\n \t\tbreak;\n \tcase ixgbe_mac_82599EB:\n \tcase ixgbe_mac_X540:\n+\tcase ixgbe_mac_X550:\n+\tcase ixgbe_mac_X550EM_x:\n \t\tixgbe_dcb_config_tx_desc_arbiter_82599(hw, refill, max, bwg_id,tsa);\n \t\tixgbe_dcb_config_tx_data_arbiter_82599(hw, refill, max, bwg_id,tsa, map);\n \t\tbreak;\n@@ -3575,6 +3579,8 @@ ixgbe_dev_tx_init(struct rte_eth_dev *dev)\n \n \t\t\tcase ixgbe_mac_82599EB:\n \t\t\tcase ixgbe_mac_X540:\n+\t\t\tcase ixgbe_mac_X550:\n+\t\t\tcase ixgbe_mac_X550EM_x:\n \t\t\tdefault:\n \t\t\t\ttxctrl = IXGBE_READ_REG(hw,\n \t\t\t\t\t\tIXGBE_DCA_TXCTRL_82599(txq->reg_idx));\n",
    "prefixes": [
        "dpdk-dev",
        "18/18"
    ]
}