get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 85295,
    "url": "https://patches.dpdk.org/api/patches/85295/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201217092312.27033-17-stevex.yang@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": "<20201217092312.27033-17-stevex.yang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201217092312.27033-17-stevex.yang@intel.com",
    "date": "2020-12-17T09:23:06",
    "name": "[v2,16/22] net/ixgbe: fix the jumbo frame flag condition",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "515d313bb3fca1f556f82fc3ccd7f2005660c2a5",
    "submitter": {
        "id": 1883,
        "url": "https://patches.dpdk.org/api/people/1883/?format=api",
        "name": "Steve Yang",
        "email": "stevex.yang@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20201217092312.27033-17-stevex.yang@intel.com/mbox/",
    "series": [
        {
            "id": 14344,
            "url": "https://patches.dpdk.org/api/series/14344/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14344",
            "date": "2020-12-17T09:22:50",
            "name": "fix rx packets dropped issue",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/14344/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/85295/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/85295/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 41931A09F0;\n\tThu, 17 Dec 2020 10:35:28 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 85D41CA3A;\n\tThu, 17 Dec 2020 10:35:14 +0100 (CET)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id 63897CA3A\n for <dev@dpdk.org>; Thu, 17 Dec 2020 10:35:12 +0100 (CET)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Dec 2020 01:35:10 -0800",
            "from intel-npg-odc-srv01.cd.intel.com ([10.240.178.136])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Dec 2020 01:34:46 -0800"
        ],
        "IronPort-SDR": [
            "\n ad1vQaxz+51IOoXsyQfQ8kvdRJ85gW4ulmwan7EgN84H03BpiKGe4VOv+IA/22DioVcpIHS/OH\n A3ibIguL67Bw==",
            "\n aOquo6DVvrnGZ3HnpaFj5jsm4UDFC0UafhX3QlDxbPMjEWwv1CKb1WzhCtBV+ODh93CWyV+Bf0\n 5L0fnn+fESyg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9837\"; a=\"154447679\"",
            "E=Sophos;i=\"5.78,426,1599548400\"; d=\"scan'208\";a=\"154447679\"",
            "E=Sophos;i=\"5.78,426,1599548400\"; d=\"scan'208\";a=\"369759692\""
        ],
        "From": "Steve Yang <stevex.yang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "wenzhuo.lu@intel.com, beilei.xing@intel.com, bernard.iremonger@intel.com,\n asomalap@amd.com, rahul.lakkireddy@chelsio.com, hemant.agrawal@nxp.com,\n sachin.saxena@oss.nxp.com, jia.guo@intel.com, haiyue.wang@intel.com,\n g.singh@nxp.com, xuanziyang2@huawei.com, cloud.wangxiaoyun@huawei.com,\n zhouguoyang@huawei.com, xavier.huwei@huawei.com, humin29@huawei.com,\n yisen.zhuang@huawei.com, oulijun@huawei.com, jingjing.wu@intel.com,\n qiming.yang@intel.com, qi.z.zhang@intel.com, rosen.xu@intel.com,\n sthotton@marvell.com, srinivasan@marvell.com, heinrich.kuhn@netronome.com,\n hkalra@marvell.com, jerinj@marvell.com, ndabilpuram@marvell.com,\n kirankumark@marvell.com, rmody@marvell.com, shshaikh@marvell.com,\n andrew.rybchenko@oktetlabs.ru, mczekaj@marvell.com, thomas@monjalon.net,\n ferruh.yigit@intel.com, ivan.boule@6wind.com, konstantin.ananyev@intel.com,\n samuel.gauthier@6wind.com, david.marchand@6wind.com, shahafs@mellanox.com,\n stephen@networkplumber.org, maxime.coquelin@redhat.com,\n olivier.matz@6wind.com, lihuisong@huawei.com, shreyansh.jain@nxp.com,\n wei.dai@intel.com, fengchunsong@huawei.com, chenhao164@huawei.com,\n tangchengchang@hisilicon.com, helin.zhang@intel.com, yanglong.wu@intel.com,\n xiaolong.ye@intel.com, ting.xu@intel.com, xiaoyun.li@intel.com,\n dan.wei@intel.com, andy.pei@intel.com, vattunuru@marvell.com,\n skori@marvell.com, sony.chacko@qlogic.com, bruce.richardson@intel.com,\n ivan.malov@oktetlabs.ru, rad@semihalf.com, slawomir.rosek@semihalf.com,\n kamil.rytarowski@caviumnetworks.com, wei.zhao1@intel.com,\n junyux.jiang@intel.com, kumaras@chelsio.com, girish.nandibasappa@amd.com,\n rolf.neugebauer@netronome.com, alejandro.lucero@netronome.com,\n Steve Yang <stevex.yang@intel.com>",
        "Date": "Thu, 17 Dec 2020 09:23:06 +0000",
        "Message-Id": "<20201217092312.27033-17-stevex.yang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20201217092312.27033-1-stevex.yang@intel.com>",
        "References": "<20201209031628.29572-1-stevex.yang@intel.com>\n <20201217092312.27033-1-stevex.yang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 16/22] net/ixgbe: fix the jumbo frame flag\n\tcondition",
        "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 jumbo frame uses the 'RTE_ETHER_MAX_LEN' as boundary condition.\nIf the Ether overhead is larger than 18 when it supports VLAN tag,\nthat will cause the jumbo flag rx offload is wrong when MTU size is\n'RTE_ETHER_MTU'.\n\nThis fix will normalize the boundary condition with 'RTE_ETHER_MTU'\nand overhead even though current overhead is 18.\n\nFixes: 59d0ecdbf0e1 (\"ethdev: MTU accessors\")\nFixes: 95a27b3ba5f5 (\"net/ixgbe: enable jumbo frame for VF\")\n\nSigned-off-by: Steve Yang <stevex.yang@intel.com>\n---\n drivers/net/ixgbe/ixgbe_ethdev.c | 2 +-\n drivers/net/ixgbe/ixgbe_ethdev.h | 3 +++\n drivers/net/ixgbe/ixgbe_pf.c     | 2 +-\n 3 files changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c\nindex d7a1806ab8..fa0f5afd03 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.c\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.c\n@@ -5173,7 +5173,7 @@ ixgbe_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)\n \thlreg0 = IXGBE_READ_REG(hw, IXGBE_HLREG0);\n \n \t/* switch to jumbo mode if needed */\n-\tif (frame_size > RTE_ETHER_MAX_LEN) {\n+\tif (frame_size > IXGBE_ETH_MAX_LEN) {\n \t\tdev->data->dev_conf.rxmode.offloads |=\n \t\t\tDEV_RX_OFFLOAD_JUMBO_FRAME;\n \t\thlreg0 |= IXGBE_HLREG0_JUMBOEN;\ndiff --git a/drivers/net/ixgbe/ixgbe_ethdev.h b/drivers/net/ixgbe/ixgbe_ethdev.h\nindex 3d35ea791b..a0ce18ca24 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.h\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.h\n@@ -104,6 +104,9 @@\n /* The overhead from MTU to max frame size. */\n #define IXGBE_ETH_OVERHEAD (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN)\n \n+/* The max frame size with default MTU */\n+#define IXGBE_ETH_MAX_LEN  (RTE_ETHER_MTU + IXGBE_ETH_OVERHEAD)\n+\n /* bit of VXLAN tunnel type | 7 bits of zeros  | 8 bits of zeros*/\n #define IXGBE_FDIR_VXLAN_TUNNEL_TYPE    0x8000\n /* bit of NVGRE tunnel type | 7 bits of zeros  | 8 bits of zeros*/\ndiff --git a/drivers/net/ixgbe/ixgbe_pf.c b/drivers/net/ixgbe/ixgbe_pf.c\nindex 833863af5a..89698e8470 100644\n--- a/drivers/net/ixgbe/ixgbe_pf.c\n+++ b/drivers/net/ixgbe/ixgbe_pf.c\n@@ -575,7 +575,7 @@ ixgbe_set_vf_lpe(struct rte_eth_dev *dev, __rte_unused uint32_t vf, uint32_t *ms\n \t\t   IXGBE_MHADD_MFS_MASK) >> IXGBE_MHADD_MFS_SHIFT;\n \tif (max_frs < new_mtu) {\n \t\thlreg0 = IXGBE_READ_REG(hw, IXGBE_HLREG0);\n-\t\tif (new_mtu > RTE_ETHER_MAX_LEN) {\n+\t\tif (new_mtu > IXGBE_ETH_MAX_LEN) {\n \t\t\tdev->data->dev_conf.rxmode.offloads |=\n \t\t\t\tDEV_RX_OFFLOAD_JUMBO_FRAME;\n \t\t\thlreg0 |= IXGBE_HLREG0_JUMBOEN;\n",
    "prefixes": [
        "v2",
        "16/22"
    ]
}