get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 13501,
    "url": "https://patches.dpdk.org/api/patches/13501/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1465804960-2846-2-git-send-email-zhe.tao@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": "<1465804960-2846-2-git-send-email-zhe.tao@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1465804960-2846-2-git-send-email-zhe.tao@intel.com",
    "date": "2016-06-13T08:02:37",
    "name": "[dpdk-dev,v10,1/3] i40e: support floating VEB config",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "50ec7a1b86f2438caf30c853cadcbfa8f4b977db",
    "submitter": {
        "id": 276,
        "url": "https://patches.dpdk.org/api/people/276/?format=api",
        "name": "Zhe Tao",
        "email": "zhe.tao@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/1465804960-2846-2-git-send-email-zhe.tao@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/13501/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/13501/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 9C0475320;\n\tMon, 13 Jun 2016 10:03:06 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 54B0147D1\n\tfor <dev@dpdk.org>; Mon, 13 Jun 2016 10:03:04 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby orsmga102.jf.intel.com with ESMTP; 13 Jun 2016 01:03:03 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby FMSMGA003.fm.intel.com with ESMTP; 13 Jun 2016 01:03:02 -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 u5D831xJ012976;\n\tMon, 13 Jun 2016 16:03:01 +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 u5D82vRn002887; Mon, 13 Jun 2016 16:02:59 +0800",
            "(from zhetao@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id u5D82v1t002883; \n\tMon, 13 Jun 2016 16:02:57 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.26,466,1459839600\"; d=\"scan'208\";a=\"718142795\"",
        "From": "Zhe Tao <zhe.tao@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "zhe.tao@intel.com, jingjing.wu@intel.com",
        "Date": "Mon, 13 Jun 2016 16:02:37 +0800",
        "Message-Id": "<1465804960-2846-2-git-send-email-zhe.tao@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1465804960-2846-1-git-send-email-zhe.tao@intel.com>",
        "References": "<1465800350-2024-1-git-send-email-zhe.tao@intel.com>\n\t<1465804960-2846-1-git-send-email-zhe.tao@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v10 1/3] i40e: support floating VEB config",
        "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": "Add the new floating related argument option in the devarg.\nUsing this parameter, all the samples can decide whether to use legacy VEB/VEPA\nor floating VEB.\nTo enable this feature, the user should pass a devargs parameter to the EAL\nlike \"-w 84:00.0,enable_floatingVEB=1\", and the application will make sure the PMD\nwill use the floating VEB feature for all the VFs created by this PF device.\n\nAll the VEB/VEPA concepts are not specific for FVL, they are defined in the\n802.1Qbg spec.\n\nBut for floating VEB, it has two major difference.\n1. doesn't has a up link connection which means\nthe traffic cannot go to ouside world.\n2. doesn't need to connect to the phsical port which means\nwhen the physical link is down the floating VEB can still works\nfine.\n\nSigned-off-by: Zhe Tao <zhe.tao@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 44 ++++++++++++++++++++++++++++++++++++++++++\n drivers/net/i40e/i40e_ethdev.h |  6 ++++++\n 2 files changed, 50 insertions(+)",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 24777d5..8c4ae1c 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -750,6 +750,44 @@ i40e_add_tx_flow_control_drop_filter(struct i40e_pf *pf)\n \t\t\t\t  \" frames from VSIs.\");\n }\n \n+static int i40e_check_floating_handler(__rte_unused const char *key,\n+\t\t\t\t       const char *value,\n+\t\t\t\t       __rte_unused void *opaque)\n+{\n+\tif (strcmp(value, \"1\"))\n+\t\treturn -1;\n+\n+\treturn 0;\n+}\n+\n+static int\n+i40e_check_floating(struct rte_devargs *devargs)\n+{\n+\tstruct rte_kvargs *kvlist;\n+\tconst char *floating_key = \"enable_floatingVEB\";\n+\n+\tif (devargs == NULL)\n+\t\treturn 0;\n+\n+\tkvlist = rte_kvargs_parse(devargs->args, NULL);\n+\tif (kvlist == NULL)\n+\t\treturn 0;\n+\n+\tif (!rte_kvargs_count(kvlist, floating_key)) {\n+\t\trte_kvargs_free(kvlist);\n+\t\treturn 0;\n+\t}\n+\t/* Floating is enabled when there's key-value: enable_floatingVEB=1 */\n+\tif (rte_kvargs_process(kvlist, floating_key,\n+\t\t\t       i40e_check_floating_handler, NULL) < 0) {\n+\t\trte_kvargs_free(kvlist);\n+\t\treturn 0;\n+\t}\n+\trte_kvargs_free(kvlist);\n+\n+\treturn 1;\n+}\n+\n static int\n eth_i40e_dev_init(struct rte_eth_dev *dev)\n {\n@@ -843,6 +881,12 @@ eth_i40e_dev_init(struct rte_eth_dev *dev)\n \t\t     ((hw->nvm.version >> 4) & 0xff),\n \t\t     (hw->nvm.version & 0xf), hw->nvm.eetrack);\n \n+\t/* Need the special FW version support floating VEB */\n+\tif (hw->aq.fw_maj_ver >= FLOATING_FW_MAJ) {\n+\t\tpf->floating = i40e_check_floating(pci_dev->devargs);\n+\t} else {\n+\t\tpf->floating = false;\n+\t}\n \t/* Clear PXE mode */\n \ti40e_clear_pxe_mode(hw);\n \ndiff --git a/drivers/net/i40e/i40e_ethdev.h b/drivers/net/i40e/i40e_ethdev.h\nindex cfd2399..8297c5f 100644\n--- a/drivers/net/i40e/i40e_ethdev.h\n+++ b/drivers/net/i40e/i40e_ethdev.h\n@@ -36,6 +36,7 @@\n \n #include <rte_eth_ctrl.h>\n #include <rte_time.h>\n+#include <rte_kvargs.h>\n \n #define I40E_VLAN_TAG_SIZE        4\n \n@@ -171,6 +172,10 @@ enum i40e_flxpld_layer_idx {\n #define I40E_QUEUE_ITR_INTERVAL_DEFAULT 32 /* 32 us */\n #define I40E_QUEUE_ITR_INTERVAL_MAX     8160 /* 8160 us */\n \n+/* Special FW support this floating VEB feature */\n+#define FLOATING_FW_MAJ 5\n+#define FLOATING_FW_MIN 0\n+\n struct i40e_adapter;\n \n /**\n@@ -450,6 +455,7 @@ struct i40e_pf {\n \tstruct i40e_fc_conf fc_conf; /* Flow control conf */\n \tstruct i40e_mirror_rule_list mirror_list;\n \tuint16_t nb_mirror_rule;   /* The number of mirror rules */\n+\tuint16_t floating; /* The flag to use the floating VEB */\n };\n \n enum pending_msg {\n",
    "prefixes": [
        "dpdk-dev",
        "v10",
        "1/3"
    ]
}