get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 116260,
    "url": "https://patches.dpdk.org/api/patches/116260/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20220914053858.11506-1-weiyuanx.li@intel.com/",
    "project": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20220914053858.11506-1-weiyuanx.li@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220914053858.11506-1-weiyuanx.li@intel.com",
    "date": "2022-09-14T05:38:55",
    "name": "[V3,1/4] tests/ice_iavf_fdir: add multicast new test case",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "be758fd21f5d38c673e939c90386d95d6a807dfe",
    "submitter": {
        "id": 2477,
        "url": "https://patches.dpdk.org/api/people/2477/?format=api",
        "name": "Weiyuan Li",
        "email": "weiyuanx.li@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20220914053858.11506-1-weiyuanx.li@intel.com/mbox/",
    "series": [
        {
            "id": 24652,
            "url": "https://patches.dpdk.org/api/series/24652/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=24652",
            "date": "2022-09-14T05:38:55",
            "name": "[V3,1/4] tests/ice_iavf_fdir: add multicast new test case",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/24652/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/116260/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/116260/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 1E983A0032;\n\tWed, 14 Sep 2022 07:38:49 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id F1D5440151;\n\tWed, 14 Sep 2022 07:38:48 +0200 (CEST)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id A9FA640141\n for <dts@dpdk.org>; Wed, 14 Sep 2022 07:38:46 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Sep 2022 22:38:45 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.248])\n by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Sep 2022 22:38:42 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1663133926; x=1694669926;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=QCo1jo8S8law7RUUgOinZ9luuUZSHTK1gR3U/m0gxyQ=;\n b=jE/7SyNUVIjAw28bnC8kIG6mVDXls+OZnH5potOk3G9gBDZ4ECW1o9Ix\n a03m11NVHsG/0mXqcslZqTrxv5oaTnZg3+lPvFFt4SjthOcUz0+8Cz2q6\n +3+XnExSdsO4CsBQw+mx7mB44sc3VzqXoKm+ZI0YkKEF+ZSaylene6el1\n wEzeg3J4S2yGJVwDX+edWcmSLKFwrMlm8CEvzxwfWAgCCrxkNjX6GHMSL\n Mn5KVEFbUpbSbsN8N1S427SMXn9E+k9gF/rjvrH0LftbRKYYQcI8VJZD7\n /Ek431vz/HDWMDlOhJ1F/8kLWhfq900WBFCJgsYJDP8RpB37E/w0fHYij Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10469\"; a=\"360080773\"",
            "E=Sophos;i=\"5.93,313,1654585200\"; d=\"scan'208\";a=\"360080773\"",
            "E=Sophos;i=\"5.93,313,1654585200\"; d=\"scan'208\";a=\"594245975\""
        ],
        "From": "Weiyuan Li <weiyuanx.li@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Weiyuan Li <weiyuanx.li@intel.com>, Jiale Song <songx.jiale@intel.com>,\n Peng Yuan <yuan.peng@intel.com>",
        "Subject": "[dts][PATCH V3 1/4] tests/ice_iavf_fdir: add multicast new test case",
        "Date": "Wed, 14 Sep 2022 13:38:55 +0800",
        "Message-Id": "<20220914053858.11506-1-weiyuanx.li@intel.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org"
    },
    "content": "Add ipv4/ipv6 multicast new case for dpdk22.07 new feature.\n\nSigned-off-by: Weiyuan Li <weiyuanx.li@intel.com>\n---\nTested-by: Jiale Song < songx.jiale@intel.com>\nAcked-by: Peng Yuan <yuan.peng@intel.com>\n\nv2:\n-modify the ice_iavf_fdir scipt tear_down method and destroy\nenvironment first.\nV3:\n-modify script and test plan disable promisc and trust mode. \n-add multicast detailes description reference.\n-modify script and test plan configure multicast address.\n\n tests/TestSuite_ice_iavf_fdir.py | 286 ++++++++++++++++++++++++++++++-\n 1 file changed, 285 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/tests/TestSuite_ice_iavf_fdir.py b/tests/TestSuite_ice_iavf_fdir.py\nindex 1cc71f67..d6ca832a 100644\n--- a/tests/TestSuite_ice_iavf_fdir.py\n+++ b/tests/TestSuite_ice_iavf_fdir.py\n@@ -29,6 +29,20 @@ MAC_IPV4_PAY = {\n     ],\n }\n \n+MAC_IPV4_PAY_MULTICAST = {\n+    \"match\": [\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", proto=255, ttl=2, tos=4) / Raw(\"X\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", proto=255, ttl=2, tos=4)/UDP(sport=22,dport=23)/Raw(\"x\" * 80)',\n+    ],\n+    \"mismatch\": [\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.22\",dst=\"224.0.0.1\", proto=255, ttl=2, tos=4) / Raw(\"X\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.2\", proto=255, ttl=2, tos=4) / Raw(\"X\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", proto=1, ttl=2, tos=4) / Raw(\"X\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", proto=255, ttl=3, tos=4) / Raw(\"X\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", proto=255, ttl=2, tos=9) / Raw(\"X\" * 80)',\n+    ],\n+}\n+\n MAC_IPV4_PAY_protocol = {\n     \"match\": [\n         'Ether(dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\",dst=\"192.168.0.21\", proto=1)/Raw(\"x\" * 80)',\n@@ -46,6 +60,23 @@ MAC_IPV4_PAY_protocol = {\n     ],\n }\n \n+MAC_IPV4_PAY_multicast_protocol = {\n+    \"match\": [\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", proto=1)/Raw(\"x\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.19\",dst=\"224.0.0.1\", proto=1)/Raw(\"x\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", ttl=2, tos=4)/UDP(sport=22,dport=23)/Raw(\"x\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", proto=17)/TCP(sport=22,dport=23)/Raw(\"x\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", proto=17, ttl=2, tos=4)/Raw(\"x\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", proto=17)/Raw(\"x\" * 80)',\n+    ],\n+    \"mismatch\": [\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.2\", proto=1)/Raw(\"x\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", proto=6)/UDP(sport=22,dport=23)/Raw(\"x\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\")/TCP(sport=22,dport=23)/Raw(\"x\" * 80)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IP(src=\"192.168.0.20\",dst=\"224.0.0.1\", ttl=2, tos=4)/SCTP()/Raw(\"x\" * 80)',\n+    ],\n+}\n+\n MAC_IPV4_UDP = {\n     \"match\": [\n         'Ether(dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\",dst=\"192.168.0.21\", ttl=2, tos=4) /UDP(sport=22,dport=23)/Raw(\"x\" * 80)'\n@@ -61,6 +92,20 @@ MAC_IPV4_UDP = {\n     ],\n }\n \n+MAC_IPV6_PAY_MULTICAST = {\n+    \"match\": [\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\", src=\"2001::2\", nh=0, tc=1, hlim=2)/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\", src=\"2001::2\", nh=0, tc=1, hlim=2)/UDP(sport=22,dport=23)/(\"X\"*480)',\n+    ],\n+    \"mismatch\": [\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::1\", src=\"2001::2\", nh=0, tc=1, hlim=2)/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\", src=\"2001::1\", nh=0, tc=1, hlim=2)/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\", src=\"2001::2\", nh=2, tc=1, hlim=2)/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\", src=\"2001::2\", nh=0, tc=2, hlim=2)/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\", src=\"2001::2\", nh=0, tc=1, hlim=5)/(\"X\"*480)',\n+    ],\n+}\n+\n MAC_IPV4_TCP = {\n     \"match\": [\n         'Ether(dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\",dst=\"192.168.0.21\", ttl=2, tos=4) /TCP(sport=22,dport=23)/Raw(\"x\" * 80)'\n@@ -121,6 +166,22 @@ MAC_IPV6_PAY_protocol = {\n     ],\n }\n \n+MAC_IPV6_PAY_multicast_protocol = {\n+    \"match\": [\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\", src=\"2001::2\", nh=17, tc=1, hlim=2)/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\")/UDP(sport=22,dport=23)/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\", nh=17)/TCP(sport=22,dport=23)/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\")/UDP(sport=22,dport=23)/TCP(sport=22,dport=23)/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\", nh=6)/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\")/TCP(sport=22,dport=23)/(\"X\"*480)',\n+    ],\n+    \"mismatch\": [\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::3\", nh=1)/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\")/SCTP()/(\"X\"*480)',\n+        'Ether(dst=\"11:22:33:44:55:66\")/IPv6(dst=\"ff01::2\", nh=1)/TCP(sport=22,dport=23)/(\"X\"*480)',\n+    ],\n+}\n+\n MAC_IPV6_UDP = {\n     \"match\": [\n         'Ether(dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"2001::2\",tc=1, hlim=2)/UDP(sport=22,dport=23)/(\"X\"*480)'\n@@ -136,6 +197,94 @@ MAC_IPV6_UDP = {\n     ],\n }\n \n+tv_mac_ipv4_pay_queue_index_multicast = {\n+    \"name\": \"test_mac_ipv4_pay_queue_index_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 224.0.0.1 proto is 255 ttl is 2 tos is 4 / end actions queue index 1 / mark / end\",\n+    \"scapy_str\": MAC_IPV4_PAY_MULTICAST,\n+    \"check_param\": {\"port_id\": 0, \"queue\": 1, \"mark_id\": 0},\n+}\n+\n+tv_mac_ipv4_pay_rss_multicast = {\n+    \"name\": \"test_mac_ipv4_pay_rss_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 224.0.0.1 proto is 255 ttl is 2 tos is 4 / end actions rss queues 2 3 end / mark / end\",\n+    \"scapy_str\": MAC_IPV4_PAY_MULTICAST,\n+    \"check_param\": {\"port_id\": 0, \"queue\": [2, 3], \"mark_id\": 0},\n+}\n+\n+tv_mac_ipv4_pay_passthru_multicast = {\n+    \"name\": \"test_mac_ipv4_pay_passthru_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 224.0.0.1 proto is 255 ttl is 2 tos is 4 / end actions passthru / mark / end\",\n+    \"scapy_str\": MAC_IPV4_PAY_MULTICAST,\n+    \"check_param\": {\"port_id\": 0, \"passthru\": 1, \"mark_id\": 0},\n+}\n+\n+tv_mac_ipv4_pay_drop_multicast = {\n+    \"name\": \"test_mac_ipv4_pay_drop_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 224.0.0.1 proto is 255 ttl is 2 tos is 4 / end actions drop / mark / end\",\n+    \"scapy_str\": MAC_IPV4_PAY_MULTICAST,\n+    \"check_param\": {\"port_id\": 0, \"drop\": 1, \"mark_id\": 0},\n+}\n+\n+tv_mac_ipv4_pay_mark_rss_multicast = {\n+    \"name\": \"test_mac_ipv4_pay_mark_rss_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 224.0.0.1 proto is 255 ttl is 2 tos is 4 / end actions mark / rss / end\",\n+    \"scapy_str\": MAC_IPV4_PAY_MULTICAST,\n+    \"check_param\": {\"port_id\": 0, \"passthru\": 1, \"mark_id\": 0},\n+}\n+\n+tv_mac_ipv4_pay_mark_multicast = {\n+    \"name\": \"test_mac_ipv4_pay_mark_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 224.0.0.1 proto is 255 ttl is 2 tos is 4 / end actions mark / end\",\n+    \"scapy_str\": MAC_IPV4_PAY_MULTICAST,\n+    \"check_param\": {\"port_id\": 0, \"mark_id\": 0},\n+}\n+\n+tv_mac_ipv6_pay_queue_index_multicast = {\n+    \"name\": \"test_mac_ipv4_pay_queue_index_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is ff01::2 src is 2001::2 proto is 0 hop is 2 tc is 1 / end actions queue index 15 / mark / end\",\n+    \"scapy_str\": MAC_IPV6_PAY_MULTICAST,\n+    \"check_param\": {\"port_id\": 0, \"queue\": 15, \"mark_id\": 0},\n+}\n+\n+tv_mac_ipv6_pay_rss_multicast = {\n+    \"name\": \"test_mac_ipv6_pay_rss_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is ff01::2 src is 2001::2 proto is 0 hop is 2 tc is 1 / end actions rss queues 8 9 10 11 12 13 14 15 end / mark / end\",\n+    \"scapy_str\": MAC_IPV6_PAY_MULTICAST,\n+    \"check_param\": {\n+        \"port_id\": 0,\n+        \"queue\": [8, 9, 10, 11, 12, 13, 14, 15],\n+        \"mark_id\": 0,\n+    },\n+}\n+\n+tv_mac_ipv6_pay_passthru_multicast = {\n+    \"name\": \"test_mac_ipv6_pay_passthru_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is ff01::2 src is 2001::2 proto is 0 hop is 2 tc is 1 / end actions passthru / mark / end\",\n+    \"scapy_str\": MAC_IPV6_PAY_MULTICAST,\n+    \"check_param\": {\"port_id\": 0, \"passthru\": 1, \"mark_id\": 0},\n+}\n+\n+tv_mac_ipv6_pay_drop_multicast = {\n+    \"name\": \"test_mac_ipv6_pay_drop_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is ff01::2 src is 2001::2 proto is 0 hop is 2 tc is 1 / end actions drop / mark / end\",\n+    \"scapy_str\": MAC_IPV6_PAY_MULTICAST,\n+    \"check_param\": {\"port_id\": 0, \"drop\": 1, \"mark_id\": 0},\n+}\n+\n+tv_mac_ipv6_pay_mark_rss_multicast = {\n+    \"name\": \"test_mac_ipv6_pay_mark_rss_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is ff01::2 src is 2001::2 proto is 0 hop is 2 tc is 1 / end actions mark / rss / end\",\n+    \"scapy_str\": MAC_IPV6_PAY_MULTICAST,\n+    \"check_param\": {\"port_id\": 0, \"passthru\": 1, \"mark_id\": 0},\n+}\n+\n+tv_mac_ipv6_pay_mark_multicast = {\n+    \"name\": \"test_mac_ipv6_pay_mark_multicast\",\n+    \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is ff01::2 src is 2001::2 proto is 0 hop is 2 tc is 1 / end actions mark / end\",\n+    \"scapy_str\": MAC_IPV6_PAY_MULTICAST,\n+    \"check_param\": {\"port_id\": 0, \"mark_id\": 0},\n+}\n+\n MAC_IPV6_TCP = {\n     \"match\": [\n         'Ether(dst=\"00:11:22:33:44:55\")/IPv6(dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\", src=\"2001::2\",tc=1, hlim=2)/TCP(sport=22,dport=23)/(\"X\"*480)'\n@@ -7223,6 +7372,15 @@ vectors_ipv4_pay = [\n     tv_mac_ipv4_pay_mark,\n ]\n \n+vectors_ipv4_pay_multicast = [\n+    tv_mac_ipv4_pay_queue_index_multicast,\n+    tv_mac_ipv4_pay_rss_multicast,\n+    tv_mac_ipv4_pay_passthru_multicast,\n+    tv_mac_ipv4_pay_drop_multicast,\n+    tv_mac_ipv4_pay_mark_rss_multicast,\n+    tv_mac_ipv4_pay_mark_multicast,\n+]\n+\n vectors_ipv4_udp = [\n     tv_mac_ipv4_udp_drop,\n     tv_mac_ipv4_udp_queue_group,\n@@ -7232,6 +7390,15 @@ vectors_ipv4_udp = [\n     tv_mac_ipv4_udp_mark,\n ]\n \n+vectors_ipv6_pay_multicast = [\n+    tv_mac_ipv6_pay_queue_index_multicast,\n+    tv_mac_ipv6_pay_rss_multicast,\n+    tv_mac_ipv6_pay_passthru_multicast,\n+    tv_mac_ipv6_pay_drop_multicast,\n+    tv_mac_ipv6_pay_mark_rss_multicast,\n+    tv_mac_ipv6_pay_mark_multicast,\n+]\n+\n vectors_ipv4_tcp = [\n     tv_mac_ipv4_tcp_drop,\n     tv_mac_ipv4_tcp_queue_group,\n@@ -8554,6 +8721,16 @@ class TestICEIAVFFdir(TestCase):\n         self.pmd_output.execute_cmd(\n             \"port config 1 rss-hash-key ipv4 1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd\"\n         )\n+        if self.running_case in [\n+            \"test_mac_ipv4_pay_multicast\",\n+            \"test_mac_ipv4_multicast_protocol\",\n+            \"test_mac_ipv6_pay_multicast\",\n+            \"test_mac_ipv6_multicast_protocol\",\n+        ]:\n+            self.pmd_output.execute_cmd(\"set promisc all off\")\n+            self.pmd_output.execute_cmd(\"set allmulti all on\")\n+            # add multicast mac address to pmd\n+            self.pmd_output.execute_cmd(\"mcast_addr add 0 11:22:33:44:55:66\")\n         res = self.pmd_output.wait_link_status_up(\"all\", timeout=15)\n         self.verify(res is True, \"there have port link is down\")\n         self.pmd_output.execute_cmd(\"start\")\n@@ -8700,6 +8877,9 @@ class TestICEIAVFFdir(TestCase):\n     def test_mac_ipv4_pay(self):\n         self.rte_flow_process(vectors_ipv4_pay)\n \n+    def test_mac_ipv4_pay_multicast(self):\n+        self.rte_flow_process(vectors_ipv4_pay_multicast)\n+\n     def test_mac_ipv4_udp(self):\n         self.rte_flow_process(vectors_ipv4_udp)\n \n@@ -8712,6 +8892,9 @@ class TestICEIAVFFdir(TestCase):\n     def test_mac_ipv6_pay(self):\n         self.rte_flow_process(vectors_ipv6_pay)\n \n+    def test_mac_ipv6_pay_multicast(self):\n+        self.rte_flow_process(vectors_ipv6_pay_multicast)\n+\n     def test_mac_ipv6_udp(self):\n         self.rte_flow_process(vectors_ipv6_udp)\n \n@@ -8828,6 +9011,53 @@ class TestICEIAVFFdir(TestCase):\n             out4, pkt_num=6, check_param={\"port_id\": 0, \"passthru\": 1}, stats=False\n         )\n \n+    def test_mac_ipv4_multicast_protocol(self):\n+        rules = [\n+            \"flow create 0 ingress pattern eth / ipv4 dst is 224.0.0.1 proto is 1 / end actions queue index 1 / mark id 1 / end\",\n+            \"flow create 0 ingress pattern eth / ipv4 dst is 224.0.0.1 proto is 17 / end actions passthru / mark id 3 / end\",\n+        ]\n+\n+        # validate rules\n+        self.validate_fdir_rule(rules, check_stats=True)\n+        self.check_fdir_rule(port_id=0, stats=False)\n+\n+        # create rules\n+        rule_li = self.create_fdir_rule(rules, check_stats=True)\n+        self.check_fdir_rule(port_id=0, rule_list=rule_li)\n+\n+        # pkt1 and pkt2 in \"match\" match rule 0, pkt3-6 match rule 1.\n+        out1 = self.send_pkts_getouput(MAC_IPV4_PAY_multicast_protocol[\"match\"][0:2])\n+        rfc.check_iavf_fdir_mark(\n+            out1,\n+            pkt_num=2,\n+            check_param={\"port_id\": 0, \"mark_id\": 1, \"queue\": 1},\n+            stats=True,\n+        )\n+\n+        out2 = self.send_pkts_getouput(MAC_IPV4_PAY_multicast_protocol[\"match\"][2:6])\n+        rfc.check_iavf_fdir_mark(\n+            out2,\n+            pkt_num=4,\n+            check_param={\"port_id\": 0, \"mark_id\": 3, \"passthru\": 1},\n+            stats=True,\n+        )\n+\n+        # send mismatched packets:\n+        out3 = self.send_pkts_getouput(MAC_IPV4_PAY_multicast_protocol[\"mismatch\"])\n+        rfc.check_iavf_fdir_mark(\n+            out3, pkt_num=4, check_param={\"port_id\": 0, \"passthru\": 1}, stats=False\n+        )\n+\n+        # destroy the rules and check there is no rule listed.\n+        self.destroy_fdir_rule(rule_id=rule_li, port_id=0)\n+        self.check_fdir_rule(port_id=0, stats=False)\n+\n+        # send matched packet\n+        out4 = self.send_pkts_getouput(MAC_IPV4_PAY_multicast_protocol[\"match\"])\n+        rfc.check_iavf_fdir_mark(\n+            out4, pkt_num=6, check_param={\"port_id\": 0, \"passthru\": 1}, stats=False\n+        )\n+\n     def test_mac_ipv6_protocol(self):\n         rules = [\n             \"flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 proto is 17 / end actions rss queues 5 6 end / mark id 0 / end\",\n@@ -8875,6 +9105,53 @@ class TestICEIAVFFdir(TestCase):\n             out4, pkt_num=6, check_param={\"port_id\": 0, \"passthru\": 1}, stats=False\n         )\n \n+    def test_mac_ipv6_multicast_protocol(self):\n+        rules = [\n+            \"flow create 0 ingress pattern eth / ipv6 dst is ff01::2 proto is 17 / end actions rss queues 5 6 end / mark id 0 / end\",\n+            \"flow create 0 ingress pattern eth / ipv6 dst is ff01::2 proto is 6 / end actions mark id 2 / rss / end\",\n+        ]\n+\n+        # validate rules\n+        self.validate_fdir_rule(rules, check_stats=True)\n+        self.check_fdir_rule(port_id=0, stats=False)\n+\n+        # create rules\n+        rule_li = self.create_fdir_rule(rules, check_stats=True)\n+        self.check_fdir_rule(port_id=0, rule_list=rule_li)\n+\n+        # pkt1-4 in \"match\" match rule 0, pkt5-6 match rule 1.\n+        out1 = self.send_pkts_getouput(MAC_IPV6_PAY_multicast_protocol[\"match\"][0:4])\n+        rfc.check_iavf_fdir_mark(\n+            out1,\n+            pkt_num=4,\n+            check_param={\"port_id\": 0, \"mark_id\": 0, \"queue\": [5, 6]},\n+            stats=True,\n+        )\n+\n+        out2 = self.send_pkts_getouput(MAC_IPV6_PAY_multicast_protocol[\"match\"][4:6])\n+        rfc.check_iavf_fdir_mark(\n+            out2,\n+            pkt_num=2,\n+            check_param={\"port_id\": 0, \"mark_id\": 2, \"passthru\": 1},\n+            stats=True,\n+        )\n+\n+        # send mismatched packets:\n+        out3 = self.send_pkts_getouput(MAC_IPV6_PAY_multicast_protocol[\"mismatch\"])\n+        rfc.check_iavf_fdir_mark(\n+            out3, pkt_num=3, check_param={\"port_id\": 0, \"passthru\": 1}, stats=False\n+        )\n+\n+        # destroy the rules and check there is no rule listed.\n+        self.destroy_fdir_rule(rule_id=rule_li, port_id=0)\n+        self.check_fdir_rule(port_id=0, stats=False)\n+\n+        # send matched packet\n+        out4 = self.send_pkts_getouput(MAC_IPV6_PAY_multicast_protocol[\"match\"])\n+        rfc.check_iavf_fdir_mark(\n+            out4, pkt_num=6, check_param={\"port_id\": 0, \"passthru\": 1}, stats=False\n+        )\n+\n     @skip_unsupported_pkg(\"os default\")\n     def test_mac_ipv4_gtpu_eh_without_teid(self):\n         rules = [\n@@ -11648,8 +11925,15 @@ class TestICEIAVFFdir(TestCase):\n \n     def tear_down(self):\n         # destroy all flow rule on port 0\n-        self.dut.kill_all()\n+        if self.running_case in [\n+            \"test_mac_ipv4_pay_multicast\",\n+            \"test_mac_ipv4_multicast_protocol\",\n+            \"test_mac_ipv6_pay_multicast\",\n+            \"test_mac_ipv6_multicast_protocol\",\n+        ]:\n+            self.pmd_output.execute_cmd(\"mcast_addr remove 0 11:22:33:44:55:66\")\n         self.destroy_env()\n+        self.dut.kill_all()\n         if getattr(self, \"session_secondary\", None):\n             self.dut.close_session(self.session_secondary)\n         if getattr(self, \"session_third\", None):\n",
    "prefixes": [
        "V3",
        "1/4"
    ]
}