get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 60949,
    "url": "http://patches.dpdk.org/api/patches/60949/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1570782089-182978-13-git-send-email-andy.pei@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<1570782089-182978-13-git-send-email-andy.pei@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1570782089-182978-13-git-send-email-andy.pei@intel.com",
    "date": "2019-10-11T08:21:23",
    "name": "[v8,12/18] net/ipn3ke: remove configuration for i40e port bonding",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ab47f0f9af76f334fc6a57436b6b5d131d9f206f",
    "submitter": {
        "id": 1185,
        "url": "http://patches.dpdk.org/api/people/1185/?format=api",
        "name": "Pei, Andy",
        "email": "andy.pei@intel.com"
    },
    "delegate": {
        "id": 31221,
        "url": "http://patches.dpdk.org/api/users/31221/?format=api",
        "username": "yexl",
        "first_name": "xiaolong",
        "last_name": "ye",
        "email": "xiaolong.ye@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1570782089-182978-13-git-send-email-andy.pei@intel.com/mbox/",
    "series": [
        {
            "id": 6801,
            "url": "http://patches.dpdk.org/api/series/6801/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6801",
            "date": "2019-10-11T08:21:11",
            "name": "add PCIe AER disable and IRQ support for ipn3ke",
            "version": 8,
            "mbox": "http://patches.dpdk.org/series/6801/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/60949/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/60949/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 83D791EA65;\n\tFri, 11 Oct 2019 10:33:54 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id 69B521EA19\n\tfor <dev@dpdk.org>; Fri, 11 Oct 2019 10:33:38 +0200 (CEST)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Oct 2019 01:33:38 -0700",
            "from dpdk-dipei.sh.intel.com ([10.67.110.224])\n\tby fmsmga006.fm.intel.com with ESMTP; 11 Oct 2019 01:33:36 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.67,283,1566889200\"; d=\"scan'208\";a=\"395681914\"",
        "From": "Andy Pei <andy.pei@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "rosen.xu@intel.com, tianfei.zhang@intel.com, andy.pei@intel.com,\n\txiaolong.ye@intel.com, qi.z.zhang@intel.com",
        "Date": "Fri, 11 Oct 2019 16:21:23 +0800",
        "Message-Id": "<1570782089-182978-13-git-send-email-andy.pei@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1570782089-182978-1-git-send-email-andy.pei@intel.com>",
        "References": "<1569485262-457887-2-git-send-email-andy.pei@intel.com>\n\t<1570782089-182978-1-git-send-email-andy.pei@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v8 12/18] net/ipn3ke: remove configuration for\n\ti40e port bonding",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Rosen Xu <rosen.xu@intel.com>\n\nThe ipn3ke board FPGA and i40e BDF scan has added in ifpga_rawdev,\nso it doesn't need to provide configuration for i40e port bonding.\n\nSigned-off-by: Rosen Xu <rosen.xu@intel.com>\nSigned-off-by: Andy Pei <andy.pei@intel.com>\n---\n drivers/net/ipn3ke/Makefile             |   2 +\n drivers/net/ipn3ke/ipn3ke_ethdev.c      | 289 ++++----------------------------\n drivers/net/ipn3ke/ipn3ke_representor.c |   8 +-\n 3 files changed, 44 insertions(+), 255 deletions(-)",
    "diff": "diff --git a/drivers/net/ipn3ke/Makefile b/drivers/net/ipn3ke/Makefile\nindex 8c3ae37..2c65e49 100644\n--- a/drivers/net/ipn3ke/Makefile\n+++ b/drivers/net/ipn3ke/Makefile\n@@ -19,6 +19,8 @@ CFLAGS += -DALLOW_EXPERIMENTAL_API\n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n CFLAGS += -I$(RTE_SDK)/drivers/bus/ifpga\n+CFLAGS += -I$(RTE_SDK)/drivers/raw/ifpga\n+CFLAGS += -I$(RTE_SDK)/drivers/net/i40e\n LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring\n LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs\n LDLIBS += -lrte_bus_ifpga\ndiff --git a/drivers/net/ipn3ke/ipn3ke_ethdev.c b/drivers/net/ipn3ke/ipn3ke_ethdev.c\nindex 28d8aaf..3051cdf 100644\n--- a/drivers/net/ipn3ke/ipn3ke_ethdev.c\n+++ b/drivers/net/ipn3ke/ipn3ke_ethdev.c\n@@ -19,6 +19,7 @@\n #include <rte_bus_ifpga.h>\n #include <ifpga_common.h>\n #include <ifpga_logs.h>\n+#include <ifpga_rawdev.h>\n \n #include \"ipn3ke_rawdev_api.h\"\n #include \"ipn3ke_flow.h\"\n@@ -324,7 +325,8 @@\n \t\t\t\t\"LineSideMACType\", &mac_type);\n \thw->retimer.mac_type = (int)mac_type;\n \n-\tIPN3KE_AFU_PMD_DEBUG(\"UPL_version is 0x%x\\n\", IPN3KE_READ_REG(hw, 0));\n+\thw->acc_tm = 0;\n+\thw->acc_flow = 0;\n \n \tif (afu_dev->id.uuid.uuid_low == IPN3KE_UUID_VBNG_LOW &&\n \t\tafu_dev->id.uuid.uuid_high == IPN3KE_UUID_VBNG_HIGH) {\n@@ -342,6 +344,12 @@\n \t\t/* After reset, wait until init done */\n \t\tif (ipn3ke_vbng_init_done(hw))\n \t\t\treturn -1;\n+\n+\t\thw->acc_tm = 1;\n+\t\thw->acc_flow = 1;\n+\n+\t\tIPN3KE_AFU_PMD_DEBUG(\"UPL_version is 0x%x\\n\",\n+\t\t\tIPN3KE_READ_REG(hw, 0));\n \t}\n \n \tif (hw->retimer.mac_type == IFPGA_RAWDEV_RETIMER_MAC_TYPE_10GE_XFI) {\n@@ -409,9 +417,6 @@\n \t\thw->flow_hw_enable = 1;\n \t}\n \n-\thw->acc_tm = 0;\n-\thw->acc_flow = 0;\n-\n \treturn 0;\n }\n \n@@ -462,7 +467,11 @@ static int ipn3ke_vswitch_probe(struct rte_afu_device *afu_dev)\n {\n \tchar name[RTE_ETH_NAME_MAX_LEN];\n \tstruct ipn3ke_hw *hw;\n-\tint i, retval;\n+\tstruct rte_eth_dev *i40e_eth;\n+\tstruct ifpga_rawdev *ifpga_dev;\n+\tuint16_t port_id;\n+\tint i, j, retval;\n+\tchar *fvl_bdf;\n \n \t/* check if the AFU device has been probed already */\n \t/* allocate shared mcp_vswitch structure */\n@@ -489,7 +498,12 @@ static int ipn3ke_vswitch_probe(struct rte_afu_device *afu_dev)\n \tif (retval)\n \t\treturn retval;\n \n+\tifpga_dev = ifpga_rawdev_get(hw->rawdev);\n+\t\tif (!ifpga_dev)\n+\t\t\tIPN3KE_AFU_PMD_ERR(\"failed to find ifpga_device.\");\n+\n \t/* probe representor ports */\n+\tj = 0;\n \tfor (i = 0; i < hw->port_num; i++) {\n \t\tstruct ipn3ke_rpst rpst = {\n \t\t\t.port_id = i,\n@@ -501,6 +515,22 @@ static int ipn3ke_vswitch_probe(struct rte_afu_device *afu_dev)\n \t\tsnprintf(name, sizeof(name), \"net_%s_representor_%d\",\n \t\t\tafu_dev->device.name, i);\n \n+\t\tfor (; j < 8; j++) {\n+\t\t\tfvl_bdf = ifpga_dev->fvl_bdf[j];\n+\t\t\tretval = rte_eth_dev_get_port_by_name(fvl_bdf,\n+\t\t\t\t&port_id);\n+\t\t\tif (retval) {\n+\t\t\t\tcontinue;\n+\t\t\t} else {\n+\t\t\t\ti40e_eth = &rte_eth_devices[port_id];\n+\t\t\t\trpst.i40e_pf_eth = i40e_eth;\n+\t\t\t\trpst.i40e_pf_eth_port_id = port_id;\n+\n+\t\t\t\tj++;\n+\t\t\t\tbreak;\n+\t\t\t}\n+\t\t}\n+\n \t\tretval = rte_eth_dev_create(&afu_dev->device, name,\n \t\t\tsizeof(struct ipn3ke_rpst), NULL, NULL,\n \t\t\tipn3ke_rpst_init, &rpst);\n@@ -508,6 +538,7 @@ static int ipn3ke_vswitch_probe(struct rte_afu_device *afu_dev)\n \t\tif (retval)\n \t\t\tIPN3KE_AFU_PMD_ERR(\"failed to create ipn3ke representor %s.\",\n \t\t\t\t\t\t\t\tname);\n+\n \t}\n \n \treturn 0;\n@@ -553,254 +584,6 @@ static int ipn3ke_vswitch_remove(struct rte_afu_device *afu_dev)\n \n RTE_PMD_REGISTER_AFU(net_ipn3ke_afu, afu_ipn3ke_driver);\n \n-static const char * const valid_args[] = {\n-#define IPN3KE_AFU_NAME         \"afu\"\n-\t\tIPN3KE_AFU_NAME,\n-#define IPN3KE_FPGA_ACCELERATION_LIST     \"fpga_acc\"\n-\t\tIPN3KE_FPGA_ACCELERATION_LIST,\n-#define IPN3KE_I40E_PF_LIST     \"i40e_pf\"\n-\t\tIPN3KE_I40E_PF_LIST,\n-\t\tNULL\n-};\n-\n-static int\n-ipn3ke_cfg_parse_acc_list(const char *afu_name,\n-\tconst char *acc_list_name)\n-{\n-\tstruct rte_afu_device *afu_dev;\n-\tstruct ipn3ke_hw *hw;\n-\tconst char *p_source;\n-\tchar *p_start;\n-\tchar name[RTE_ETH_NAME_MAX_LEN];\n-\n-\tafu_dev = rte_ifpga_find_afu_by_name(afu_name);\n-\tif (!afu_dev)\n-\t\treturn -1;\n-\thw = afu_dev->shared.data;\n-\tif (!hw)\n-\t\treturn -1;\n-\n-\tp_source = acc_list_name;\n-\twhile (*p_source) {\n-\t\twhile ((*p_source == '{') || (*p_source == '|'))\n-\t\t\tp_source++;\n-\t\tp_start = name;\n-\t\twhile ((*p_source != '|') && (*p_source != '}'))\n-\t\t\t*p_start++ = *p_source++;\n-\t\t*p_start = 0;\n-\t\tif (!strcmp(name, \"tm\") && hw->tm_hw_enable)\n-\t\t\thw->acc_tm = 1;\n-\n-\t\tif (!strcmp(name, \"flow\") && hw->flow_hw_enable)\n-\t\t\thw->acc_flow = 1;\n-\n-\t\tif (*p_source == '}')\n-\t\t\treturn 0;\n-\t}\n-\n-\treturn 0;\n-}\n-\n-static int\n-ipn3ke_cfg_parse_i40e_pf_ethdev(const char *afu_name,\n-\tconst char *pf_name)\n-{\n-\tstruct rte_eth_dev *i40e_eth, *rpst_eth;\n-\tstruct rte_afu_device *afu_dev;\n-\tstruct ipn3ke_rpst *rpst;\n-\tstruct ipn3ke_hw *hw;\n-\tconst char *p_source;\n-\tchar *p_start;\n-\tchar name[RTE_ETH_NAME_MAX_LEN];\n-\tuint16_t port_id;\n-\tint i;\n-\tint ret = -1;\n-\n-\tafu_dev = rte_ifpga_find_afu_by_name(afu_name);\n-\tif (!afu_dev)\n-\t\treturn -1;\n-\thw = afu_dev->shared.data;\n-\tif (!hw)\n-\t\treturn -1;\n-\n-\tp_source = pf_name;\n-\tfor (i = 0; i < hw->port_num; i++) {\n-\t\tsnprintf(name, sizeof(name), \"net_%s_representor_%d\",\n-\t\t\tafu_name, i);\n-\t\tret = rte_eth_dev_get_port_by_name(name, &port_id);\n-\t\tif (ret)\n-\t\t\treturn -1;\n-\t\trpst_eth = &rte_eth_devices[port_id];\n-\t\trpst = IPN3KE_DEV_PRIVATE_TO_RPST(rpst_eth);\n-\n-\t\twhile ((*p_source == '{') || (*p_source == '|'))\n-\t\t\tp_source++;\n-\t\tp_start = name;\n-\t\twhile ((*p_source != '|') && (*p_source != '}'))\n-\t\t\t*p_start++ = *p_source++;\n-\t\t*p_start = 0;\n-\n-\t\tret = rte_eth_dev_get_port_by_name(name, &port_id);\n-\t\tif (ret)\n-\t\t\treturn -1;\n-\t\ti40e_eth = &rte_eth_devices[port_id];\n-\n-\t\trpst->i40e_pf_eth = i40e_eth;\n-\t\trpst->i40e_pf_eth_port_id = port_id;\n-\n-\t\tif ((*p_source == '}') || !(*p_source))\n-\t\t\tbreak;\n-\t}\n-\n-\treturn 0;\n-}\n-\n-static int\n-ipn3ke_cfg_probe(struct rte_vdev_device *dev)\n-{\n-\tstruct rte_devargs *devargs;\n-\tstruct rte_kvargs *kvlist = NULL;\n-\tchar *afu_name = NULL;\n-\tchar *acc_name = NULL;\n-\tchar *pf_name = NULL;\n-\tint afu_name_en = 0;\n-\tint acc_list_en = 0;\n-\tint pf_list_en = 0;\n-\tint ret = -1;\n-\n-\tdevargs = dev->device.devargs;\n-\n-\tkvlist = rte_kvargs_parse(devargs->args, valid_args);\n-\tif (!kvlist) {\n-\t\tIPN3KE_AFU_PMD_ERR(\"error when parsing param\");\n-\t\tgoto end;\n-\t}\n-\n-\tif (rte_kvargs_count(kvlist, IPN3KE_AFU_NAME) == 1) {\n-\t\tif (rte_kvargs_process(kvlist, IPN3KE_AFU_NAME,\n-\t\t\t\t       &rte_ifpga_get_string_arg,\n-\t\t\t\t       &afu_name) < 0) {\n-\t\t\tIPN3KE_AFU_PMD_ERR(\"error to parse %s\",\n-\t\t\t\t     IPN3KE_AFU_NAME);\n-\t\t\tgoto end;\n-\t\t} else {\n-\t\t\tafu_name_en = 1;\n-\t\t}\n-\t}\n-\n-\tif (rte_kvargs_count(kvlist, IPN3KE_FPGA_ACCELERATION_LIST) == 1) {\n-\t\tif (rte_kvargs_process(kvlist, IPN3KE_FPGA_ACCELERATION_LIST,\n-\t\t\t\t       &rte_ifpga_get_string_arg,\n-\t\t\t\t       &acc_name) < 0) {\n-\t\t\tIPN3KE_AFU_PMD_ERR(\"error to parse %s\",\n-\t\t\t\t     IPN3KE_FPGA_ACCELERATION_LIST);\n-\t\t\tgoto end;\n-\t\t} else {\n-\t\t\tacc_list_en = 1;\n-\t\t}\n-\t}\n-\n-\tif (rte_kvargs_count(kvlist, IPN3KE_I40E_PF_LIST) == 1) {\n-\t\tif (rte_kvargs_process(kvlist, IPN3KE_I40E_PF_LIST,\n-\t\t\t\t       &rte_ifpga_get_string_arg,\n-\t\t\t\t       &pf_name) < 0) {\n-\t\t\tIPN3KE_AFU_PMD_ERR(\"error to parse %s\",\n-\t\t\t\t     IPN3KE_I40E_PF_LIST);\n-\t\t\tgoto end;\n-\t\t} else {\n-\t\t\tpf_list_en = 1;\n-\t\t}\n-\t}\n-\n-\tif (!afu_name_en) {\n-\t\tIPN3KE_AFU_PMD_ERR(\"arg %s is mandatory for ipn3ke\",\n-\t\t\t  IPN3KE_AFU_NAME);\n-\t\tgoto end;\n-\t}\n-\n-\tif (!pf_list_en) {\n-\t\tIPN3KE_AFU_PMD_ERR(\"arg %s is mandatory for ipn3ke\",\n-\t\t\t  IPN3KE_I40E_PF_LIST);\n-\t\tgoto end;\n-\t}\n-\n-\tif (acc_list_en) {\n-\t\tret = ipn3ke_cfg_parse_acc_list(afu_name, acc_name);\n-\t\tif (ret) {\n-\t\t\tIPN3KE_AFU_PMD_ERR(\"arg %s parse error for ipn3ke\",\n-\t\t\t  IPN3KE_FPGA_ACCELERATION_LIST);\n-\t\t\tgoto end;\n-\t\t}\n-\t} else {\n-\t\tIPN3KE_AFU_PMD_INFO(\"arg %s is optional for ipn3ke, using i40e acc\",\n-\t\t\t  IPN3KE_FPGA_ACCELERATION_LIST);\n-\t}\n-\n-\tret = ipn3ke_cfg_parse_i40e_pf_ethdev(afu_name, pf_name);\n-\tif (ret)\n-\t\tgoto end;\n-end:\n-\tif (kvlist)\n-\t\trte_kvargs_free(kvlist);\n-\tif (afu_name)\n-\t\tfree(afu_name);\n-\tif (acc_name)\n-\t\tfree(acc_name);\n-\n-\treturn ret;\n-}\n-\n-static int\n-ipn3ke_cfg_remove(struct rte_vdev_device *dev)\n-{\n-\tstruct rte_devargs *devargs;\n-\tstruct rte_kvargs *kvlist = NULL;\n-\tchar *afu_name = NULL;\n-\tstruct rte_afu_device *afu_dev;\n-\tint ret = -1;\n-\n-\tdevargs = dev->device.devargs;\n-\n-\tkvlist = rte_kvargs_parse(devargs->args, valid_args);\n-\tif (!kvlist) {\n-\t\tIPN3KE_AFU_PMD_ERR(\"error when parsing param\");\n-\t\tgoto end;\n-\t}\n-\n-\tif (rte_kvargs_count(kvlist, IPN3KE_AFU_NAME) == 1) {\n-\t\tif (rte_kvargs_process(kvlist, IPN3KE_AFU_NAME,\n-\t\t\t\t       &rte_ifpga_get_string_arg,\n-\t\t\t\t       &afu_name) < 0) {\n-\t\t\tIPN3KE_AFU_PMD_ERR(\"error to parse %s\",\n-\t\t\t\t     IPN3KE_AFU_NAME);\n-\t\t} else {\n-\t\t\tafu_dev = rte_ifpga_find_afu_by_name(afu_name);\n-\t\t\tif (!afu_dev)\n-\t\t\t\tgoto end;\n-\t\t\tret = ipn3ke_vswitch_remove(afu_dev);\n-\t\t}\n-\t} else {\n-\t\tIPN3KE_AFU_PMD_ERR(\"Remove ipn3ke_cfg %p error\", dev);\n-\t}\n-\n-end:\n-\tif (kvlist)\n-\t\trte_kvargs_free(kvlist);\n-\n-\treturn ret;\n-}\n-\n-static struct rte_vdev_driver ipn3ke_cfg_driver = {\n-\t.probe = ipn3ke_cfg_probe,\n-\t.remove = ipn3ke_cfg_remove,\n-};\n-\n-RTE_PMD_REGISTER_VDEV(ipn3ke_cfg, ipn3ke_cfg_driver);\n-RTE_PMD_REGISTER_PARAM_STRING(ipn3ke_cfg,\n-\t\"afu=<string> \"\n-\t\"fpga_acc=<string>\"\n-\t\"i40e_pf=<string>\");\n-\n RTE_INIT(ipn3ke_afu_init_log)\n {\n \tipn3ke_afu_logtype = rte_log_register(\"pmd.afu.ipn3ke\");\ndiff --git a/drivers/net/ipn3ke/ipn3ke_representor.c b/drivers/net/ipn3ke/ipn3ke_representor.c\nindex d37f5e2..7e5d29d 100644\n--- a/drivers/net/ipn3ke/ipn3ke_representor.c\n+++ b/drivers/net/ipn3ke/ipn3ke_representor.c\n@@ -20,6 +20,7 @@\n #include <rte_rawdev_pmd.h>\n #include <rte_bus_ifpga.h>\n #include <ifpga_logs.h>\n+#include <rte_pmd_i40e.h>\n \n #include \"ipn3ke_rawdev_api.h\"\n #include \"ipn3ke_flow.h\"\n@@ -2918,8 +2919,11 @@ static uint16_t ipn3ke_rpst_recv_pkts(__rte_unused void *rx_q,\n \trpst->switch_domain_id = representor_param->switch_domain_id;\n \trpst->port_id = representor_param->port_id;\n \trpst->hw = representor_param->hw;\n-\trpst->i40e_pf_eth = NULL;\n-\trpst->i40e_pf_eth_port_id = 0xFFFF;\n+\trpst->i40e_pf_eth = representor_param->i40e_pf_eth;\n+\trpst->i40e_pf_eth_port_id = representor_param->i40e_pf_eth_port_id;\n+\tif (rpst->i40e_pf_eth)\n+\t\trte_pmd_i40e_set_switch_dev(rpst->i40e_pf_eth_port_id,\n+\t\t\t\t\t    rpst->ethdev);\n \n \tethdev->data->mac_addrs = rte_zmalloc(\"ipn3ke\", RTE_ETHER_ADDR_LEN, 0);\n \tif (!ethdev->data->mac_addrs) {\n",
    "prefixes": [
        "v8",
        "12/18"
    ]
}