get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 136390,
    "url": "http://patches.dpdk.org/api/patches/136390/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240205180328.131019-4-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": "<20240205180328.131019-4-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240205180328.131019-4-stephen@networkplumber.org",
    "date": "2024-02-05T17:43:31",
    "name": "[v9,03/23] examples/ptp: replace terms master and slave",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "817aa62a81ab2222858db290717219c300248c69",
    "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/20240205180328.131019-4-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 31003,
            "url": "http://patches.dpdk.org/api/series/31003/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31003",
            "date": "2024-02-05T17:43:28",
            "name": "Use inclusive naming in DPDK",
            "version": 9,
            "mbox": "http://patches.dpdk.org/series/31003/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/136390/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/136390/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 BE22743A3D;\n\tMon,  5 Feb 2024 19:04:02 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1B3FF40E36;\n\tMon,  5 Feb 2024 19:03:44 +0100 (CET)",
            "from mail-pl1-f176.google.com (mail-pl1-f176.google.com\n [209.85.214.176])\n by mails.dpdk.org (Postfix) with ESMTP id 1A18C40DF6\n for <dev@dpdk.org>; Mon,  5 Feb 2024 19:03:42 +0100 (CET)",
            "by mail-pl1-f176.google.com with SMTP id\n d9443c01a7336-1d72f71f222so37528365ad.1\n for <dev@dpdk.org>; Mon, 05 Feb 2024 10:03:42 -0800 (PST)",
            "from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141])\n by smtp.gmail.com with ESMTPSA id\n x8-20020a170902b40800b001d9b0a15bbfsm144867plr.262.2024.02.05.10.03.40\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 05 Feb 2024 10:03:40 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1707156221;\n x=1707761021; darn=dpdk.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=VXOXU50fnLBP+CKN25gJEh16oaeo3cGMEGYk3PHbOHc=;\n b=aSymfJVEoALWCGaRQLoZ4EWuQDIS8owVR6J5vHdZTe3VJCZZ+XYk1Ky+EK9e7TAeXv\n rw56JUxgkD68j3105n0VxlatnXgRppApM47cY9KouuxM2xcA51nnBU1y7uL5pSJZaePe\n 8TRwpfJJB4UbU6ZD9ejgR8EY7pi24TFYySU4DLSJhYqKx1TTM5RhIMLxCYBQoXmNjTK4\n jEWx07O7olzyhGOyjeNlgBM8T1djRWIWyWHp+jcgjtbPW0wpKye6JYK+cNKUJrnziFiR\n hctgcsvb5BkUzWAE9JBPoJ+jRdTOLiTt4+s5Q7SvyOiNQpcR82dLcI+ui7lBItLfaRFT\n 9XfQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1707156221; x=1707761021;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=VXOXU50fnLBP+CKN25gJEh16oaeo3cGMEGYk3PHbOHc=;\n b=TBopVCOjQIVHTr2za9M+wtw2gn/Yt3UyvAjsfcW91SI/rBpdYj7X5ZE2ND4slk2jDS\n Tee0d7VauIC4B+T1jD8xnaVSXOyUAwy3Bsee7E2NAPObOUMPcbZYEodOvlgbib3IeG4u\n tTsFjV4oQ5dLbHoMiCm78qcVo+FQMRCLy4PvbusKdaeFK0BI/6EMxU23Rvg8mmDyZiJH\n jb4CpgF+PUXskWxgYZmo3EB+qQiOrs6UfUQznhi6Tyw9vj/kwMWCb3P7N0Dl7SP0+bJn\n r/+2qzUCpw8BD+s4gG+4XMZhr7QljalP2Xic05VSgPByaFZcj+9Zy7GQKXQ0Yurd/FW1\n fYoA==",
        "X-Gm-Message-State": "AOJu0Yx3k4rWy4CBG9MfYEhiKw0CONHqKMv6LkMk3zCI7+F3K5vrhldE\n 9mm+39IT7+H9PFZfHVbIBqu/ogZkpsadqrx6aZfauDcFGYWG1pieFhi2Eh8n9OJDi88Qun16AR7\n rLuQ=",
        "X-Google-Smtp-Source": "\n AGHT+IHmfRJh5jixOYf+ccKMqv4xNWDISXEJgo4fw3Ee7EOW2hnT574+4Exvfu7dinf8DnHujTBmNA==",
        "X-Received": "by 2002:a17:903:189:b0:1d9:a780:393d with SMTP id\n z9-20020a170903018900b001d9a780393dmr367297plg.8.1707156221201;\n Mon, 05 Feb 2024 10:03:41 -0800 (PST)",
        "X-Forwarded-Encrypted": "i=0;\n AJvYcCVX/NLAMgkoUE6M+vFdCU8SjRAABSNpVbB0fG/rEmHWxe/Tg3BzYBggiK6Buo5rOiopD1a2Wh2N+SsdGFrc/tBbzS4KRyg5a6IYvoS9+bdlLrIZJoHQvpmHuLHfZg7oQ+5Dbuo8GZcajqdf1BO61qsqhovP5+2JAZ53+oqaJnbw5oIfDX4=",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Somnath Kotur <somnath.kotur@broadcom.com>,\n Ajit Khaparde <ajit.khaparde@broadcom.com>,\n Kirill Rybalchenko <kirill.rybalchenko@intel.com>",
        "Subject": "[PATCH v9 03/23] examples/ptp: replace terms master and slave",
        "Date": "Mon,  5 Feb 2024 09:43:31 -0800",
        "Message-ID": "<20240205180328.131019-4-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20240205180328.131019-1-stephen@networkplumber.org>",
        "References": "<0230331200824.195294-1-stephen@networkplumber.org>\n <20240205180328.131019-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "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 1588 standard has been updated to remove the use\nof master-slave terminolgy. Use the terms recommended by\nIEEE 1588g-2022 amendment:\n\n  In place of the term “master”, use the term “timeTransmitter”.\n  In place of the term “slave”, use the term “timeReceiver”.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\nReviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>\n---\n doc/guides/nics/bnxt.rst                   |  8 ++--\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             | 54 +++++++++++-----------\n 5 files changed, 51 insertions(+), 48 deletions(-)",
    "diff": "diff --git a/doc/guides/nics/bnxt.rst b/doc/guides/nics/bnxt.rst\nindex 6db880d632f8..8b9fcd25583d 100644\n--- a/doc/guides/nics/bnxt.rst\n+++ b/doc/guides/nics/bnxt.rst\n@@ -538,10 +538,12 @@ 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\n+PTP timeTransmitter.\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\n+PTP timeTransmitter 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..41869bc4c959 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\">timeTransmitter</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\">timeReceiver</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..5453df57667a 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+  timeTransmitter 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..242c9628eaff 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\n+timeTransmitter 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 timeTransmitter 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 timeReceiver 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 timeReceiver 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 timeReceiver clock.\n+* ``-T 1``: Update the PTP timeReceiver 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 timeReceiver\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 timeReceiver 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 timeReceiver clock.\ndiff --git a/examples/ptpclient/ptpclient.c b/examples/ptpclient/ptpclient.c\nindex 2535d848a1e9..7ba7a3cb02c0 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_timeReceiver_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 transmitter_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_timeReceiver_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_timeReceiver_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(\"TimeTransmitter Clock id: %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\",\n+\t\tptp_data->transmitter_clock_id.id[0],\n+\t\tptp_data->transmitter_clock_id.id[1],\n+\t\tptp_data->transmitter_clock_id.id[2],\n+\t\tptp_data->transmitter_clock_id.id[3],\n+\t\tptp_data->transmitter_clock_id.id[4],\n+\t\tptp_data->transmitter_clock_id.id[5],\n+\t\tptp_data->transmitter_clock_id.id[6],\n+\t\tptp_data->transmitter_clock_id.id[7]);\n+\n+\tprintf(\"\\nT2 - TimeReceiver  Clock.  %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 - TimeTransmitter Clock.  %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 - TimeReceiver  Clock.  %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 - TimeTransmitter Clock.  %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 timeTransmitter and timeReceiver 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_timeReceiver_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_timeReceiver_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->transmitter_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_timeReceiver_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 = rte_pktmbuf_mtod_offset(m, struct ptp_header *,\n \t\t\t\t\t  sizeof(struct rte_ether_hdr));\n-\tif (memcmp(&ptp_data->master_clock_id,\n+\tif (memcmp(&ptp_data->transmitter_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_timeReceiver_ordinary *ptp_data)\n {\n \tstruct rte_mbuf *m = ptp_data->m;\n \tstruct ptp_message *ptp_msg;\n@@ -568,7 +568,7 @@ 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+/* This function processes PTP packets, implementing timeReceiver PTP IEEE1588 L2\n  * functionality.\n  */\n \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_timeReceiver_ordinary));\n \n \t/* Parse specific arguments. 8< */\n \targc -= ret;\n",
    "prefixes": [
        "v9",
        "03/23"
    ]
}