get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 127133,
    "url": "http://patches.dpdk.org/api/patches/127133/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230519181549.4341-1-stephen@networkplumber.org/",
    "project": {
        "id": 1,
        "url": "http://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": "<20230519181549.4341-1-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230519181549.4341-1-stephen@networkplumber.org",
    "date": "2023-05-19T18:15:49",
    "name": "ptp: replace terms master/slave",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0efaf4f767945631adf9acd0fe2d0f2da28f3ddb",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230519181549.4341-1-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 28093,
            "url": "http://patches.dpdk.org/api/series/28093/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28093",
            "date": "2023-05-19T18:15:49",
            "name": "ptp: replace terms master/slave",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/28093/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/127133/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/127133/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 48C7C42B4C;\n\tFri, 19 May 2023 20:15:54 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1FD8B40E25;\n\tFri, 19 May 2023 20:15:54 +0200 (CEST)",
            "from mail-pl1-f177.google.com (mail-pl1-f177.google.com\n [209.85.214.177])\n by mails.dpdk.org (Postfix) with ESMTP id 3DF5A40E09\n for <dev@dpdk.org>; Fri, 19 May 2023 20:15:53 +0200 (CEST)",
            "by mail-pl1-f177.google.com with SMTP id\n d9443c01a7336-1ae8ecb4f9aso3389925ad.1\n for <dev@dpdk.org>; Fri, 19 May 2023 11:15:53 -0700 (PDT)",
            "from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218])\n by smtp.gmail.com with ESMTPSA id\n v9-20020a17090ac90900b0023b3d80c76csm1795584pjt.4.2023.05.19.11.15.51\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 19 May 2023 11:15:51 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1684520152;\n x=1687112152;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=npPdY0XT9O6rhiLS7BQfmgV6PIXuxuGXkrZcRolKcwM=;\n b=x2VDrvIJTL9ma8BYbmS/J4SI92jnrUh2Won3a48IC6pHnaNeh9afbIUZ5ZeWImBwja\n +WEbtGfAmxkPydQ1qx+wQoplX0BCTu1c5fm8yFuSlrA0LMNBhtq6q7wAfUw5AQuPSFzZ\n nei6sz7rYLfKkuPH2lg7Gxt9Rlcj0rhUg7jS9F1tCJ1eRmlmxMlBbmEc5Hl0wB57Dt3F\n JkAhURyeosVJERhJMK/fNIsM1gdCEjRG50DNcnAnjwKij8+n1kCCka+Q3p9s1SY97IF8\n cXrEgVgUx5hGvIoN3xAvgT2hQyk340zfbNktEdhQ2lKL5NUD+HwABRBBonB9JjWws6BQ\n U6Mw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1684520152; x=1687112152;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=npPdY0XT9O6rhiLS7BQfmgV6PIXuxuGXkrZcRolKcwM=;\n b=VGPd6byfSmg7yVL6Ev5Zj8dOeLauVv7M/NxOogfmeYqA+PNazTnmghMQ4/ZldvaHiG\n TGFdi1u9pu2Aq+j8nLXehpwQiykFYh5zhYu6QBoMUAMML5vx4IK/akUmC4t3qMkZoNNl\n 3uwzJ7XFQXxHMnaiO76hlxrJXqdy4VwccNWxVRtFnc+WchjZ0+5otBAwWJSfLpC+bb+a\n V9vSQnf9cFliUzNFasNidW3303eN8Q/f4leiUalgw2PNgve9TrZd4GHzX8kubFDnUN7E\n zBoyQYcDnGjCjzD1veR+1oIeolHB5J3YxPt5QQVJM76Dx6+LgtX608Sovgb0SW8DCNb/\n +U7w==",
        "X-Gm-Message-State": "AC+VfDw5wPjvCshZZCoMlnxrhJB3m+NRZ520eZdslDQgg0Zg9KXxgS9s\n HjP2ELo3Zv6ta9RfoRhZcFmaVqVcY98QQwUWtEiqVQ==",
        "X-Google-Smtp-Source": "\n ACHHUZ7mPN5+tjKEGmkj3UBC5SN1FEWn0lkbIkJm2QN1yA1X3FvzEsHaM8xKhXCsxrVy3x644tKAvQ==",
        "X-Received": "by 2002:a17:902:bf0a:b0:1ab:26a8:5401 with SMTP id\n bi10-20020a170902bf0a00b001ab26a85401mr3102743plb.31.1684520151989;\n Fri, 19 May 2023 11:15:51 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Ajit Khaparde <ajit.khaparde@broadcom.com>,\n Somnath Kotur <somnath.kotur@broadcom.com>,\n Kirill Rybalchenko <kirill.rybalchenko@intel.com>",
        "Subject": "[PATCH] ptp: replace terms master/slave",
        "Date": "Fri, 19 May 2023 11:15:49 -0700",
        "Message-Id": "<20230519181549.4341-1-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.39.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "The IEEE has revised the naming in PTP protocol.\nUse these new terms to replace master and slave.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n doc/guides/nics/bnxt.rst                   |  7 +--\n doc/guides/sample_app_ug/img/ptpclient.svg |  4 +-\n doc/guides/sample_app_ug/intro.rst         |  4 +-\n doc/guides/sample_app_ug/ptpclient.rst     | 29 +++++------\n examples/ptpclient/ptpclient.c             | 56 +++++++++++-----------\n 5 files changed, 51 insertions(+), 49 deletions(-)",
    "diff": "diff --git a/doc/guides/nics/bnxt.rst b/doc/guides/nics/bnxt.rst\nindex 0b09b0c50a7b..bb126689c204 100644\n--- a/doc/guides/nics/bnxt.rst\n+++ b/doc/guides/nics/bnxt.rst\n@@ -538,10 +538,11 @@ Time Synchronization\n ~~~~~~~~~~~~~~~~~~~~\n \n System operators may run a PTP (Precision Time Protocol) client application to\n-synchronize the time on the NIC (and optionally, on the system) to a PTP master.\n+synchronize the time on the NIC (and optionally, on the system) to a PTP time transmitter.\n \n-The BNXT PMD supports a PTP client application to communicate with a PTP master\n-clock using DPDK IEEE1588 APIs. Note that the PTP client application needs to\n+The BNXT PMD supports a PTP client application to communicate with a PTP time\n+transmitter using DPDK IEEE1588 APIs.\n+Note that the PTP client application needs to\n run on PF and vector mode needs to be disabled.\n \n .. code-block:: console\ndiff --git a/doc/guides/sample_app_ug/img/ptpclient.svg b/doc/guides/sample_app_ug/img/ptpclient.svg\nindex fd78ef839b91..aaf49ea274b1 100644\n--- a/doc/guides/sample_app_ug/img/ptpclient.svg\n+++ b/doc/guides/sample_app_ug/img/ptpclient.svg\n@@ -488,7 +488,7 @@\n          sodipodi:role=\"line\"\n          id=\"tspan7096\"\n          x=\"38.764343\"\n-         y=\"590.47479\">master</tspan></text>\n+         y=\"590.47479\">sender</tspan></text>\n     <text\n        xml:space=\"preserve\"\n        style=\"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:47.51625061px;line-height:100%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"\n@@ -510,7 +510,7 @@\n          sodipodi:role=\"line\"\n          id=\"tspan7104\"\n          x=\"271.23392\"\n-         y=\"593.71478\">slave</tspan></text>\n+         y=\"593.71478\">receiver</tspan></text>\n     <text\n        xml:space=\"preserve\"\n        style=\"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20.3917141px;line-height:125%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#800080;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\"\ndiff --git a/doc/guides/sample_app_ug/intro.rst b/doc/guides/sample_app_ug/intro.rst\nindex e765f1fd6b12..aaa064ea63d6 100644\n--- a/doc/guides/sample_app_ug/intro.rst\n+++ b/doc/guides/sample_app_ug/intro.rst\n@@ -85,8 +85,8 @@ examples are highlighted below.\n * :doc:`Precision Time Protocol (PTP) client<ptpclient>`: The PTP\n   client is another minimal implementation of a real world application.\n   In this case the application is a PTP client that communicates with a PTP\n-  master clock to synchronize time on a Network Interface Card (NIC) using the\n-  IEEE1588 protocol.\n+  time transmitter to synchronize time on a Network Interface Card (NIC)\n+  using the IEEE1588 protocol.\n \n * :doc:`Quality of Service (QoS) Scheduler<qos_scheduler>`: The QoS\n   Scheduler application demonstrates the use of DPDK to provide QoS scheduling.\ndiff --git a/doc/guides/sample_app_ug/ptpclient.rst b/doc/guides/sample_app_ug/ptpclient.rst\nindex d47e942738d0..ef8846f27436 100644\n--- a/doc/guides/sample_app_ug/ptpclient.rst\n+++ b/doc/guides/sample_app_ug/ptpclient.rst\n@@ -5,8 +5,9 @@ PTP Client Sample Application\n =============================\n \n The PTP (Precision Time Protocol) client sample application is a simple\n-example of using the DPDK IEEE1588 API to communicate with a PTP master clock\n-to synchronize the time on the NIC and, optionally, on the Linux system.\n+example of using the DPDK IEEE1588 API to communicate with a PTP time\n+transmitter to synchronize the time on the NIC and, optionally,\n+on the Linux system.\n \n Note, PTP is a time syncing protocol and cannot be used within DPDK as a\n time-stamping mechanism. See the following for an explanation of the protocol:\n@@ -21,10 +22,10 @@ The PTP sample application is intended as a simple reference implementation of\n a PTP client using the DPDK IEEE1588 API.\n In order to keep the application simple the following assumptions are made:\n \n-* The first discovered master is the main for the session.\n+* The first discovered transmitter is the main for the session.\n * Only L2 PTP packets are supported.\n * Only the PTP v2 protocol is supported.\n-* Only the slave clock is implemented.\n+* Only the time receiver clock is implemented.\n \n \n How the Application Works\n@@ -38,12 +39,12 @@ How the Application Works\n \n The PTP synchronization in the sample application works as follows:\n \n-* Master sends *Sync* message - the slave saves it as T2.\n-* Master sends *Follow Up* message and sends time of T1.\n-* Slave sends *Delay Request* frame to PTP Master and stores T3.\n-* Master sends *Delay Response* T4 time which is time of received T3.\n+* TimeTransmitter sends *Sync* message - the TimeReceiver saves it as T2.\n+* TimeTransmitter sends *Follow Up* message and sends time of T1.\n+* TimeReceiver sends *Delay Request* frame to PTP TimeTransmitter and stores T3.\n+* TimeTransmitter sends *Delay Response* T4 time which is time of received T3.\n \n-The adjustment for slave can be represented as:\n+The adjustment for time receiver can be represented as:\n \n    adj = -[(T2-T1)-(T4 - T3)]/2\n \n@@ -71,8 +72,8 @@ Refer to *DPDK Getting Started Guide* for general information on running\n applications and the Environment Abstraction Layer (EAL) options.\n \n * ``-p portmask``: Hexadecimal portmask.\n-* ``-T 0``: Update only the PTP slave clock.\n-* ``-T 1``: Update the PTP slave clock and synchronize the Linux Kernel to the PTP clock.\n+* ``-T 0``: Update only the PTP time receiver clock.\n+* ``-T 1``: Update the PTP time receiver clock and synchronize the Linux Kernel to the PTP clock.\n \n \n Code Explanation\n@@ -178,7 +179,7 @@ The forwarding loop can be interrupted and the application closed using\n PTP parsing\n ~~~~~~~~~~~\n \n-The ``parse_ptp_frames()`` function processes PTP packets, implementing slave\n+The ``parse_ptp_frames()`` function processes PTP packets, implementing time receiver\n PTP IEEE1588 L2 functionality.\n \n .. literalinclude:: ../../../examples/ptpclient/ptpclient.c\n@@ -187,11 +188,11 @@ PTP IEEE1588 L2 functionality.\n     :end-before:  >8 End of function processes PTP packets.\n \n There are 3 types of packets on the RX path which we must parse to create a minimal\n-implementation of the PTP slave client:\n+implementation of the PTP time receiver client:\n \n * SYNC packet.\n * FOLLOW UP packet\n * DELAY RESPONSE packet.\n \n When we parse the *FOLLOW UP* packet we also create and send a *DELAY_REQUEST* packet.\n-Also when we parse the *DELAY RESPONSE* packet, and all conditions are met we adjust the PTP slave clock.\n+Also when we parse the *DELAY RESPONSE* packet, and all conditions are met we adjust the PTP time receiver clock.\ndiff --git a/examples/ptpclient/ptpclient.c b/examples/ptpclient/ptpclient.c\nindex cdf2da64dfee..d87d19c74e2f 100644\n--- a/examples/ptpclient/ptpclient.c\n+++ b/examples/ptpclient/ptpclient.c\n@@ -116,14 +116,14 @@ struct ptp_message {\n \t} __rte_packed;\n };\n \n-struct ptpv2_data_slave_ordinary {\n+struct ptpv2_receiver_ordinary {\n \tstruct rte_mbuf *m;\n \tstruct timespec tstamp1;\n \tstruct timespec tstamp2;\n \tstruct timespec tstamp3;\n \tstruct timespec tstamp4;\n \tstruct clock_id client_clock_id;\n-\tstruct clock_id master_clock_id;\n+\tstruct clock_id sender_clock_id;\n \tstruct timeval new_adj;\n \tint64_t delta;\n \tuint16_t portid;\n@@ -134,7 +134,7 @@ struct ptpv2_data_slave_ordinary {\n \tuint16_t current_ptp_port;\n };\n \n-static struct ptpv2_data_slave_ordinary ptp_data;\n+static struct ptpv2_receiver_ordinary ptp_data;\n \n static inline uint64_t timespec64_to_ns(const struct timespec *ts)\n {\n@@ -263,38 +263,38 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)\n }\n \n static void\n-print_clock_info(struct ptpv2_data_slave_ordinary *ptp_data)\n+print_clock_info(struct ptpv2_receiver_ordinary *ptp_data)\n {\n \tint64_t nsec;\n \tstruct timespec net_time, sys_time;\n \n-\tprintf(\"Master Clock id: %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\",\n-\t\tptp_data->master_clock_id.id[0],\n-\t\tptp_data->master_clock_id.id[1],\n-\t\tptp_data->master_clock_id.id[2],\n-\t\tptp_data->master_clock_id.id[3],\n-\t\tptp_data->master_clock_id.id[4],\n-\t\tptp_data->master_clock_id.id[5],\n-\t\tptp_data->master_clock_id.id[6],\n-\t\tptp_data->master_clock_id.id[7]);\n-\n-\tprintf(\"\\nT2 - Slave  Clock.  %lds %ldns\",\n+\tprintf(\"Transmitter id: %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\",\n+\t\tptp_data->sender_clock_id.id[0],\n+\t\tptp_data->sender_clock_id.id[1],\n+\t\tptp_data->sender_clock_id.id[2],\n+\t\tptp_data->sender_clock_id.id[3],\n+\t\tptp_data->sender_clock_id.id[4],\n+\t\tptp_data->sender_clock_id.id[5],\n+\t\tptp_data->sender_clock_id.id[6],\n+\t\tptp_data->sender_clock_id.id[7]);\n+\n+\tprintf(\"\\nT2 - Receiver.    %lds %ldns\",\n \t\t\t(ptp_data->tstamp2.tv_sec),\n \t\t\t(ptp_data->tstamp2.tv_nsec));\n \n-\tprintf(\"\\nT1 - Master Clock.  %lds %ldns \",\n+\tprintf(\"\\nT1 - Transmitter. %lds %ldns \",\n \t\t\tptp_data->tstamp1.tv_sec,\n \t\t\t(ptp_data->tstamp1.tv_nsec));\n \n-\tprintf(\"\\nT3 - Slave  Clock.  %lds %ldns\",\n+\tprintf(\"\\nT3 - Receiver.    %lds %ldns\",\n \t\t\tptp_data->tstamp3.tv_sec,\n \t\t\t(ptp_data->tstamp3.tv_nsec));\n \n-\tprintf(\"\\nT4 - Master Clock.  %lds %ldns \",\n+\tprintf(\"\\nT4 - Transmitter. %lds %ldns \",\n \t\t\tptp_data->tstamp4.tv_sec,\n \t\t\t(ptp_data->tstamp4.tv_nsec));\n \n-\tprintf(\"\\nDelta between master and slave clocks:%\"PRId64\"ns\\n\",\n+\tprintf(\"\\nDelta between transmitter and receiver clocks:%\"PRId64\"ns\\n\",\n \t\t\tptp_data->delta);\n \n \tclock_gettime(CLOCK_REALTIME, &sys_time);\n@@ -328,7 +328,7 @@ print_clock_info(struct ptpv2_data_slave_ordinary *ptp_data)\n }\n \n static int64_t\n-delta_eval(struct ptpv2_data_slave_ordinary *ptp_data)\n+delta_eval(struct ptpv2_receiver_ordinary *ptp_data)\n {\n \tint64_t delta;\n \tuint64_t t1 = 0;\n@@ -350,7 +350,7 @@ delta_eval(struct ptpv2_data_slave_ordinary *ptp_data)\n  * Parse the PTP SYNC message.\n  */\n static void\n-parse_sync(struct ptpv2_data_slave_ordinary *ptp_data, uint16_t rx_tstamp_idx)\n+parse_sync(struct ptpv2_receiver_ordinary *ptp_data, uint16_t rx_tstamp_idx)\n {\n \tstruct ptp_header *ptp_hdr;\n \n@@ -359,7 +359,7 @@ parse_sync(struct ptpv2_data_slave_ordinary *ptp_data, uint16_t rx_tstamp_idx)\n \tptp_data->seqID_SYNC = rte_be_to_cpu_16(ptp_hdr->seq_id);\n \n \tif (ptp_data->ptpset == 0) {\n-\t\trte_memcpy(&ptp_data->master_clock_id,\n+\t\trte_memcpy(&ptp_data->sender_clock_id,\n \t\t\t\t&ptp_hdr->source_port_id.clock_id,\n \t\t\t\tsizeof(struct clock_id));\n \t\tptp_data->ptpset = 1;\n@@ -380,7 +380,7 @@ parse_sync(struct ptpv2_data_slave_ordinary *ptp_data, uint16_t rx_tstamp_idx)\n  * Parse the PTP FOLLOWUP message and send DELAY_REQ to the main clock.\n  */\n static void\n-parse_fup(struct ptpv2_data_slave_ordinary *ptp_data)\n+parse_fup(struct ptpv2_receiver_ordinary *ptp_data)\n {\n \tstruct rte_ether_hdr *eth_hdr;\n \tstruct rte_ether_addr eth_addr;\n@@ -399,7 +399,7 @@ parse_fup(struct ptpv2_data_slave_ordinary *ptp_data)\n \teth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *);\n \tptp_hdr = (struct ptp_header *)(rte_pktmbuf_mtod(m, char *)\n \t\t\t+ sizeof(struct rte_ether_hdr));\n-\tif (memcmp(&ptp_data->master_clock_id,\n+\tif (memcmp(&ptp_data->sender_clock_id,\n \t\t\t&ptp_hdr->source_port_id.clock_id,\n \t\t\tsizeof(struct clock_id)) != 0)\n \t\treturn;\n@@ -530,7 +530,7 @@ update_kernel_time(void)\n  * Parse the DELAY_RESP message.\n  */\n static void\n-parse_drsp(struct ptpv2_data_slave_ordinary *ptp_data)\n+parse_drsp(struct ptpv2_receiver_ordinary *ptp_data)\n {\n \tstruct rte_mbuf *m = ptp_data->m;\n \tstruct ptp_message *ptp_msg;\n@@ -568,8 +568,8 @@ parse_drsp(struct ptpv2_data_slave_ordinary *ptp_data)\n \t}\n }\n \n-/* This function processes PTP packets, implementing slave PTP IEEE1588 L2\n- * functionality.\n+/* This function processes PTP packets,\n+ * implementing receiver PTP IEEE1588 L2 functionality.\n  */\n \n /* Parse ptp frames. 8< */\n@@ -753,7 +753,7 @@ main(int argc, char *argv[])\n \t\trte_exit(EXIT_FAILURE, \"Error with EAL initialization\\n\");\n \t/* >8 End of initialization of EAL. */\n \n-\tmemset(&ptp_data, '\\0', sizeof(struct ptpv2_data_slave_ordinary));\n+\tmemset(&ptp_data, '\\0', sizeof(struct ptpv2_receiver_ordinary));\n \n \t/* Parse specific arguments. 8< */\n \targc -= ret;\n",
    "prefixes": []
}