Show a patch.

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

{
    "id": 73503,
    "url": "https://patches.dpdk.org/api/patches/73503/",
    "web_url": "https://patches.dpdk.org/patch/73503/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200708124307.99093-1-zhirun.yan@intel.com>",
    "date": "2020-07-08T12:43:07",
    "name": "net/ice/base: add SRC MAC field support for FD",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "fcc2c624bcfbe84ac1bcc00fdf2e98e5026271df",
    "submitter": {
        "id": 1154,
        "url": "https://patches.dpdk.org/api/people/1154/",
        "name": "Zhirun Yan",
        "email": "zhirun.yan@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73503/mbox/",
    "series": [
        {
            "id": 10875,
            "url": "https://patches.dpdk.org/api/series/10875/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10875",
            "date": "2020-07-08T12:43:07",
            "name": "net/ice/base: add SRC MAC field support for FD",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/10875/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73503/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73503/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "IronPort-SDR": [
            "\n dd77b7jGVvt85EVgcUF0U86k8lWtsiIcO2LE4oJBV9LFi/77Cu+6yxTbwUOUJpYzYArVaJF75U\n tuDA9tG2xDWg==",
            "\n mAynkfy9rOSdvI8HJ1T18Jivk18MU7t9onY4LiH/RdFvYT7GQM1AROiGlz7jOm4OrIV9waA4se\n 70VJ9rfIuIkw=="
        ],
        "X-Mailer": "git-send-email 2.17.1",
        "To": "qi.z.zhang@intel.com",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C814CA00BE;\n\tWed,  8 Jul 2020 06:49:04 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9E56B1DEA9;\n\tWed,  8 Jul 2020 06:49:04 +0200 (CEST)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id D91D21DE8D\n for <dev@dpdk.org>; Wed,  8 Jul 2020 06:49:03 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Jul 2020 21:49:02 -0700",
            "from dpdk-zhirun-dev.sh.intel.com ([10.67.118.152])\n by orsmga008.jf.intel.com with ESMTP; 07 Jul 2020 21:49:00 -0700"
        ],
        "X-BeenThere": "dev@dpdk.org",
        "X-Amp-File-Uploaded": "False",
        "Subject": "[dpdk-dev] [PATCH] net/ice/base: add SRC MAC field support for FD",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Cc": "yahui.cao@intel.com, simei.su@intel.com, xiao.w.wang@intel.com,\n dev@dpdk.org, Zhirun Yan <zhirun.yan@intel.com>",
        "X-ExtLoop1": "1",
        "Precedence": "list",
        "From": "Zhirun Yan <zhirun.yan@intel.com>",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9675\"; a=\"212684384\"",
            "E=Sophos;i=\"5.75,326,1589266800\"; d=\"scan'208\";a=\"212684384\"",
            "E=Sophos;i=\"5.75,326,1589266800\"; d=\"scan'208\";a=\"314528007\""
        ],
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Message-Id": "<20200708124307.99093-1-zhirun.yan@intel.com>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Date": "Wed,  8 Jul 2020 12:43:07 +0000",
        "X-Mailman-Version": "2.1.15"
    },
    "content": "Add src MAC address field support, so that SRC MAC field in L2 can\nbe matched when set Flow Director filter with SRC MAC address.\n\nSigned-off-by: Zhirun Yan <zhirun.yan@intel.com>\n---\n drivers/net/ice/base/ice_fdir.c | 1 +\n drivers/net/ice/base/ice_fdir.h | 1 +\n 2 files changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/base/ice_fdir.c b/drivers/net/ice/base/ice_fdir.c\nindex b1dc2afb7..2c47fb57b 100644\n--- a/drivers/net/ice/base/ice_fdir.c\n+++ b/drivers/net/ice/base/ice_fdir.c\n@@ -1023,6 +1023,7 @@ ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input,\n \t\tice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos);\n \t\tice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl);\n \t\tice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac);\n+\t\tice_pkt_insert_mac_addr(loc + ETH_ALEN, input->ext_data.src_mac);\n \t\tbreak;\n \tcase ICE_FLTR_PTYPE_NONF_IPV4_SCTP:\n \t\tice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,\ndiff --git a/drivers/net/ice/base/ice_fdir.h b/drivers/net/ice/base/ice_fdir.h\nindex ad3e11a5b..7e00bb273 100644\n--- a/drivers/net/ice/base/ice_fdir.h\n+++ b/drivers/net/ice/base/ice_fdir.h\n@@ -165,6 +165,7 @@ struct ice_fdir_l2tpv3 {\n \n struct ice_fdir_extra {\n \tu8 dst_mac[ETH_ALEN];\t/* dest MAC address */\n+\tu8 src_mac[ETH_ALEN];\t/* src MAC address */\n \t__be16 ether_type;      /* for NON_IP_L2 */\n \tu32 usr_def[2];\t\t/* user data */\n \t__be16 vlan_type;\t/* VLAN ethertype */\n",
    "prefixes": []
}