List comments

GET /api/patches/74633/comments/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

[
    {
        "id": 118259,
        "web_url": "https://patches.dpdk.org/comment/118259/",
        "msgid": "<DM5PR12MB1161ED0676B62B92F0F7ABB9DC290@DM5PR12MB1161.namprd12.prod.outlook.com>",
        "date": "2020-09-08T08:14:17",
        "subject": "Re: [dpdk-dev] [PATCH v4 3/3] eal/windows: librte_net build on\n Windows",
        "submitter": {
            "id": 1908,
            "url": "https://patches.dpdk.org/api/people/1908/",
            "name": "Ophir Munk",
            "email": "ophirmu@nvidia.com"
        },
        "content": "Please add IPPROTO_ICMP and IPPROTO_ICMPV6 definitions:\n\n#define IPPROTO_IP 0\n+#define IPPROTO_ICMP 1             /* Internet Ctrl Message Protocol */\n #define IPPROTO_HOPOPTS 0\n@@ -17,6 +18,7 @@\n#define IPPROTO_AH 51              /* IP6 Auth Header */\n+#define IPPROTO_ICMPV6 58          /* Internet Ctrl Message Protocol V6 */\n #define IPPROTO_NONE 59            /* IPv6 no next header */\n\n> -----Original Message-----\n> From: dev <dev-bounces@dpdk.org> On Behalf Of Fady Bader\n> Sent: Thursday, July 23, 2020 10:08 AM\n> To: dev@dpdk.org\n> Cc: Thomas Monjalon <thomas@monjalon.net>; Tasnim Bashar\n> <tbashar@mellanox.com>; Tal Shnaiderman <talshn@mellanox.com>;\n> Yohad Tor <yohadt@mellanox.com>; dmitry.kozliuk@gmail.com;\n> harini.ramakrishnan@microsoft.com; ocardona@microsoft.com;\n> pallavi.kadam@intel.com; ranjit.menon@intel.com;\n> olivier.matz@6wind.com\n> Subject: [dpdk-dev] [PATCH v4 3/3] eal/windows: librte_net build on\n> Windows\n> \n> librte_net wasn't compiling under Windows.\n> To solve this, needed header files were added.\n> \n> Signed-off-by: Fady Bader <fady@mellanox.com>\n> ---\n>  lib/librte_eal/windows/include/netinet/in.h | 23\n> +++++++++++++++++++++++  lib/librte_eal/windows/include/netinet/ip.h |\n> 10 ++++++++++\n>  lib/librte_net/rte_ether.c                  |  4 ++++\n>  lib/meson.build                             |  2 +-\n>  4 files changed, 38 insertions(+), 1 deletion(-)  create mode 100644\n> lib/librte_eal/windows/include/netinet/in.h\n>  create mode 100644 lib/librte_eal/windows/include/netinet/ip.h\n> \n> diff --git a/lib/librte_eal/windows/include/netinet/in.h\n> b/lib/librte_eal/windows/include/netinet/in.h\n> new file mode 100644\n> index 0000000000..2be25c8bea\n> --- /dev/null\n> +++ b/lib/librte_eal/windows/include/netinet/in.h\n> @@ -0,0 +1,23 @@\n> +/* SPDX-License-Identifier: BSD-3-Clause\n> + * Copyright 2020 Mellanox Technologies, Ltd  */\n> +\n> +#ifndef _IN_H_\n> +#define _IN_H_\n> +\n> +#define IPPROTO_IP 0               /* Dummy for IP */\n> +#define IPPROTO_HOPOPTS 0          /* IPv6 Hop-by-Hop options */\n> +#define IPPROTO_IPIP 4             /* IPIP tunnels (for compatibility) */\n> +#define IPPROTO_TCP 6              /* Transmission Control Protocol */\n> +#define IPPROTO_UDP 17             /* User Datagram Protocol */\n> +#define IPPROTO_IPV6 41            /* IPv6 header */\n> +#define IPPROTO_ROUTING 43         /* IPv6 routing header */\n> +#define IPPROTO_FRAGMENT 44        /* IPv6 fragmentation header */\n> +#define IPPROTO_GRE 47             /* General Routing Encap */\n> +#define IPPROTO_ESP 50             /* IPsec Encap Sec. Payload */\n> +#define IPPROTO_AH 51              /* IPsec Auth Header */\n> +#define IPPROTO_NONE 59            /* IPv6 no next header */\n> +#define IPPROTO_DSTOPTS 60         /* IPv6 destination option */\n> +#define IPPROTO_SCTP 132           /* Stream Control Transmission Protocol\n> */\n> +\n> +#endif\n> diff --git a/lib/librte_eal/windows/include/netinet/ip.h\n> b/lib/librte_eal/windows/include/netinet/ip.h\n> new file mode 100644\n> index 0000000000..2126498797\n> --- /dev/null\n> +++ b/lib/librte_eal/windows/include/netinet/ip.h\n> @@ -0,0 +1,10 @@\n> +/* SPDX-License-Identifier: BSD-3-Clause\n> + * Copyright 2020 Mellanox Technologies, Ltd  */\n> +\n> +#ifndef _IP_H_\n> +#define _IP_H_\n> +\n> +#define IPVERSION 4\n> +\n> +#endif\n> diff --git a/lib/librte_net/rte_ether.c b/lib/librte_net/rte_ether.c index\n> ced65ed9f3..6055ae1463 100644\n> --- a/lib/librte_net/rte_ether.c\n> +++ b/lib/librte_net/rte_ether.c\n> @@ -10,12 +10,16 @@\n>  void\n>  rte_eth_random_addr(uint8_t *addr)\n>  {\n> +#ifdef RTE_EXEC_ENV_WINDOWS\n> +\tRTE_SET_USED(addr); /* random is not supported yet */ #else\n>  \tuint64_t rand = rte_rand();\n>  \tuint8_t *p = (uint8_t *)&rand;\n> \n>  \trte_memcpy(addr, p, RTE_ETHER_ADDR_LEN);\n>  \taddr[0] &= (uint8_t)~RTE_ETHER_GROUP_ADDR;\t/* clear\n> multicast bit */\n>  \taddr[0] |= RTE_ETHER_LOCAL_ADMIN_ADDR;\t/* set local\n> assignment bit */\n> +#endif\n>  }\n> \n>  void\n> diff --git a/lib/meson.build b/lib/meson.build index 3852c01564..6bbaf242a9\n> 100644\n> --- a/lib/meson.build\n> +++ b/lib/meson.build\n> @@ -40,7 +40,7 @@ if is_windows\n>  \t\t'kvargs',\n>  \t\t'eal',\n>  \t\t'ring',\n> -\t\t'mempool', 'mbuf', 'pci',\n> +\t\t'mempool', 'mbuf', 'pci', 'net',\n>  \t] # only supported libraries for windows  endif\n> \n> --\n> 2.16.1.windows.4",
        "headers": {
            "Accept-Language": "en-US",
            "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1;\n t=1599552868; bh=wIHLfQAJGZRNSrYRL9+DGaMvqQxuMFVH87rxbrpT58A=;\n h=X-PGP-Universal:ARC-Seal:ARC-Message-Signature:\n ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:\n Thread-Index:Date:Message-ID:References:In-Reply-To:\n Accept-Language:Content-Language:X-MS-Has-Attach:\n X-MS-TNEF-Correlator:authentication-results:x-originating-ip:\n x-ms-publictraffictype:x-ms-office365-filtering-correlation-id:\n x-ms-traffictypediagnostic:x-ld-processed:\n x-microsoft-antispam-prvs:x-ms-exchange-transport-forked:\n x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck:\n x-microsoft-antispam:x-microsoft-antispam-message-info:\n x-forefront-antispam-report:x-ms-exchange-antispam-messagedata:\n Content-Type:Content-Transfer-Encoding:MIME-Version:\n X-MS-Exchange-CrossTenant-AuthAs:\n X-MS-Exchange-CrossTenant-AuthSource:\n X-MS-Exchange-CrossTenant-Network-Message-Id:\n X-MS-Exchange-CrossTenant-originalarrivaltime:\n X-MS-Exchange-CrossTenant-fromentityheader:\n X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype:\n X-MS-Exchange-CrossTenant-userprincipalname:\n X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg;\n b=j4GctahVmqypuym6DqmKMotjzUr96jiY48phRx7CGHHzwnMhmFpnklW9EVRWCDLvO\n AZvEFj8Cdud3as7LDoPB3DlhA/Vx2f8oLunMNCpB1brCpwn9YUSm9OyCZqv5LYU2hT\n YHfpmJJ8AzhapZng3hEVltJhsZvK6p577SBnfJlMtB6TZAnLzORKmeGFuLLP9As4Ks\n ielD5sefnPHjSJQAu5MiR7a1Nhx/IAXenemrZeGx/jhGto6WDM3s/dsff4L/zj+oTZ\n Yy4UoRHzI8fE6kAlFkh6jhWXJlQGKYKUv4oVex6r1uJsBefCCeMfksgF86DSiV1FIH\n cXmmJLFhsN1vw==",
            "x-ms-oob-tlc-oobclassifiers": "OLM:2582;",
            "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DM5PR1201MB0219",
            "authentication-results": "mellanox.com; dkim=none (message not signed)\n header.d=none;mellanox.com; dmarc=none action=none header.from=nvidia.com;",
            "x-ld-processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr",
            "Precedence": "list",
            "X-Mailman-Version": "2.1.15",
            "List-Post": "<mailto:dev@dpdk.org>",
            "x-ms-exchange-senderadcheck": "1",
            "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
            "Subject": "Re: [dpdk-dev] [PATCH v4 3/3] eal/windows: librte_net build on\n Windows",
            "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
            "Sender": "\"dev\" <dev-bounces@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 6FB54A04AA;\n\tTue,  8 Sep 2020 10:14:32 +0200 (CEST)",
                "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C79462BAB;\n\tTue,  8 Sep 2020 10:14:31 +0200 (CEST)",
                "from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4])\n by dpdk.org (Postfix) with ESMTP id DA3F82BA8\n for <dev@dpdk.org>; Tue,  8 Sep 2020 10:14:29 +0200 (CEST)",
                "from hkpgpgate101.nvidia.com (Not Verified[10.18.92.100]) by\n nat-hk.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA)\n id <B5f573d640000>; Tue, 08 Sep 2020 16:14:28 +0800",
                "from HKMAIL101.nvidia.com ([10.18.16.10])\n by hkpgpgate101.nvidia.com (PGP Universal service);\n Tue, 08 Sep 2020 01:14:28 -0700",
                "from HKMAIL102.nvidia.com (10.18.16.11) by HKMAIL101.nvidia.com\n (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 8 Sep\n 2020 08:14:19 +0000",
                "from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168)\n by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id\n 15.0.1473.3 via Frontend Transport; Tue, 8 Sep 2020 08:14:19 +0000",
                "from DM5PR12MB1161.namprd12.prod.outlook.com (2603:10b6:3:73::16) by\n DM5PR1201MB0219.namprd12.prod.outlook.com (2603:10b6:4:56::19) with\n Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.3370.16; Tue, 8 Sep 2020 08:14:17 +0000",
                "from DM5PR12MB1161.namprd12.prod.outlook.com\n ([fe80::b0b9:2a96:7ad7:9a93]) by DM5PR12MB1161.namprd12.prod.outlook.com\n ([fe80::b0b9:2a96:7ad7:9a93%8]) with mapi id 15.20.3370.016; Tue, 8 Sep 2020\n 08:14:17 +0000"
            ],
            "x-originating-ip": "[84.229.96.120]",
            "x-microsoft-antispam": "BCL:0;",
            "x-ms-exchange-transport-forked": "True",
            "X-MS-Exchange-CrossTenant-AuthSource": "DM5PR12MB1161.namprd12.prod.outlook.com",
            "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=wIHLfQAJGZRNSrYRL9+DGaMvqQxuMFVH87rxbrpT58A=;\n b=HEVqZyqRf0SZxlHmDcRuWiCaZEfjtL4mbw+KyLy2B1FaNw51f1ssrb/J0Q0AGhpsLqBlhvahAOG1ZJ+DYXL5BKWbde0a3d7ymFRiEw91b9OcP4/FgxnKybr1qB1B9oAuVjfstN0FP2UtuwgXlSmKsJa70HcE8VYiFI1T0ppuGF5wPVu7iwGHkTqerIayzvKGeb138FRQkg7EgTd0BDauqcW475JMnQbZrP1PS0cKbWGkzz+lmzose3/mUD0V7mqUQAmm5kCaD05czeI7BOkjxPAeGomGvj2tmUkV5U/IFvb+mzSQB4h9dLP8uANeUXkgqX+vnXWfb/PL2puYKhGjgg==",
            "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
            "X-MS-Exchange-CrossTenant-mailboxtype": "HOSTED",
            "Message-ID": "\n <DM5PR12MB1161ED0676B62B92F0F7ABB9DC290@DM5PR12MB1161.namprd12.prod.outlook.com>",
            "X-MS-Exchange-CrossTenant-userprincipalname": "\n uU5GvRbq4mwZwm4FOu+2IXXIs8fVWQb1Zoa0H7QENP1avG+DNeJ12o9c8VEQ3VmZZuo1BQF0lVRvQpu9Mi60eQ==",
            "To": "Fady Bader <fady@mellanox.com>, \"dev@dpdk.org\" <dev@dpdk.org>",
            "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
            "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
            "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
            "x-ms-publictraffictype": "Email",
            "Return-Path": "<dev-bounces@dpdk.org>",
            "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com;\n dkim=pass header.d=nvidia.com; arc=none",
            "X-MS-TNEF-Correlator": "",
            "Thread-Index": "AQHWafPR/gDmjV5bO0yP0kabnEs09alem2/g",
            "CC": "NBU-Contact-Thomas Monjalon <thomas@monjalon.net>, Tasnim Bashar\n <tbashar@mellanox.com>, Tal Shnaiderman <talshn@mellanox.com>, Yohad Tor\n <yohadt@mellanox.com>, \"dmitry.kozliuk@gmail.com\" <dmitry.kozliuk@gmail.com>,\n \"harini.ramakrishnan@microsoft.com\" <harini.ramakrishnan@microsoft.com>,\n \"ocardona@microsoft.com\" <ocardona@microsoft.com>, \"pallavi.kadam@intel.com\"\n <pallavi.kadam@intel.com>, \"ranjit.menon@intel.com\" <ranjit.menon@intel.com>,\n \"olivier.matz@6wind.com\" <olivier.matz@6wind.com>",
            "X-OriginatorOrg": "Nvidia.com",
            "Thread-Topic": "[dpdk-dev] [PATCH v4 3/3] eal/windows: librte_net build on\n Windows",
            "X-Original-To": "patchwork@inbox.dpdk.org",
            "x-microsoft-antispam-message-info": "\n iDsL3/ODetLlVK1J8uEu6WSD/seY+xq+oLlX09HeGrhEqSgpZH2iEgDXUcfq14yWWR1d0km/qLUCOQhSMF9Gv5b+DYgA8YWX0dUDo8Un0lzDGPSr7PT0rQb/WcCrwz36gg+Y4bdRvgiNbyVHkgF+iEHGUQO5vN4UrxAb9s2bc6IpSWLwBfEiCwDH0i6swJa72wGWR4BkeOCHNUOZUjwbCcIcznFcdQA2F+oNx/XzlaEVMVBvg7FdG9zsXVFFBtPNVF/ml4YvKeximCfyC6hP8Di4+HQjV66MpQhXq0Wx3G4C+QBW9Yh15VcDh5s10XBXqtlaDp/tC+tzJLxX0/3m7w==",
            "x-ms-traffictypediagnostic": "DM5PR1201MB0219:",
            "X-PGP-Universal": "processed;\n by hkpgpgate101.nvidia.com on Tue, 08 Sep 2020 01:14:28 -0700",
            "MIME-Version": "1.0",
            "In-Reply-To": "<20200723070825.6448-4-fady@mellanox.com>",
            "X-BeenThere": "dev@dpdk.org",
            "References": "<20200610120040.17968-1-fady@mellanox.com>\n <20200723070825.6448-1-fady@mellanox.com>\n <20200723070825.6448-4-fady@mellanox.com>",
            "Content-Type": "text/plain; charset=\"us-ascii\"",
            "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
            "X-MS-Exchange-CrossTenant-id": "43083d15-7273-40c1-b7db-39efd9ccc17a",
            "x-ms-office365-filtering-correlation-id": "9db7653a-9f73-4b8e-7ea6-08d853cf2e48",
            "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 9db7653a-9f73-4b8e-7ea6-08d853cf2e48",
            "Date": "Tue, 8 Sep 2020 08:14:17 +0000",
            "Content-Transfer-Encoding": "quoted-printable",
            "x-forefront-antispam-report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:DM5PR12MB1161.namprd12.prod.outlook.com; PTR:; CAT:NONE;\n SFS:(4636009)(366004)(39860400002)(136003)(396003)(376002)(346002)(66556008)(64756008)(66446008)(55016002)(5660300002)(8936002)(66946007)(76116006)(478600001)(186003)(45080400002)(26005)(86362001)(8676002)(4326008)(7696005)(53546011)(71200400001)(6506007)(316002)(2906002)(66476007)(83380400001)(54906003)(110136005)(9686003)(33656002)(52536014)(66574015);\n DIR:OUT; SFP:1101;",
            "X-MS-Has-Attach": "",
            "x-ms-exchange-antispam-messagedata": "\n eVUuVGYbRoXPzDv2xaA/I01V267kqQ0KnQbVSWC6Te08b8mWmK8LnMDK8facPip0DyPI/7qxvYdiIKsHFw6xAlg6o97mZVTs0rXRG2a/Y3qicA0Kk/B9qnzsQc1uu09XWz7WB9WfwjPb0fOK7+2zNBQeoVEs16fmtEUgyJM4Gd2E+z7+Uc6PMf2Xc0b07rgBiqZI/ziJhmvFHVj3xtMpBSZaegAi/GQoOTtB+DzF1QBztTl/0Mbhn6Tk+0yDDVWi6SrswS0UkVUXYs0ROJlcPaoWlR79d4YUzab9SCedv+lG18pCGfI5DqoBL6rf+enifTwFg8hZ6Xb3AZdccKSf00aFBTKNyDgOqLcpicGjp/Q0WbKjkRn6JZlolICFJxDZ8vYBFcAgP/+Q6WKg3ZLWjIlpiXwXVY7NQf8VMD9TDdZ2mnDdz/DxT10/IgyKboSJHgwdXyyAgvhDRYbZTooB9uL75IGcVwJbRPw7O/D0fBtm29gSrJAQul945DCxejo7Fl6rYvIvRLxuyOdlFeHbswwnp6A2IqnCGoIoKpgyUBVinSi4q0PWay/DhvrXTkk2JS7b0RcF+I6DGqHF1/hyZSAj8VB3M1ZjJQLxk8JlSRcZREgV44zhM95tmBpToo9/fZzniImXoO+DY7JqEq1fcQ==",
            "X-MS-Exchange-CrossTenant-originalarrivaltime": "08 Sep 2020 08:14:17.0694 (UTC)",
            "Content-Language": "en-US",
            "Errors-To": "dev-bounces@dpdk.org",
            "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=eaP/jDLhKHlXw9xHgulkBPRqyClx7iiHtCzkBtAUDEGiD93oAdRIgukntMhHcISO7OWj2Fx/8hrRXdFAAEx/DERtv+XTehgOXDVebrwmNG/q6SQTUzMO42uJaFYfqjeQYEwqcVcHIzfsKvjNCj3uTgjumznzKePC85CM+Pw7j2HO/MBJaB3pALnJbO/LPS0dpmcOo6OpSH8/LXZ5O/hXcYQZjzD0hBd5yehi7nES6vTias4PsPJBYa80dLXejQe1RDEk/vVlVQDQT8gS0bg27UqTuMYXs7KRN2xlmA6LYgyQM3yrwd5FuhXILyOaTgmUB0rpcvXVOHbIfPpYBzcQPQ==",
            "x-microsoft-antispam-prvs": "\n <DM5PR1201MB02192A0712DAAE1A61F8E786DC290@DM5PR1201MB0219.namprd12.prod.outlook.com>",
            "From": "Ophir Munk <ophirmu@nvidia.com>"
        }
    }
]