get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 63009,
    "url": "http://patches.dpdk.org/api/patches/63009/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1573722187-148846-13-git-send-email-rosen.xu@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": "<1573722187-148846-13-git-send-email-rosen.xu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1573722187-148846-13-git-send-email-rosen.xu@intel.com",
    "date": "2019-11-14T09:03:00",
    "name": "[v18,12/19] net/ipn3ke: remove configuration for i40e port bonding",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "8055e72636ab9f91e6ac9568353acd759e115b86",
    "submitter": {
        "id": 946,
        "url": "http://patches.dpdk.org/api/people/946/?format=api",
        "name": "Xu, Rosen",
        "email": "rosen.xu@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/1573722187-148846-13-git-send-email-rosen.xu@intel.com/mbox/",
    "series": [
        {
            "id": 7455,
            "url": "http://patches.dpdk.org/api/series/7455/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7455",
            "date": "2019-11-14T09:02:48",
            "name": "add PCIe AER disable and IRQ support for ipn3ke",
            "version": 18,
            "mbox": "http://patches.dpdk.org/series/7455/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/63009/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/63009/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 01C0BA04C2;\n\tThu, 14 Nov 2019 10:06:23 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0D3721BEE3;\n\tThu, 14 Nov 2019 10:04:57 +0100 (CET)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id EBD4F1BEC1\n for <dev@dpdk.org>; Thu, 14 Nov 2019 10:04:48 +0100 (CET)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 14 Nov 2019 01:04:48 -0800",
            "from dpdk-rosen-02.sh.intel.com ([10.67.110.156])\n by fmsmga006.fm.intel.com with ESMTP; 14 Nov 2019 01:04:47 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.68,302,1569308400\"; d=\"scan'208\";a=\"406259587\"",
        "From": "Rosen Xu <rosen.xu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "rosen.xu@intel.com, tianfei.zhang@intel.com, andy.pei@intel.com,\n xiaolong.ye@intel.com, ferruh.yigit@intel.com",
        "Date": "Thu, 14 Nov 2019 17:03:00 +0800",
        "Message-Id": "<1573722187-148846-13-git-send-email-rosen.xu@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1573722187-148846-1-git-send-email-rosen.xu@intel.com>",
        "References": "<1571917119-149534-2-git-send-email-andy.pei@intel.com>\n <1573722187-148846-1-git-send-email-rosen.xu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v18 12/19] 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 <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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "The 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                   |   1 +\n drivers/net/ipn3ke/ipn3ke_ethdev.c            | 292 ++++----------------------\n drivers/net/ipn3ke/ipn3ke_flow.c              |   6 +\n drivers/net/ipn3ke/ipn3ke_rawdev_api.h        |  12 ++\n drivers/net/ipn3ke/ipn3ke_representor.c       |  10 +-\n drivers/net/ipn3ke/rte_pmd_ipn3ke_version.map |   6 +\n drivers/raw/ifpga/Makefile                    |   5 +\n drivers/raw/ifpga/ifpga_rawdev.c              |   4 +\n drivers/raw/ifpga/meson.build                 |   5 +-\n 9 files changed, 85 insertions(+), 256 deletions(-)",
    "diff": "diff --git a/drivers/net/ipn3ke/Makefile b/drivers/net/ipn3ke/Makefile\nindex 8c3ae37..8c58d71 100644\n--- a/drivers/net/ipn3ke/Makefile\n+++ b/drivers/net/ipn3ke/Makefile\n@@ -19,6 +19,7 @@ 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 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 af87fda..5b5510f 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@@ -35,6 +36,8 @@\n \t{ 0, 0 /* sentinel */ },\n };\n \n+struct ipn3ke_pub_func ipn3ke_bridge_func;\n+\n static int\n ipn3ke_indirect_read(struct ipn3ke_hw *hw, uint32_t *rd_data,\n \tuint32_t addr, uint32_t dev_sel, uint32_t eth_group_sel)\n@@ -324,7 +327,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 +346,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 +419,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 +469,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 +500,14 @@ static int ipn3ke_vswitch_probe(struct rte_afu_device *afu_dev)\n \tif (retval)\n \t\treturn retval;\n \n+\tif (ipn3ke_bridge_func.get_ifpga_rawdev == NULL)\n+\t\treturn -ENOMEM;\n+\tifpga_dev = ipn3ke_bridge_func.get_ifpga_rawdev(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 +519,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 +542,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,253 +588,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-\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_flow.c b/drivers/net/ipn3ke/ipn3ke_flow.c\nindex 9fc3c8b..f857e64 100644\n--- a/drivers/net/ipn3ke/ipn3ke_flow.c\n+++ b/drivers/net/ipn3ke/ipn3ke_flow.c\n@@ -18,6 +18,12 @@\n #include <rte_malloc.h>\n #include <rte_eth_ctrl.h>\n #include <rte_tailq.h>\n+#include <rte_rawdev.h>\n+#include <rte_rawdev_pmd.h>\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\"\ndiff --git a/drivers/net/ipn3ke/ipn3ke_rawdev_api.h b/drivers/net/ipn3ke/ipn3ke_rawdev_api.h\nindex 671fae8..fd2393f 100644\n--- a/drivers/net/ipn3ke/ipn3ke_rawdev_api.h\n+++ b/drivers/net/ipn3ke/ipn3ke_rawdev_api.h\n@@ -59,4 +59,16 @@ struct ifpga_rawdevg_link_info {\n \tenum ifpga_rawdev_link_speed link_speed;\n };\n \n+struct ipn3ke_pub_func {\n+\tstruct ifpga_rawdev *(*get_ifpga_rawdev)(const struct rte_rawdev *rdv);\n+\tint (*set_i40e_sw_dev)(uint16_t port_id, struct rte_eth_dev *sw_dev);\n+};\n+\n+/**\n+ * @internal\n+ * The publid functions of bridge PAC N3000 FPGA and I40e.\n+ */\n+extern struct ipn3ke_pub_func ipn3ke_bridge_func;\n+\n+\n #endif /* _IFPGA_RAWDEV_H_ */\ndiff --git a/drivers/net/ipn3ke/ipn3ke_representor.c b/drivers/net/ipn3ke/ipn3ke_representor.c\nindex d37f5e2..8d9ebef 100644\n--- a/drivers/net/ipn3ke/ipn3ke_representor.c\n+++ b/drivers/net/ipn3ke/ipn3ke_representor.c\n@@ -2914,12 +2914,18 @@ static uint16_t ipn3ke_rpst_recv_pkts(__rte_unused void *rx_q,\n \tif (representor_param->port_id >= representor_param->hw->port_num)\n \t\treturn -ENODEV;\n \n+\tif (ipn3ke_bridge_func.set_i40e_sw_dev == NULL)\n+\t\treturn -ENOMEM;\n+\n \trpst->ethdev = ethdev;\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\tipn3ke_bridge_func.set_i40e_sw_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) {\ndiff --git a/drivers/net/ipn3ke/rte_pmd_ipn3ke_version.map b/drivers/net/ipn3ke/rte_pmd_ipn3ke_version.map\nindex fc8c95e..fbb74ee 100644\n--- a/drivers/net/ipn3ke/rte_pmd_ipn3ke_version.map\n+++ b/drivers/net/ipn3ke/rte_pmd_ipn3ke_version.map\n@@ -2,3 +2,9 @@ DPDK_19.05 {\n \n \tlocal: *;\n };\n+\n+EXPERIMENTAL {\n+\tglobal:\n+\n+\tipn3ke_bridge_func;\n+} DPDK_19.05;\ndiff --git a/drivers/raw/ifpga/Makefile b/drivers/raw/ifpga/Makefile\nindex 655b292..8fcdb09 100644\n--- a/drivers/raw/ifpga/Makefile\n+++ b/drivers/raw/ifpga/Makefile\n@@ -13,6 +13,7 @@ CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n CFLAGS += -I$(RTE_SDK)/drivers/bus/ifpga\n CFLAGS += -I$(RTE_SDK)/drivers/raw/ifpga_rawdev\n+CFLAGS += -I$(RTE_SDK)/drivers/net/i40e\n CFLAGS += -I$(RTE_SDK)/drivers/net/ipn3ke\n LDLIBS += -lrte_eal\n LDLIBS += -lrte_rawdev\n@@ -20,6 +21,10 @@ LDLIBS += -lrte_bus_vdev\n LDLIBS += -lrte_kvargs\n LDLIBS += -lrte_bus_pci\n LDLIBS += -lrte_bus_ifpga\n+LDLIBS += -lpthread\n+LDLIBS += -lfdt\n+LDLIBS += -lrte_pmd_i40e\n+LDLIBS += -lrte_pmd_ipn3ke\n \n EXPORT_MAP := rte_rawdev_ifpga_version.map\n \ndiff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers/raw/ifpga/ifpga_rawdev.c\nindex 8d633e0..c6c69c2 100644\n--- a/drivers/raw/ifpga/ifpga_rawdev.c\n+++ b/drivers/raw/ifpga/ifpga_rawdev.c\n@@ -28,6 +28,7 @@\n #include <rte_common.h>\n #include <rte_bus_vdev.h>\n #include <rte_string_fns.h>\n+#include <rte_pmd_i40e.h>\n \n #include \"base/opae_hw_api.h\"\n #include \"base/opae_ifpga_hw_api.h\"\n@@ -1364,6 +1365,9 @@ static int ifpga_register_fme_interrupt(struct opae_manager *mgr)\n \t\tgoto cleanup;\n \t}\n \n+\tipn3ke_bridge_func.get_ifpga_rawdev = ifpga_rawdev_get;\n+\tipn3ke_bridge_func.set_i40e_sw_dev = rte_pmd_i40e_set_switch_dev;\n+\n \tdev = ifpga_rawdev_allocate(rawdev);\n \tif (dev == NULL) {\n \t\tIFPGA_RAWDEV_PMD_ERR(\"Unable to allocate ifpga_rawdevice\");\ndiff --git a/drivers/raw/ifpga/meson.build b/drivers/raw/ifpga/meson.build\nindex 69debff..c3459e2 100644\n--- a/drivers/raw/ifpga/meson.build\n+++ b/drivers/raw/ifpga/meson.build\n@@ -16,14 +16,15 @@ if build\n \tsubdir('base')\n \tobjs = [base_objs]\n \n-\tdeps += ['rawdev', 'pci', 'bus_pci', 'kvargs',\n-\t\t'bus_vdev', 'bus_ifpga', 'net']\n+\tdeps += ['ethdev', 'rawdev', 'pci', 'bus_pci', 'kvargs',\n+\t\t'bus_vdev', 'bus_ifpga', 'net', 'i40e', 'ipn3ke']\n \text_deps += dep\n \n \tsources = files('ifpga_rawdev.c')\n \n \tincludes += include_directories('base')\n \tincludes += include_directories('../../net/ipn3ke')\n+\tincludes += include_directories('../../net/i40e')\n \n \tallow_experimental_apis = true\n endif\n",
    "prefixes": [
        "v18",
        "12/19"
    ]
}