From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7D45E488F4; Thu, 9 Oct 2025 21:01:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3136140297; Thu, 9 Oct 2025 21:01:38 +0200 (CEST) Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) by mails.dpdk.org (Postfix) with ESMTP id 07D144027A for ; Thu, 9 Oct 2025 21:01:37 +0200 (CEST) Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-b3e7cc84b82so253356766b.0 for ; Thu, 09 Oct 2025 12:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atomicrules-com.20230601.gappssmtp.com; s=20230601; t=1760036496; x=1760641296; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XZrzYSKABj7FV79wEH2X3hyKN8A7qzS/E0wh+olIJRM=; b=ua4wl63eV8Jcw55cGEuB+E+uY+o+ArJ0gRcr4BG4HXBPT11QgAbcjhHbiRpiQqRPY6 6UZw/POH/GGSqUjMimYQY0fLJsBHEOYi/xGM96ne78WCY5fosV6XLnOKy3JN6V5po5iY +2DvHVP0SPU5QFGW2vBAUhYPea6stbYjX/AGS1Chv8dRN9lGwS7ZxgG+peqlgf6NCZUA ik5vght6jmW81E//iYpjUpNhfzsgCMZm0gW9DvlI1CSzE/p+qCYH9v7waEBF1cK/cnQd Y64BhSPVdIYtsFzG82dIQqm583girr3Q3GGxGa2DIWX06gKJxJws/i7zBWlnKXFiiQnC iS6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760036496; x=1760641296; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XZrzYSKABj7FV79wEH2X3hyKN8A7qzS/E0wh+olIJRM=; b=IaMnl29OeSJOY29+F5Pm8Ff1oiGbqJIIfy9xWnbpbkHsUztzKohItdU/fMl2Fysljb 4f5ytwc2fBKAgdJBe0ZMarFyLpJ0D/kdrmDg4IJBXByYAqjsG5do4xwK6Zb7ctRfU2bz QjwxBk81+R8pH/0IHxCxG5V2aJTYXNWwMFJpIUUawwkrbItnPbuVGux+7Ca2OENITX2+ +GW0Ao/wunDPveiX99e46r8VEGMTAKTv7yGdjAA6xVnn8OhmAlAnwQND2VKz7XzKXogE IvGnY2zjAtc0ntojcOEKvc+x2xAlA6iNkgqEwJPRaIEn6ONb0CqA9/U4GcYp32xohcaK ykaQ== X-Gm-Message-State: AOJu0YzS1ltFcP1FBZao4v5qZ3XUPQtVlXlQOeD50oxVWeiMQVmRv5Xe BsXLqtCgq2B2ptQgv9G1S7iysuO/Qw3BjW1xJBu1wID+pAqjn0w8Q5msqqnL/CTp6soo3wzZPYZ fJ+/HQ3yaEKEAsOPO673457MfkW5ICCCQU+FiiCRZ4fnHMTA0uVI= X-Gm-Gg: ASbGncvcJZ+RR6SlaJIUSHyMl+JuAGbVP+YHeT1c1mxo/EFuqATvZgocCu+fCmhlrdJ 0wI/7vfKsJ1v+TTXaDw+qLc4QFuy/Mqig19m0RyvGp7J57hSixjTBzqp+iotJr2GyAJhbJMyRBf qL7pf0owNwv9aMYPkrSszW4fG8J8WNpOgStzejaTS10oXWEoAq97EGIQ8/72tXAoRonB0bRkQvH zJtFi2hCkjXD6usMmgBhpqJpe1/Z4Aa X-Google-Smtp-Source: AGHT+IEURAQF7y05vZtvOVisKys/IyClHbw2lW5zDhDQr+SkUeb7SBCvBl1iKP35xHF1q9iMALWeVDmv2Sw5duHAAd8= X-Received: by 2002:a17:907:1b12:b0:b3d:73e1:d809 with SMTP id a640c23a62f3a-b50ac5d0201mr964097566b.48.1760036495526; Thu, 09 Oct 2025 12:01:35 -0700 (PDT) MIME-Version: 1.0 References: <20250926163519.430680-1-stephen@networkplumber.org> In-Reply-To: <20250926163519.430680-1-stephen@networkplumber.org> From: Ed Czeck Date: Thu, 9 Oct 2025 15:01:24 -0400 X-Gm-Features: AS18NWC2nxbph6xgEQmtW-1lH-k3TgFqCZx8aYUgEeg4hO7SluPUia9R3oe0DjQ Message-ID: Subject: Re: [RFC] net/ark: use ark_ prefix on on global variables To: Stephen Hemminger Cc: dev@dpdk.org, Shepard Siegel , John Miller Content-Type: multipart/alternative; boundary="0000000000001b9c210640be6e62" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --0000000000001b9c210640be6e62 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Acked-by:Ed Czeck On Fri, Sep 26, 2025 at 12:35=E2=80=AFPM Stephen Hemminger < stephen@networkplumber.org> wrote: > > Rather than eth_ark_XXX use ark_XXX as prefix on all visible > global variables. This makes device consistent with other PMD's. > > Signed-off-by: Stephen Hemminger > --- > drivers/net/ark/ark_ethdev.c | 154 ++++++++++++++++---------------- > drivers/net/ark/ark_ethdev_rx.c | 50 +++++------ > drivers/net/ark/ark_ethdev_rx.h | 18 ++-- > drivers/net/ark/ark_ethdev_tx.c | 32 +++---- > drivers/net/ark/ark_ethdev_tx.h | 14 +-- > 5 files changed, 134 insertions(+), 134 deletions(-) > > diff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c > index 8d3c0a1b02..04a15d006f 100644 > --- a/drivers/net/ark/ark_ethdev.c > +++ b/drivers/net/ark/ark_ethdev.c > @@ -22,32 +22,32 @@ > #include "ark_pktchkr.h" > > /* Internal prototypes */ > -static int eth_ark_check_args(struct ark_adapter *ark, const char *params); > -static int eth_ark_dev_init(struct rte_eth_dev *dev); > +static int ark_check_args(struct ark_adapter *ark, const char *params); > +static int ark_dev_init(struct rte_eth_dev *dev); > static int ark_config_device(struct rte_eth_dev *dev); > -static int eth_ark_dev_uninit(struct rte_eth_dev *eth_dev); > -static int eth_ark_dev_configure(struct rte_eth_dev *dev); > -static int eth_ark_dev_start(struct rte_eth_dev *dev); > -static int eth_ark_dev_stop(struct rte_eth_dev *dev); > -static int eth_ark_dev_close(struct rte_eth_dev *dev); > -static int eth_ark_dev_info_get(struct rte_eth_dev *dev, > +static int ark_dev_uninit(struct rte_eth_dev *eth_dev); > +static int ark_dev_configure(struct rte_eth_dev *dev); > +static int ark_dev_start(struct rte_eth_dev *dev); > +static int ark_dev_stop(struct rte_eth_dev *dev); > +static int ark_dev_close(struct rte_eth_dev *dev); > +static int ark_dev_info_get(struct rte_eth_dev *dev, > struct rte_eth_dev_info *dev_info); > -static int eth_ark_dev_link_update(struct rte_eth_dev *dev, > +static int ark_dev_link_update(struct rte_eth_dev *dev, > int wait_to_complete); > -static int eth_ark_dev_set_link_up(struct rte_eth_dev *dev); > -static int eth_ark_dev_set_link_down(struct rte_eth_dev *dev); > -static int eth_ark_dev_stats_get(struct rte_eth_dev *dev, > +static int ark_dev_set_link_up(struct rte_eth_dev *dev); > +static int ark_dev_set_link_down(struct rte_eth_dev *dev); > +static int ark_dev_stats_get(struct rte_eth_dev *dev, > struct rte_eth_stats *stats); > -static int eth_ark_dev_stats_reset(struct rte_eth_dev *dev); > -static int eth_ark_set_default_mac_addr(struct rte_eth_dev *dev, > +static int ark_dev_stats_reset(struct rte_eth_dev *dev); > +static int ark_set_default_mac_addr(struct rte_eth_dev *dev, > struct rte_ether_addr *mac_addr)= ; > -static int eth_ark_macaddr_add(struct rte_eth_dev *dev, > +static int ark_macaddr_add(struct rte_eth_dev *dev, > struct rte_ether_addr *mac_addr, > uint32_t index, > uint32_t pool); > -static void eth_ark_macaddr_remove(struct rte_eth_dev *dev, > +static void ark_macaddr_remove(struct rte_eth_dev *dev, > uint32_t index); > -static int eth_ark_set_mtu(struct rte_eth_dev *dev, uint16_t size); > +static int ark_set_mtu(struct rte_eth_dev *dev, uint16_t size); > > /* > * The packet generator is a functional block used to generate packet > @@ -145,7 +145,7 @@ ark_device_caps[] =3D { > }; > > static int > -eth_ark_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, > +ark_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, > struct rte_pci_device *pci_dev) > { > struct rte_eth_dev *eth_dev; > @@ -156,7 +156,7 @@ eth_ark_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, > if (eth_dev =3D=3D NULL) > return -ENOMEM; > > - ret =3D eth_ark_dev_init(eth_dev); > + ret =3D ark_dev_init(eth_dev); > if (ret) > rte_eth_dev_release_port(eth_dev); > > @@ -164,47 +164,47 @@ eth_ark_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, > } > > static int > -eth_ark_pci_remove(struct rte_pci_device *pci_dev) > +ark_pci_remove(struct rte_pci_device *pci_dev) > { > - return rte_eth_dev_pci_generic_remove(pci_dev, eth_ark_dev_uninit); > + return rte_eth_dev_pci_generic_remove(pci_dev, ark_dev_uninit); > } > > static struct rte_pci_driver rte_ark_pmd =3D { > .id_table =3D pci_id_ark_map, > .drv_flags =3D RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC, > - .probe =3D eth_ark_pci_probe, > - .remove =3D eth_ark_pci_remove, > + .probe =3D ark_pci_probe, > + .remove =3D ark_pci_remove, > }; > > static const struct eth_dev_ops ark_eth_dev_ops =3D { > - .dev_configure =3D eth_ark_dev_configure, > - .dev_start =3D eth_ark_dev_start, > - .dev_stop =3D eth_ark_dev_stop, > - .dev_close =3D eth_ark_dev_close, > + .dev_configure =3D ark_dev_configure, > + .dev_start =3D ark_dev_start, > + .dev_stop =3D ark_dev_stop, > + .dev_close =3D ark_dev_close, > > - .dev_infos_get =3D eth_ark_dev_info_get, > + .dev_infos_get =3D ark_dev_info_get, > > - .rx_queue_setup =3D eth_ark_dev_rx_queue_setup, > - .tx_queue_setup =3D eth_ark_tx_queue_setup, > + .rx_queue_setup =3D ark_dev_rx_queue_setup, > + .tx_queue_setup =3D ark_tx_queue_setup, > > - .link_update =3D eth_ark_dev_link_update, > - .dev_set_link_up =3D eth_ark_dev_set_link_up, > - .dev_set_link_down =3D eth_ark_dev_set_link_down, > + .link_update =3D ark_dev_link_update, > + .dev_set_link_up =3D ark_dev_set_link_up, > + .dev_set_link_down =3D ark_dev_set_link_down, > > - .rx_queue_start =3D eth_ark_rx_start_queue, > - .rx_queue_stop =3D eth_ark_rx_stop_queue, > + .rx_queue_start =3D ark_rx_start_queue, > + .rx_queue_stop =3D ark_rx_stop_queue, > > - .tx_queue_start =3D eth_ark_tx_queue_start, > - .tx_queue_stop =3D eth_ark_tx_queue_stop, > + .tx_queue_start =3D ark_tx_queue_start, > + .tx_queue_stop =3D ark_tx_queue_stop, > > - .stats_get =3D eth_ark_dev_stats_get, > - .stats_reset =3D eth_ark_dev_stats_reset, > + .stats_get =3D ark_dev_stats_get, > + .stats_reset =3D ark_dev_stats_reset, > > - .mac_addr_add =3D eth_ark_macaddr_add, > - .mac_addr_remove =3D eth_ark_macaddr_remove, > - .mac_addr_set =3D eth_ark_set_default_mac_addr, > + .mac_addr_add =3D ark_macaddr_add, > + .mac_addr_remove =3D ark_macaddr_remove, > + .mac_addr_set =3D ark_set_default_mac_addr, > > - .mtu_set =3D eth_ark_set_mtu, > + .mtu_set =3D ark_set_mtu, > }; > > static int > @@ -297,7 +297,7 @@ check_for_ext(struct ark_adapter *ark) > } > > static int > -eth_ark_dev_init(struct rte_eth_dev *dev) > +ark_dev_init(struct rte_eth_dev *dev) > { > struct ark_adapter *ark =3D dev->data->dev_private; > struct rte_pci_device *pci_dev; > @@ -376,7 +376,7 @@ eth_ark_dev_init(struct rte_eth_dev *dev) > return -1; > > dev->dev_ops =3D &ark_eth_dev_ops; > - dev->rx_queue_count =3D eth_ark_dev_rx_queue_count; > + dev->rx_queue_count =3D ark_dev_rx_queue_count; > > dev->data->mac_addrs =3D rte_zmalloc("ark", RTE_ETHER_ADDR_LEN, 0= ); > if (!dev->data->mac_addrs) { > @@ -398,7 +398,7 @@ eth_ark_dev_init(struct rte_eth_dev *dev) > } > > if (pci_dev->device.devargs) > - ret =3D eth_ark_check_args(ark, pci_dev->device.devargs->args); > + ret =3D ark_check_args(ark, pci_dev->device.devargs->args= ); > else > ARK_PMD_LOG(INFO, "No Device args found\n"); > > @@ -539,7 +539,7 @@ ark_config_device(struct rte_eth_dev *dev) > } > > static int > -eth_ark_dev_uninit(struct rte_eth_dev *dev) > +ark_dev_uninit(struct rte_eth_dev *dev) > { > struct ark_adapter *ark =3D dev->data->dev_private; > > @@ -559,11 +559,11 @@ eth_ark_dev_uninit(struct rte_eth_dev *dev) > } > > static int > -eth_ark_dev_configure(struct rte_eth_dev *dev) > +ark_dev_configure(struct rte_eth_dev *dev) > { > struct ark_adapter *ark =3D dev->data->dev_private; > > - eth_ark_dev_set_link_up(dev); > + ark_dev_set_link_up(dev); > if (ark->user_ext.dev_configure) > return ark->user_ext.dev_configure(dev, > ark->user_data[dev->data->port_id]); > @@ -571,23 +571,23 @@ eth_ark_dev_configure(struct rte_eth_dev *dev) > } > > static int > -eth_ark_dev_start(struct rte_eth_dev *dev) > +ark_dev_start(struct rte_eth_dev *dev) > { > struct ark_adapter *ark =3D dev->data->dev_private; > int i; > > /* RX Side */ > for (i =3D 0; i < dev->data->nb_rx_queues; i++) > - eth_ark_rx_start_queue(dev, i); > + ark_rx_start_queue(dev, i); > > /* TX Side */ > for (i =3D 0; i < dev->data->nb_tx_queues; i++) > - eth_ark_tx_queue_start(dev, i); > + ark_tx_queue_start(dev, i); > > ark->started =3D 1; > /* set xmit and receive function */ > - dev->rx_pkt_burst =3D ð_ark_recv_pkts; > - dev->tx_pkt_burst =3D ð_ark_xmit_pkts; > + dev->rx_pkt_burst =3D &ark_recv_pkts; > + dev->tx_pkt_burst =3D &ark_xmit_pkts; > > if (!ark->isvf && ark->start_pg) > ark_pktchkr_run(ark->pc); > @@ -618,7 +618,7 @@ eth_ark_dev_start(struct rte_eth_dev *dev) > } > > static int > -eth_ark_dev_stop(struct rte_eth_dev *dev) > +ark_dev_stop(struct rte_eth_dev *dev) > { > uint16_t i; > int status; > @@ -645,11 +645,11 @@ eth_ark_dev_stop(struct rte_eth_dev *dev) > > /* Stop RX Side */ > for (i =3D 0; i < dev->data->nb_rx_queues; i++) > - eth_ark_rx_stop_queue(dev, i); > + ark_rx_stop_queue(dev, i); > > /* STOP TX Side */ > for (i =3D 0; i < dev->data->nb_tx_queues; i++) { > - status =3D eth_ark_tx_queue_stop(dev, i); > + status =3D ark_tx_queue_stop(dev, i); > if (status !=3D 0) { > uint16_t port =3D dev->data->port_id; > ARK_PMD_LOG(ERR, > @@ -662,7 +662,7 @@ eth_ark_dev_stop(struct rte_eth_dev *dev) > ark_udm_dump_stats(ark->udm.v, "Post stop"); > > for (i =3D 0; i < dev->data->nb_rx_queues; i++) > - eth_ark_rx_dump_queue(dev, i, __func__); > + ark_rx_dump_queue(dev, i, __func__); > > /* Stop the packet checker if it is running */ > if (!ark->isvf && ark->start_pg) { > @@ -674,7 +674,7 @@ eth_ark_dev_stop(struct rte_eth_dev *dev) > } > > static int > -eth_ark_dev_close(struct rte_eth_dev *dev) > +ark_dev_close(struct rte_eth_dev *dev) > { > struct ark_adapter *ark =3D dev->data->dev_private; > uint16_t i; > @@ -686,7 +686,7 @@ eth_ark_dev_close(struct rte_eth_dev *dev) > ark->user_ext.dev_close(dev, > ark->user_data[dev->data->port_id]); > > - eth_ark_dev_stop(dev); > + ark_dev_stop(dev); > > /* > * This should only be called once for the device during shutdown > @@ -696,12 +696,12 @@ eth_ark_dev_close(struct rte_eth_dev *dev) > ark_pktdir_setup(ark->pd, ARK_PKT_DIR_INIT_VAL); > > for (i =3D 0; i < dev->data->nb_tx_queues; i++) { > - eth_ark_tx_queue_release(dev->data->tx_queues[i]); > + ark_tx_queue_release(dev->data->tx_queues[i]); > dev->data->tx_queues[i] =3D 0; > } > > for (i =3D 0; i < dev->data->nb_rx_queues; i++) { > - eth_ark_dev_rx_queue_release(dev->data->rx_queues[i]); > + ark_dev_rx_queue_release(dev->data->rx_queues[i]); > dev->data->rx_queues[i] =3D 0; > } > > @@ -709,7 +709,7 @@ eth_ark_dev_close(struct rte_eth_dev *dev) > } > > static int > -eth_ark_dev_info_get(struct rte_eth_dev *dev, > +ark_dev_info_get(struct rte_eth_dev *dev, > struct rte_eth_dev_info *dev_info) > { > struct ark_adapter *ark =3D dev->data->dev_private; > @@ -749,7 +749,7 @@ eth_ark_dev_info_get(struct rte_eth_dev *dev, > } > > static int > -eth_ark_dev_link_update(struct rte_eth_dev *dev, int wait_to_complete) > +ark_dev_link_update(struct rte_eth_dev *dev, int wait_to_complete) > { > ARK_PMD_LOG(DEBUG, "link status =3D %d\n", > dev->data->dev_link.link_status); > @@ -764,7 +764,7 @@ eth_ark_dev_link_update(struct rte_eth_dev *dev, int wait_to_complete) > } > > static int > -eth_ark_dev_set_link_up(struct rte_eth_dev *dev) > +ark_dev_set_link_up(struct rte_eth_dev *dev) > { > dev->data->dev_link.link_status =3D 1; > struct ark_adapter *ark =3D dev->data->dev_private; > @@ -776,7 +776,7 @@ eth_ark_dev_set_link_up(struct rte_eth_dev *dev) > } > > static int > -eth_ark_dev_set_link_down(struct rte_eth_dev *dev) > +ark_dev_set_link_down(struct rte_eth_dev *dev) > { > dev->data->dev_link.link_status =3D 0; > struct ark_adapter *ark =3D dev->data->dev_private; > @@ -788,7 +788,7 @@ eth_ark_dev_set_link_down(struct rte_eth_dev *dev) > } > > static int > -eth_ark_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) > +ark_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) > { > uint16_t i; > struct ark_adapter *ark =3D dev->data->dev_private; > @@ -801,9 +801,9 @@ eth_ark_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) > stats->oerrors =3D 0; > > for (i =3D 0; i < dev->data->nb_tx_queues; i++) > - eth_tx_queue_stats_get(dev->data->tx_queues[i], stats); > + ark_tx_queue_stats_get(dev->data->tx_queues[i], stats); > for (i =3D 0; i < dev->data->nb_rx_queues; i++) > - eth_rx_queue_stats_get(dev->data->rx_queues[i], stats); > + ark_rx_queue_stats_get(dev->data->rx_queues[i], stats); > if (ark->user_ext.stats_get) > return ark->user_ext.stats_get(dev, stats, > ark->user_data[dev->data->port_id]); > @@ -811,15 +811,15 @@ eth_ark_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) > } > > static int > -eth_ark_dev_stats_reset(struct rte_eth_dev *dev) > +ark_dev_stats_reset(struct rte_eth_dev *dev) > { > uint16_t i; > struct ark_adapter *ark =3D dev->data->dev_private; > > for (i =3D 0; i < dev->data->nb_tx_queues; i++) > - eth_tx_queue_stats_reset(dev->data->tx_queues[i]); > + ark_tx_queue_stats_reset(dev->data->tx_queues[i]); > for (i =3D 0; i < dev->data->nb_rx_queues; i++) > - eth_rx_queue_stats_reset(dev->data->rx_queues[i]); > + ark_rx_queue_stats_reset(dev->data->rx_queues[i]); > if (ark->user_ext.stats_reset) > ark->user_ext.stats_reset(dev, > ark->user_data[dev->data->port_id]); > @@ -828,7 +828,7 @@ eth_ark_dev_stats_reset(struct rte_eth_dev *dev) > } > > static int > -eth_ark_macaddr_add(struct rte_eth_dev *dev, > +ark_macaddr_add(struct rte_eth_dev *dev, > struct rte_ether_addr *mac_addr, > uint32_t index, > uint32_t pool) > @@ -847,7 +847,7 @@ eth_ark_macaddr_add(struct rte_eth_dev *dev, > } > > static void > -eth_ark_macaddr_remove(struct rte_eth_dev *dev, uint32_t index) > +ark_macaddr_remove(struct rte_eth_dev *dev, uint32_t index) > { > struct ark_adapter *ark =3D dev->data->dev_private; > > @@ -857,7 +857,7 @@ eth_ark_macaddr_remove(struct rte_eth_dev *dev, uint32_t index) > } > > static int > -eth_ark_set_default_mac_addr(struct rte_eth_dev *dev, > +ark_set_default_mac_addr(struct rte_eth_dev *dev, > struct rte_ether_addr *mac_addr) > { > struct ark_adapter *ark =3D dev->data->dev_private; > @@ -871,7 +871,7 @@ eth_ark_set_default_mac_addr(struct rte_eth_dev *dev, > } > > static int > -eth_ark_set_mtu(struct rte_eth_dev *dev, uint16_t size) > +ark_set_mtu(struct rte_eth_dev *dev, uint16_t size) > { > struct ark_adapter *ark =3D dev->data->dev_private; > > @@ -936,7 +936,7 @@ process_file_args(const char *key, const char *value, void *extra_args) > } > > static int > -eth_ark_check_args(struct ark_adapter *ark, const char *params) > +ark_check_args(struct ark_adapter *ark, const char *params) > { > struct rte_kvargs *kvlist; > unsigned int k_idx; > diff --git a/drivers/net/ark/ark_ethdev_rx.c b/drivers/net/ark/ark_ethdev_rx.c > index 8b18d93eaa..f221137931 100644 > --- a/drivers/net/ark/ark_ethdev_rx.c > +++ b/drivers/net/ark/ark_ethdev_rx.c > @@ -22,11 +22,11 @@ struct ark_rx_meta; > > static void dump_mbuf_data(struct rte_mbuf *mbuf, uint16_t lo, uint16_t hi); > static void ark_ethdev_rx_dump(const char *name, struct ark_rx_queue *queue); > -static uint32_t eth_ark_rx_jumbo(struct ark_rx_queue *queue, > +static uint32_t ark_rx_jumbo(struct ark_rx_queue *queue, > struct ark_rx_meta *meta, > struct rte_mbuf *mbuf0, > uint32_t cons_index); > -static inline int eth_ark_rx_seed_mbufs(struct ark_rx_queue *queue); > +static inline int ark_rx_seed_mbufs(struct ark_rx_queue *queue); > > /* ************************************************************************* *= / > struct __rte_cache_aligned ark_rx_queue { > @@ -67,7 +67,7 @@ struct __rte_cache_aligned ark_rx_queue { > > /* ************************************************************************* *= / > static int > -eth_ark_rx_hw_setup(struct rte_eth_dev *dev, > +ark_rx_hw_setup(struct rte_eth_dev *dev, > struct ark_rx_queue *queue, > uint16_t rx_queue_idx) > { > @@ -100,18 +100,18 @@ eth_ark_rx_hw_setup(struct rte_eth_dev *dev, > } > > static inline void > -eth_ark_rx_update_cons_index(struct ark_rx_queue *queue, uint32_t cons_index) > +ark_rx_update_cons_index(struct ark_rx_queue *queue, uint32_t cons_index= ) > { > queue->cons_index =3D cons_index; > if ((cons_index + queue->queue_size - queue->seed_index) >=3D ARK_RX_MPU_CHUNK) { > - eth_ark_rx_seed_mbufs(queue); > + ark_rx_seed_mbufs(queue); > ark_mpu_set_producer(queue->mpu, queue->seed_index); > } > } > > /* ************************************************************************* *= / > int > -eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev, > +ark_dev_rx_queue_setup(struct rte_eth_dev *dev, > uint16_t queue_idx, > uint16_t nb_desc, > unsigned int socket_id, > @@ -129,7 +129,7 @@ eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev, > > /* We may already be setup, free memory prior to re-allocation */ > if (dev->data->rx_queues[queue_idx] !=3D NULL) { > - eth_ark_dev_rx_queue_release(dev->data->rx_queues[queue_idx]); > + ark_dev_rx_queue_release(dev->data->rx_queues[queue_idx])= ; > dev->data->rx_queues[queue_idx] =3D NULL; > } > > @@ -215,7 +215,7 @@ eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev, > ark_udm_queue_stats_reset(queue->udm); > > /* populate mbuf reserve */ > - status =3D eth_ark_rx_seed_mbufs(queue); > + status =3D ark_rx_seed_mbufs(queue); > > if (queue->seed_index !=3D nb_desc) { > ARK_PMD_LOG(ERR, "Failed to allocate %u mbufs for RX queue %d\n", > @@ -224,7 +224,7 @@ eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev, > } > /* MPU Setup */ > if (status =3D=3D 0) > - status =3D eth_ark_rx_hw_setup(dev, queue, queue_idx); > + status =3D ark_rx_hw_setup(dev, queue, queue_idx); > > if (unlikely(status !=3D 0)) { > struct rte_mbuf **mbuf; > @@ -248,7 +248,7 @@ eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev, > > /* ************************************************************************* *= / > uint16_t > -eth_ark_recv_pkts(void *rx_queue, > +ark_recv_pkts(void *rx_queue, > struct rte_mbuf **rx_pkts, > uint16_t nb_pkts) > { > @@ -267,7 +267,7 @@ eth_ark_recv_pkts(void *rx_queue, > if (unlikely(nb_pkts =3D=3D 0)) > return 0; > if (unlikely(queue->starvation)) > - eth_ark_rx_seed_mbufs(queue); > + ark_rx_seed_mbufs(queue); > > prod_index =3D queue->prod_index; > cons_index =3D queue->cons_index; > @@ -318,7 +318,7 @@ eth_ark_recv_pkts(void *rx_queue, > } > > if (unlikely(meta->pkt_len > queue->dataroom)) { > - uint32_t tcons =3D eth_ark_rx_jumbo(queue, meta, mbuf, cons_index + 1); > + uint32_t tcons =3D ark_rx_jumbo(queue, meta, mbuf= , cons_index + 1); > if ((int32_t)(prod_index - tcons) >=3D 0) > cons_index =3D tcons; /* nominal conditio= n */ > else > @@ -340,14 +340,14 @@ eth_ark_recv_pkts(void *rx_queue, > rx_user_meta_hook(mbuf, meta->user_meta, queue->ext_user_data); > } > > - eth_ark_rx_update_cons_index(queue, cons_index); > + ark_rx_update_cons_index(queue, cons_index); > > return nb; > } > > /* ************************************************************************* *= / > static uint32_t > -eth_ark_rx_jumbo(struct ark_rx_queue *queue, > +ark_rx_jumbo(struct ark_rx_queue *queue, > struct ark_rx_meta *meta, > struct rte_mbuf *mbuf0, > uint32_t cons_index) > @@ -388,7 +388,7 @@ eth_ark_rx_jumbo(struct ark_rx_queue *queue, > > /* Drain the internal queue allowing hw to clear out. */ > static void > -eth_ark_rx_queue_drain(struct ark_rx_queue *queue) > +ark_rx_queue_drain(struct ark_rx_queue *queue) > { > register uint32_t cons_index; > struct rte_mbuf *mbuf; > @@ -400,12 +400,12 @@ eth_ark_rx_queue_drain(struct ark_rx_queue *queue) > mbuf =3D queue->reserve_q[cons_index & queue->queue_mask]= ; > rte_pktmbuf_free(mbuf); > cons_index++; > - eth_ark_rx_update_cons_index(queue, cons_index); > + ark_rx_update_cons_index(queue, cons_index); > } > } > > int > -eth_ark_dev_rx_queue_count(void *rx_queue) > +ark_dev_rx_queue_count(void *rx_queue) > { > struct ark_rx_queue *queue; > > @@ -415,7 +415,7 @@ eth_ark_dev_rx_queue_count(void *rx_queue) > > /* ************************************************************************* *= / > int > -eth_ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t queue_id) > +ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t queue_id) > { > struct ark_rx_queue *queue; > > @@ -438,7 +438,7 @@ eth_ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t queue_id) > /* Queue can be restarted. data remains > */ > int > -eth_ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id) > +ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id) > { > struct ark_rx_queue *queue; > > @@ -455,7 +455,7 @@ eth_ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id) > > /* ************************************************************************* *= / > static inline int > -eth_ark_rx_seed_mbufs(struct ark_rx_queue *queue) > +ark_rx_seed_mbufs(struct ark_rx_queue *queue) > { > uint32_t limit =3D RTE_ALIGN_FLOOR(queue->cons_index, ARK_RX_MPU_CHUNK) + > queue->queue_size; > @@ -539,7 +539,7 @@ eth_ark_rx_seed_mbufs(struct ark_rx_queue *queue) > } > > void > -eth_ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_id, > +ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_id, > const char *msg) > { > struct ark_rx_queue *queue; > @@ -552,7 +552,7 @@ eth_ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_id, > /* ************************************************************************* *= / > /* Call on device closed no user API, queue is stopped */ > void > -eth_ark_dev_rx_queue_release(void *vqueue) > +ark_dev_rx_queue_release(void *vqueue) > { > struct ark_rx_queue *queue; > > @@ -565,7 +565,7 @@ eth_ark_dev_rx_queue_release(void *vqueue) > ark_mpu_stop(queue->mpu); > > /* Need to clear out mbufs here, dropping packets along the way *= / > - eth_ark_rx_queue_drain(queue); > + ark_rx_queue_drain(queue); > > rte_free(queue->reserve_q); > rte_free(queue->paddress_q); > @@ -573,7 +573,7 @@ eth_ark_dev_rx_queue_release(void *vqueue) > } > > void > -eth_rx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats) > +ark_rx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats) > { > struct ark_rx_queue *queue; > struct ark_udm_t *udm; > @@ -596,7 +596,7 @@ eth_rx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats) > } > > void > -eth_rx_queue_stats_reset(void *vqueue) > +ark_rx_queue_stats_reset(void *vqueue) > { > struct ark_rx_queue *queue; > > diff --git a/drivers/net/ark/ark_ethdev_rx.h b/drivers/net/ark/ark_ethdev_rx.h > index 12d4f61637..7a5bab20a9 100644 > --- a/drivers/net/ark/ark_ethdev_rx.h > +++ b/drivers/net/ark/ark_ethdev_rx.h > @@ -11,21 +11,21 @@ > #include > #include > > -int eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev, > +int ark_dev_rx_queue_setup(struct rte_eth_dev *dev, > uint16_t queue_idx, > uint16_t nb_desc, > unsigned int socket_id, > const struct rte_eth_rxconf *rx_conf, > struct rte_mempool *mp); > -int eth_ark_dev_rx_queue_count(void *rx_queue); > -int eth_ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id); > -int eth_ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t queue_id); > -uint16_t eth_ark_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, > +int ark_dev_rx_queue_count(void *rx_queue); > +int ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id); > +int ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t queue_id); > +uint16_t ark_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, > uint16_t nb_pkts); > -void eth_ark_dev_rx_queue_release(void *rx_queue); > -void eth_rx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats); > -void eth_rx_queue_stats_reset(void *vqueue); > -void eth_ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_id, > +void ark_dev_rx_queue_release(void *rx_queue); > +void ark_rx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats); > +void ark_rx_queue_stats_reset(void *vqueue); > +void ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_id, > const char *msg); > > #endif > diff --git a/drivers/net/ark/ark_ethdev_tx.c b/drivers/net/ark/ark_ethdev_tx.c > index ca6cd297a1..2c61cd5486 100644 > --- a/drivers/net/ark/ark_ethdev_tx.c > +++ b/drivers/net/ark/ark_ethdev_tx.c > @@ -53,15 +53,15 @@ struct __rte_cache_aligned ark_tx_queue { > }; > > /* Forward declarations */ > -static int eth_ark_tx_jumbo(struct ark_tx_queue *queue, > +static int ark_tx_jumbo(struct ark_tx_queue *queue, > struct rte_mbuf *mbuf, > uint32_t *user_meta, uint8_t meta_cnt); > -static int eth_ark_tx_hw_queue_config(struct ark_tx_queue *queue); > +static int ark_tx_hw_queue_config(struct ark_tx_queue *queue); > static void free_completed_tx(struct ark_tx_queue *queue); > > /* ************************************************************************* *= / > static inline void > -eth_ark_tx_desc_fill(struct ark_tx_queue *queue, > +ark_tx_desc_fill(struct ark_tx_queue *queue, > struct rte_mbuf *mbuf, > uint8_t flags, > uint32_t *user_meta, > @@ -101,7 +101,7 @@ eth_ark_tx_desc_fill(struct ark_tx_queue *queue, > > /* ************************************************************************* *= / > uint16_t > -eth_ark_xmit_pkts(void *vtxq, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) > +ark_xmit_pkts(void *vtxq, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) > { > struct ark_tx_queue *queue; > struct rte_mbuf *mbuf; > @@ -159,12 +159,12 @@ eth_ark_xmit_pkts(void *vtxq, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) > tx_user_meta_hook(mbuf, user_meta, &user_len, > queue->ext_user_data); > if (unlikely(mbuf->nb_segs !=3D 1)) { > - stat =3D eth_ark_tx_jumbo(queue, mbuf, > + stat =3D ark_tx_jumbo(queue, mbuf, > user_meta, user_len); > if (unlikely(stat !=3D 0)) > break; /* Queue is full */ > } else { > - eth_ark_tx_desc_fill(queue, mbuf, > + ark_tx_desc_fill(queue, mbuf, > ARK_DDM_SOP | ARK_DDM_EOP, > user_meta, user_len); > } > @@ -195,7 +195,7 @@ eth_ark_xmit_pkts(void *vtxq, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) > > /* ************************************************************************* *= / > static int > -eth_ark_tx_jumbo(struct ark_tx_queue *queue, struct rte_mbuf *mbuf, > +ark_tx_jumbo(struct ark_tx_queue *queue, struct rte_mbuf *mbuf, > uint32_t *user_meta, uint8_t meta_cnt) > { > struct rte_mbuf *next; > @@ -212,7 +212,7 @@ eth_ark_tx_jumbo(struct ark_tx_queue *queue, struct rte_mbuf *mbuf, > next =3D mbuf->next; > flags |=3D (next =3D=3D NULL) ? ARK_DDM_EOP : 0; > > - eth_ark_tx_desc_fill(queue, mbuf, flags, user_meta, meta_cnt); > + ark_tx_desc_fill(queue, mbuf, flags, user_meta, meta_cnt)= ; > > flags &=3D ~ARK_DDM_SOP; /* drop SOP flags */ > meta_cnt =3D 0; /* Meta only on SOP */ > @@ -224,7 +224,7 @@ eth_ark_tx_jumbo(struct ark_tx_queue *queue, struct rte_mbuf *mbuf, > > /* ************************************************************************* *= / > int > -eth_ark_tx_queue_setup(struct rte_eth_dev *dev, > +ark_tx_queue_setup(struct rte_eth_dev *dev, > uint16_t queue_idx, > uint16_t nb_desc, > unsigned int socket_id, > @@ -291,7 +291,7 @@ eth_ark_tx_queue_setup(struct rte_eth_dev *dev, > queue->ddm =3D RTE_PTR_ADD(ark->ddm.v, qidx * ARK_DDM_QOFFSET); > queue->mpu =3D RTE_PTR_ADD(ark->mputx.v, qidx * ARK_MPU_QOFFSET); > > - status =3D eth_ark_tx_hw_queue_config(queue); > + status =3D ark_tx_hw_queue_config(queue); > > if (unlikely(status !=3D 0)) { > rte_free(queue->meta_q); > @@ -305,7 +305,7 @@ eth_ark_tx_queue_setup(struct rte_eth_dev *dev, > > /* ************************************************************************* *= / > static int > -eth_ark_tx_hw_queue_config(struct ark_tx_queue *queue) > +ark_tx_hw_queue_config(struct ark_tx_queue *queue) > { > rte_iova_t queue_base, ring_base, cons_index_addr; > > @@ -333,7 +333,7 @@ eth_ark_tx_hw_queue_config(struct ark_tx_queue *queue= ) > > /* ************************************************************************* *= / > void > -eth_ark_tx_queue_release(void *vtx_queue) > +ark_tx_queue_release(void *vtx_queue) > { > struct ark_tx_queue *queue; > > @@ -352,7 +352,7 @@ eth_ark_tx_queue_release(void *vtx_queue) > > /* ************************************************************************* *= / > int > -eth_ark_tx_queue_stop(struct rte_eth_dev *dev, uint16_t queue_id) > +ark_tx_queue_stop(struct rte_eth_dev *dev, uint16_t queue_id) > { > struct ark_tx_queue *queue; > int cnt =3D 0; > @@ -376,7 +376,7 @@ eth_ark_tx_queue_stop(struct rte_eth_dev *dev, uint16_t queue_id) > } > > int > -eth_ark_tx_queue_start(struct rte_eth_dev *dev, uint16_t queue_id) > +ark_tx_queue_start(struct rte_eth_dev *dev, uint16_t queue_id) > { > struct ark_tx_queue *queue; > > @@ -415,7 +415,7 @@ free_completed_tx(struct ark_tx_queue *queue) > > /* ************************************************************************* *= / > void > -eth_tx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats) > +ark_tx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats) > { > struct ark_tx_queue *queue; > struct ark_ddm_t *ddm; > @@ -435,7 +435,7 @@ eth_tx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats) > } > > void > -eth_tx_queue_stats_reset(void *vqueue) > +ark_tx_queue_stats_reset(void *vqueue) > { > struct ark_tx_queue *queue; > struct ark_ddm_t *ddm; > diff --git a/drivers/net/ark/ark_ethdev_tx.h b/drivers/net/ark/ark_ethdev_tx.h > index 7134dbfeed..ee66ed19cc 100644 > --- a/drivers/net/ark/ark_ethdev_tx.h > +++ b/drivers/net/ark/ark_ethdev_tx.h > @@ -10,18 +10,18 @@ > #include > > > -uint16_t eth_ark_xmit_pkts(void *vtxq, > +uint16_t ark_xmit_pkts(void *vtxq, > struct rte_mbuf **tx_pkts, > uint16_t nb_pkts); > -int eth_ark_tx_queue_setup(struct rte_eth_dev *dev, > +int ark_tx_queue_setup(struct rte_eth_dev *dev, > uint16_t queue_idx, > uint16_t nb_desc, > unsigned int socket_id, > const struct rte_eth_txconf *tx_conf); > -void eth_ark_tx_queue_release(void *vtx_queue); > -int eth_ark_tx_queue_stop(struct rte_eth_dev *dev, uint16_t queue_id); > -int eth_ark_tx_queue_start(struct rte_eth_dev *dev, uint16_t queue_id); > -void eth_tx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats); > -void eth_tx_queue_stats_reset(void *vqueue); > +void ark_tx_queue_release(void *vtx_queue); > +int ark_tx_queue_stop(struct rte_eth_dev *dev, uint16_t queue_id); > +int ark_tx_queue_start(struct rte_eth_dev *dev, uint16_t queue_id); > +void ark_tx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats); > +void ark_tx_queue_stats_reset(void *vqueue); > > #endif > -- > 2.47.3 > --0000000000001b9c210640be6e62 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Acked-by:Ed Czeck <ed.czeck@atomicrules.com>

On Fri, Sep 26, 2025 at 12:= 35=E2=80=AFPM Stephen Hemminger <stephen@networkplumber.org> wrote:
>
> Rather tha= n eth_ark_XXX use ark_XXX as prefix on all visible
> global variables= . This makes device consistent with other PMD's.
>
> Signed= -off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
> =C2=A0drivers/net/= ark/ark_ethdev.c =C2=A0 =C2=A0| 154 ++++++++++++++++----------------
>= ; =C2=A0drivers/net/ark/ark_ethdev_rx.c | =C2=A050 +++++------
> =C2= =A0drivers/net/ark/ark_ethdev_rx.h | =C2=A018 ++--
> =C2=A0drivers/ne= t/ark/ark_ethdev_tx.c | =C2=A032 +++----
> =C2=A0drivers/net/ark/ark_= ethdev_tx.h | =C2=A014 +--
> =C2=A05 files changed, 134 insertions(+)= , 134 deletions(-)
>
> diff --git a/drivers/net/ark/ark_ethdev.= c b/drivers/net/ark/ark_ethdev.c
> index 8d3c0a1b02..04a15d006f 10064= 4
> --- a/drivers/net/ark/ark_ethdev.c
> +++ b/drivers/net/ark/= ark_ethdev.c
> @@ -22,32 +22,32 @@
> =C2=A0#include "ark_p= ktchkr.h"
>
> =C2=A0/* =C2=A0Internal prototypes */
>= ; -static int eth_ark_check_args(struct ark_adapter *ark, const char *param= s);
> -static int eth_ark_dev_init(struct rte_eth_dev *dev);
> = +static int ark_check_args(struct ark_adapter *ark, const char *params);> +static int ark_dev_init(struct rte_eth_dev *dev);
> =C2=A0stat= ic int ark_config_device(struct rte_eth_dev *dev);
> -static int eth_= ark_dev_uninit(struct rte_eth_dev *eth_dev);
> -static int eth_ark_de= v_configure(struct rte_eth_dev *dev);
> -static int eth_ark_dev_start= (struct rte_eth_dev *dev);
> -static int eth_ark_dev_stop(struct rte_= eth_dev *dev);
> -static int eth_ark_dev_close(struct rte_eth_dev *de= v);
> -static int eth_ark_dev_info_get(struct rte_eth_dev *dev,
&g= t; +static int ark_dev_uninit(struct rte_eth_dev *eth_dev);
> +static= int ark_dev_configure(struct rte_eth_dev *dev);
> +static int ark_de= v_start(struct rte_eth_dev *dev);
> +static int ark_dev_stop(struct r= te_eth_dev *dev);
> +static int ark_dev_close(struct rte_eth_dev *dev= );
> +static int ark_dev_info_get(struct rte_eth_dev *dev,
> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct rte_eth_dev_info *dev_info);<= br>> -static int eth_ark_dev_link_update(struct rte_eth_dev *dev,
>= ; +static int ark_dev_link_update(struct rte_eth_dev *dev,
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0int wait_to_complete);
>= -static int eth_ark_dev_set_link_up(struct rte_eth_dev *dev);
> -sta= tic int eth_ark_dev_set_link_down(struct rte_eth_dev *dev);
> -static= int eth_ark_dev_stats_get(struct rte_eth_dev *dev,
> +static int ark= _dev_set_link_up(struct rte_eth_dev *dev);
> +static int ark_dev_set_= link_down(struct rte_eth_dev *dev);
> +static int ark_dev_stats_get(s= truct rte_eth_dev *dev,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 struct rte_eth_stats *stats);
> -static int eth_ark_dev_stats_res= et(struct rte_eth_dev *dev);
> -static int eth_ark_set_default_mac_ad= dr(struct rte_eth_dev *dev,
> +static int ark_dev_stats_reset(struct = rte_eth_dev *dev);
> +static int ark_set_default_mac_addr(struct rte_= eth_dev *dev,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0struct rte_ether_addr *mac_addr);
> -static int e= th_ark_macaddr_add(struct rte_eth_dev *dev,
> +static int ark_macaddr= _add(struct rte_eth_dev *dev,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0struct rte_ether_addr *mac_addr,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0uint32_t index,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0uint32_t = pool);
> -static void eth_ark_macaddr_remove(struct rte_eth_dev *dev,=
> +static void ark_macaddr_remove(struct rte_eth_dev *dev,
> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0uint32_t index);
>= ; -static int =C2=A0eth_ark_set_mtu(struct rte_eth_dev *dev, uint16_t size)= ;
> +static int =C2=A0ark_set_mtu(struct rte_eth_dev *dev, uint16_t s= ize);
>
> =C2=A0/*
> =C2=A0 * The packet generator is a f= unctional block used to generate packet
> @@ -145,7 +145,7 @@ ark_dev= ice_caps[] =3D {
> =C2=A0};
>
> =C2=A0static int
> = -eth_ark_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
> +ar= k_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
> =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct rte_pci_device *pci_de= v)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct rte_eth_dev *= eth_dev;
> @@ -156,7 +156,7 @@ eth_ark_pci_probe(struct rte_pci_drive= r *pci_drv __rte_unused,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (eth_dev = =3D=3D NULL)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 return -ENOMEM;
>
> - =C2=A0 =C2=A0 =C2=A0 ret =3D eth_ark_= dev_init(eth_dev);
> + =C2=A0 =C2=A0 =C2=A0 ret =3D ark_dev_init(eth_= dev);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (ret)
> =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rte_eth_dev_release_port(eth_dev)= ;
>
> @@ -164,47 +164,47 @@ eth_ark_pci_probe(struct rte_pci_dr= iver *pci_drv __rte_unused,
> =C2=A0}
>
> =C2=A0static in= t
> -eth_ark_pci_remove(struct rte_pci_device *pci_dev)
> +ark_= pci_remove(struct rte_pci_device *pci_dev)
> =C2=A0{
> - =C2=A0= =C2=A0 =C2=A0 return rte_eth_dev_pci_generic_remove(pci_dev, eth_ark_dev_u= ninit);
> + =C2=A0 =C2=A0 =C2=A0 return rte_eth_dev_pci_generic_remov= e(pci_dev, ark_dev_uninit);
> =C2=A0}
>
> =C2=A0static st= ruct rte_pci_driver rte_ark_pmd =3D {
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 .= id_table =3D pci_id_ark_map,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 .drv_flags= =3D RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC,
> - =C2=A0 =C2= =A0 =C2=A0 .probe =3D eth_ark_pci_probe,
> - =C2=A0 =C2=A0 =C2=A0 .re= move =3D eth_ark_pci_remove,
> + =C2=A0 =C2=A0 =C2=A0 .probe =3D ark_= pci_probe,
> + =C2=A0 =C2=A0 =C2=A0 .remove =3D ark_pci_remove,
&g= t; =C2=A0};
>
> =C2=A0static const struct eth_dev_ops ark_eth_d= ev_ops =3D {
> - =C2=A0 =C2=A0 =C2=A0 .dev_configure =3D eth_ark_dev_= configure,
> - =C2=A0 =C2=A0 =C2=A0 .dev_start =3D eth_ark_dev_start,=
> - =C2=A0 =C2=A0 =C2=A0 .dev_stop =3D eth_ark_dev_stop,
> - = =C2=A0 =C2=A0 =C2=A0 .dev_close =3D eth_ark_dev_close,
> + =C2=A0 =C2= =A0 =C2=A0 .dev_configure =3D ark_dev_configure,
> + =C2=A0 =C2=A0 = =C2=A0 .dev_start =3D ark_dev_start,
> + =C2=A0 =C2=A0 =C2=A0 .dev_st= op =3D ark_dev_stop,
> + =C2=A0 =C2=A0 =C2=A0 .dev_close =3D ark_dev_= close,
>
> - =C2=A0 =C2=A0 =C2=A0 .dev_infos_get =3D eth_ark_de= v_info_get,
> + =C2=A0 =C2=A0 =C2=A0 .dev_infos_get =3D ark_dev_info_= get,
>
> - =C2=A0 =C2=A0 =C2=A0 .rx_queue_setup =3D eth_ark_dev= _rx_queue_setup,
> - =C2=A0 =C2=A0 =C2=A0 .tx_queue_setup =3D eth_ark= _tx_queue_setup,
> + =C2=A0 =C2=A0 =C2=A0 .rx_queue_setup =3D ark_dev= _rx_queue_setup,
> + =C2=A0 =C2=A0 =C2=A0 .tx_queue_setup =3D ark_tx_= queue_setup,
>
> - =C2=A0 =C2=A0 =C2=A0 .link_update =3D eth_ar= k_dev_link_update,
> - =C2=A0 =C2=A0 =C2=A0 .dev_set_link_up =3D eth_= ark_dev_set_link_up,
> - =C2=A0 =C2=A0 =C2=A0 .dev_set_link_down =3D = eth_ark_dev_set_link_down,
> + =C2=A0 =C2=A0 =C2=A0 .link_update =3D = ark_dev_link_update,
> + =C2=A0 =C2=A0 =C2=A0 .dev_set_link_up =3D ar= k_dev_set_link_up,
> + =C2=A0 =C2=A0 =C2=A0 .dev_set_link_down =3D ar= k_dev_set_link_down,
>
> - =C2=A0 =C2=A0 =C2=A0 .rx_queue_start= =3D eth_ark_rx_start_queue,
> - =C2=A0 =C2=A0 =C2=A0 .rx_queue_stop = =3D eth_ark_rx_stop_queue,
> + =C2=A0 =C2=A0 =C2=A0 .rx_queue_start = =3D ark_rx_start_queue,
> + =C2=A0 =C2=A0 =C2=A0 .rx_queue_stop =3D a= rk_rx_stop_queue,
>
> - =C2=A0 =C2=A0 =C2=A0 .tx_queue_start = =3D eth_ark_tx_queue_start,
> - =C2=A0 =C2=A0 =C2=A0 .tx_queue_stop = =3D eth_ark_tx_queue_stop,
> + =C2=A0 =C2=A0 =C2=A0 .tx_queue_start = =3D ark_tx_queue_start,
> + =C2=A0 =C2=A0 =C2=A0 .tx_queue_stop =3D a= rk_tx_queue_stop,
>
> - =C2=A0 =C2=A0 =C2=A0 .stats_get =3D eth= _ark_dev_stats_get,
> - =C2=A0 =C2=A0 =C2=A0 .stats_reset =3D eth_ark= _dev_stats_reset,
> + =C2=A0 =C2=A0 =C2=A0 .stats_get =3D ark_dev_sta= ts_get,
> + =C2=A0 =C2=A0 =C2=A0 .stats_reset =3D ark_dev_stats_reset= ,
>
> - =C2=A0 =C2=A0 =C2=A0 .mac_addr_add =3D eth_ark_macaddr_= add,
> - =C2=A0 =C2=A0 =C2=A0 .mac_addr_remove =3D eth_ark_macaddr_re= move,
> - =C2=A0 =C2=A0 =C2=A0 .mac_addr_set =3D eth_ark_set_default_= mac_addr,
> + =C2=A0 =C2=A0 =C2=A0 .mac_addr_add =3D ark_macaddr_add,=
> + =C2=A0 =C2=A0 =C2=A0 .mac_addr_remove =3D ark_macaddr_remove,> + =C2=A0 =C2=A0 =C2=A0 .mac_addr_set =3D ark_set_default_mac_addr,>
> - =C2=A0 =C2=A0 =C2=A0 .mtu_set =3D eth_ark_set_mtu,
> = + =C2=A0 =C2=A0 =C2=A0 .mtu_set =3D ark_set_mtu,
> =C2=A0};
>> =C2=A0static int
> @@ -297,7 +297,7 @@ check_for_ext(struct ar= k_adapter *ark)
> =C2=A0}
>
> =C2=A0static int
> -e= th_ark_dev_init(struct rte_eth_dev *dev)
> +ark_dev_init(struct rte_e= th_dev *dev)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark= _adapter *ark =3D dev->data->dev_private;
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 struct rte_pci_device *pci_dev;
> @@ -376,7 +376,7 @@ eth_= ark_dev_init(struct rte_eth_dev *dev)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 return -1;
>
> =C2=A0 =C2=A0 =C2=A0= =C2=A0 dev->dev_ops =3D &ark_eth_dev_ops;
> - =C2=A0 =C2=A0 = =C2=A0 dev->rx_queue_count =3D eth_ark_dev_rx_queue_count;
> + =C2= =A0 =C2=A0 =C2=A0 dev->rx_queue_count =3D ark_dev_rx_queue_count;
>= ;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 dev->data->mac_addrs =3D rte_zm= alloc("ark", RTE_ETHER_ADDR_LEN, 0);
> =C2=A0 =C2=A0 =C2=A0= =C2=A0 if (!dev->data->mac_addrs) {
> @@ -398,7 +398,7 @@ eth_= ark_dev_init(struct rte_eth_dev *dev)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 }=
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (pci_dev->device.devargs= )
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ret =3D eth_ar= k_check_args(ark, pci_dev->device.devargs->args);
> + =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ret =3D ark_check_args(ark, pci_d= ev->device.devargs->args);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 else> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ARK_PMD_LOG(= INFO, "No Device args found\n");
>
> @@ -539,7 +539,7= @@ ark_config_device(struct rte_eth_dev *dev)
> =C2=A0}
>
&= gt; =C2=A0static int
> -eth_ark_dev_uninit(struct rte_eth_dev *dev)> +ark_dev_uninit(struct rte_eth_dev *dev)
> =C2=A0{
> =C2= =A0 =C2=A0 =C2=A0 =C2=A0 struct ark_adapter *ark =3D dev->data->dev_p= rivate;
>
> @@ -559,11 +559,11 @@ eth_ark_dev_uninit(struct rte= _eth_dev *dev)
> =C2=A0}
>
> =C2=A0static int
> -et= h_ark_dev_configure(struct rte_eth_dev *dev)
> +ark_dev_configure(str= uct rte_eth_dev *dev)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 s= truct ark_adapter *ark =3D dev->data->dev_private;
>
> - = =C2=A0 =C2=A0 =C2=A0 eth_ark_dev_set_link_up(dev);
> + =C2=A0 =C2=A0 = =C2=A0 ark_dev_set_link_up(dev);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (ar= k->user_ext.dev_configure)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 return ark->user_ext.dev_configure(dev,
> =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0ark->user_data[dev->data->port_id]);
> @= @ -571,23 +571,23 @@ eth_ark_dev_configure(struct rte_eth_dev *dev)
>= =C2=A0}
>
> =C2=A0static int
> -eth_ark_dev_start(struct= rte_eth_dev *dev)
> +ark_dev_start(struct rte_eth_dev *dev)
> = =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_adapter *ark =3D dev= ->data->dev_private;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 int i;
&g= t;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* RX Side */
> =C2=A0 =C2=A0 = =C2=A0 =C2=A0 for (i =3D 0; i < dev->data->nb_rx_queues; i++)
&= gt; - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth_ark_rx_start_que= ue(dev, i);
> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_= rx_start_queue(dev, i);
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* TX S= ide */
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (i =3D 0; i < dev->dat= a->nb_tx_queues; i++)
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 eth_ark_tx_queue_start(dev, i);
> + =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_tx_queue_start(dev, i);
>
> =C2= =A0 =C2=A0 =C2=A0 =C2=A0 ark->started =3D 1;
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 /* set xmit and receive function */
> - =C2=A0 =C2=A0 =C2= =A0 dev->rx_pkt_burst =3D &eth_ark_recv_pkts;
> - =C2=A0 =C2= =A0 =C2=A0 dev->tx_pkt_burst =3D &eth_ark_xmit_pkts;
> + =C2= =A0 =C2=A0 =C2=A0 dev->rx_pkt_burst =3D &ark_recv_pkts;
> + = =C2=A0 =C2=A0 =C2=A0 dev->tx_pkt_burst =3D &ark_xmit_pkts;
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (!ark->isvf && ark->sta= rt_pg)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_= pktchkr_run(ark->pc);
> @@ -618,7 +618,7 @@ eth_ark_dev_start(stru= ct rte_eth_dev *dev)
> =C2=A0}
>
> =C2=A0static int
&g= t; -eth_ark_dev_stop(struct rte_eth_dev *dev)
> +ark_dev_stop(struct = rte_eth_dev *dev)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 uint1= 6_t i;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 int status;
> @@ -645,11 += 645,11 @@ eth_ark_dev_stop(struct rte_eth_dev *dev)
>
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 /* Stop RX Side */
> =C2=A0 =C2=A0 =C2=A0 =C2=A0= for (i =3D 0; i < dev->data->nb_rx_queues; i++)
> - =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth_ark_rx_stop_queue(dev, i);> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_rx_stop_queue(= dev, i);
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* STOP TX Side */
= > =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (i =3D 0; i < dev->data->nb_t= x_queues; i++) {
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= status =3D eth_ark_tx_queue_stop(dev, i);
> + =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 status =3D ark_tx_queue_stop(dev, i);
> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (status !=3D 0) = {
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 uint16_t port =3D dev->data->port_id;
> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ARK_PMD_LOG(ERR,
> @@ -662,7 +662,7 @@ eth_ark_dev_stop(st= ruct rte_eth_dev *dev)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_udm_dump_sta= ts(ark->udm.v, "Post stop");
>
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 for (i =3D 0; i < dev->data->nb_rx_queues; i++)
>= - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth_ark_rx_dump_queue(d= ev, i, __func__);
> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ark_rx_dump_queue(dev, i, __func__);
>
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 /* Stop the packet checker if it is running */
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 if (!ark->isvf && ark->start_pg) {
&g= t; @@ -674,7 +674,7 @@ eth_ark_dev_stop(struct rte_eth_dev *dev)
> = =C2=A0}
>
> =C2=A0static int
> -eth_ark_dev_close(struct = rte_eth_dev *dev)
> +ark_dev_close(struct rte_eth_dev *dev)
> = =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_adapter *ark =3D dev= ->data->dev_private;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 uint16_t i;<= br>> @@ -686,7 +686,7 @@ eth_ark_dev_close(struct rte_eth_dev *dev)
&= gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark->user_ex= t.dev_close(dev,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0ark->user_data[dev->data->port_id]);
>
> = - =C2=A0 =C2=A0 =C2=A0 eth_ark_dev_stop(dev);
> + =C2=A0 =C2=A0 =C2= =A0 ark_dev_stop(dev);
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 /*
&g= t; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0* This should only be called once for = the device during shutdown
> @@ -696,12 +696,12 @@ eth_ark_dev_close(= struct rte_eth_dev *dev)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 ark_pktdir_setup(ark->pd, ARK_PKT_DIR_INIT_VAL);
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (i =3D 0; i < dev->data->nb= _tx_queues; i++) {
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 eth_ark_tx_queue_release(dev->data->tx_queues[i]);
> + =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_tx_queue_release(dev->= data->tx_queues[i]);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 dev->data->tx_queues[i] =3D 0;
> =C2=A0 =C2=A0 = =C2=A0 =C2=A0 }
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (i =3D 0; i= < dev->data->nb_rx_queues; i++) {
> - =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth_ark_dev_rx_queue_release(dev->data->r= x_queues[i]);
> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ar= k_dev_rx_queue_release(dev->data->rx_queues[i]);
> =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 dev->data->rx_queues[i]= =3D 0;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
>
> @@ -709,7 +70= 9,7 @@ eth_ark_dev_close(struct rte_eth_dev *dev)
> =C2=A0}
>> =C2=A0static int
> -eth_ark_dev_info_get(struct rte_eth_dev *d= ev,
> +ark_dev_info_get(struct rte_eth_dev *dev,
> =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0struct rt= e_eth_dev_info *dev_info)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2= =A0 struct ark_adapter *ark =3D dev->data->dev_private;
> @@ -7= 49,7 +749,7 @@ eth_ark_dev_info_get(struct rte_eth_dev *dev,
> =C2=A0= }
>
> =C2=A0static int
> -eth_ark_dev_link_update(struct = rte_eth_dev *dev, int wait_to_complete)
> +ark_dev_link_update(struct= rte_eth_dev *dev, int wait_to_complete)
> =C2=A0{
> =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ARK_PMD_LOG(DEBUG, "link status =3D %d\n",
&= gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 dev->data->dev_link.link_status);
> @@ -764,7 +76= 4,7 @@ eth_ark_dev_link_update(struct rte_eth_dev *dev, int wait_to_complet= e)
> =C2=A0}
>
> =C2=A0static int
> -eth_ark_dev_se= t_link_up(struct rte_eth_dev *dev)
> +ark_dev_set_link_up(struct rte_= eth_dev *dev)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 dev->d= ata->dev_link.link_status =3D 1;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 str= uct ark_adapter *ark =3D dev->data->dev_private;
> @@ -776,7 +7= 76,7 @@ eth_ark_dev_set_link_up(struct rte_eth_dev *dev)
> =C2=A0}>
> =C2=A0static int
> -eth_ark_dev_set_link_down(struct rt= e_eth_dev *dev)
> +ark_dev_set_link_down(struct rte_eth_dev *dev)
= > =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 dev->data->dev_link.= link_status =3D 0;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_adapter *= ark =3D dev->data->dev_private;
> @@ -788,7 +788,7 @@ eth_ark_d= ev_set_link_down(struct rte_eth_dev *dev)
> =C2=A0}
>
> = =C2=A0static int
> -eth_ark_dev_stats_get(struct rte_eth_dev *dev, st= ruct rte_eth_stats *stats)
> +ark_dev_stats_get(struct rte_eth_dev *d= ev, struct rte_eth_stats *stats)
> =C2=A0{
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 uint16_t i;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_adapt= er *ark =3D dev->data->dev_private;
> @@ -801,9 +801,9 @@ eth_a= rk_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
&= gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 stats->oerrors =3D 0;
>
> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (i =3D 0; i < dev->data->nb_tx_que= ues; i++)
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth_tx= _queue_stats_get(dev->data->tx_queues[i], stats);
> + =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_tx_queue_stats_get(dev->da= ta->tx_queues[i], stats);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (i =3D= 0; i < dev->data->nb_rx_queues; i++)
> - =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth_rx_queue_stats_get(dev->data->rx_= queues[i], stats);
> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ark_rx_queue_stats_get(dev->data->rx_queues[i], stats);
> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (ark->user_ext.stats_get)
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return ark->user_ext.st= ats_get(dev, stats,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark->user_data[dev->data->p= ort_id]);
> @@ -811,15 +811,15 @@ eth_ark_dev_stats_get(struct rte_et= h_dev *dev, struct rte_eth_stats *stats)
> =C2=A0}
>
> = =C2=A0static int
> -eth_ark_dev_stats_reset(struct rte_eth_dev *dev)<= br>> +ark_dev_stats_reset(struct rte_eth_dev *dev)
> =C2=A0{
&g= t; =C2=A0 =C2=A0 =C2=A0 =C2=A0 uint16_t i;
> =C2=A0 =C2=A0 =C2=A0 =C2= =A0 struct ark_adapter *ark =3D dev->data->dev_private;
>
&g= t; =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (i =3D 0; i < dev->data->nb_tx_= queues; i++)
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth= _tx_queue_stats_reset(dev->data->tx_queues[i]);
> + =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_tx_queue_stats_reset(dev->dat= a->tx_queues[i]);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (i =3D 0; i &l= t; dev->data->nb_rx_queues; i++)
> - =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 eth_rx_queue_stats_reset(dev->data->rx_queue= s[i]);
> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_rx_qu= eue_stats_reset(dev->data->rx_queues[i]);
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 if (ark->user_ext.stats_reset)
> =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark->user_ext.stats_reset(dev,
>= ; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ark->user_data[dev->data->port_id]);
> @@ = -828,7 +828,7 @@ eth_ark_dev_stats_reset(struct rte_eth_dev *dev)
> = =C2=A0}
>
> =C2=A0static int
> -eth_ark_macaddr_add(struc= t rte_eth_dev *dev,
> +ark_macaddr_add(struct rte_eth_dev *dev,
&g= t; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 st= ruct rte_ether_addr *mac_addr,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 uint32_t index,
> =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 uint32_t pool)
&= gt; @@ -847,7 +847,7 @@ eth_ark_macaddr_add(struct rte_eth_dev *dev,
>= ; =C2=A0}
>
> =C2=A0static void
> -eth_ark_macaddr_remove= (struct rte_eth_dev *dev, uint32_t index)
> +ark_macaddr_remove(struc= t rte_eth_dev *dev, uint32_t index)
> =C2=A0{
> =C2=A0 =C2=A0 = =C2=A0 =C2=A0 struct ark_adapter *ark =3D dev->data->dev_private;
= >
> @@ -857,7 +857,7 @@ eth_ark_macaddr_remove(struct rte_eth_dev = *dev, uint32_t index)
> =C2=A0}
>
> =C2=A0static int
&= gt; -eth_ark_set_default_mac_addr(struct rte_eth_dev *dev,
> +ark_set= _default_mac_addr(struct rte_eth_dev *dev,
> =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0struct rte_ether_addr *mac_addr)
> =C2=A0{
> =C2=A0 =C2= =A0 =C2=A0 =C2=A0 struct ark_adapter *ark =3D dev->data->dev_private;=
> @@ -871,7 +871,7 @@ eth_ark_set_default_mac_addr(struct rte_eth_de= v *dev,
> =C2=A0}
>
> =C2=A0static int
> -eth_ark_s= et_mtu(struct rte_eth_dev *dev, uint16_t =C2=A0size)
> +ark_set_mtu(s= truct rte_eth_dev *dev, uint16_t =C2=A0size)
> =C2=A0{
> =C2=A0= =C2=A0 =C2=A0 =C2=A0 struct ark_adapter *ark =3D dev->data->dev_priv= ate;
>
> @@ -936,7 +936,7 @@ process_file_args(const char *key,= const char *value, void *extra_args)
> =C2=A0}
>
> =C2= =A0static int
> -eth_ark_check_args(struct ark_adapter *ark, const ch= ar *params)
> +ark_check_args(struct ark_adapter *ark, const char *pa= rams)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct rte_kvargs= *kvlist;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 unsigned int k_idx;
> d= iff --git a/drivers/net/ark/ark_ethdev_rx.c b/drivers/net/ark/ark_ethdev_rx= .c
> index 8b18d93eaa..f221137931 100644
> --- a/drivers/net/ar= k/ark_ethdev_rx.c
> +++ b/drivers/net/ark/ark_ethdev_rx.c
> @@ = -22,11 +22,11 @@ struct ark_rx_meta;
>
> =C2=A0static void dump= _mbuf_data(struct rte_mbuf *mbuf, uint16_t lo, uint16_t hi);
> =C2=A0= static void ark_ethdev_rx_dump(const char *name, struct ark_rx_queue *queue= );
> -static uint32_t eth_ark_rx_jumbo(struct ark_rx_queue *queue,> +static uint32_t ark_rx_jumbo(struct ark_rx_queue *queue,
> =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0struct ark_rx_meta *meta,
> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0struct rte_mbuf *mbuf0,
>= ; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0uint32_t cons_index);
> = -static inline int eth_ark_rx_seed_mbufs(struct ark_rx_queue *queue);
&g= t; +static inline int ark_rx_seed_mbufs(struct ark_rx_queue *queue);
>= ;
> =C2=A0/* ********************************************************= ***************** */
> =C2=A0struct __rte_cache_aligned ark_rx_queue = {
> @@ -67,7 +67,7 @@ struct __rte_cache_aligned ark_rx_queue {
&g= t;
> =C2=A0/* *******************************************************= ****************** */
> =C2=A0static int
> -eth_ark_rx_hw_setup= (struct rte_eth_dev *dev,
> +ark_rx_hw_setup(struct rte_eth_dev *dev,=
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 struct ark_rx_queue *queue,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 uint16_t rx_queue_idx)
> =C2=A0{> @@ -100,18 +100,18 @@ eth_ark_rx_hw_setup(struct rte_eth_dev *dev,> =C2=A0}
>
> =C2=A0static inline void
> -eth_ark_rx= _update_cons_index(struct ark_rx_queue *queue, uint32_t cons_index)
>= +ark_rx_update_cons_index(struct ark_rx_queue *queue, uint32_t cons_index)=
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 queue->cons_index = =3D cons_index;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ((cons_index + queue= ->queue_size - queue->seed_index) >=3D ARK_RX_MPU_CHUNK) {
>= - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth_ark_rx_seed_mbufs(q= ueue);
> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_rx_se= ed_mbufs(queue);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 ark_mpu_set_producer(queue->mpu, queue->seed_index);
> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
> =C2=A0}
>
> =C2=A0/* ****= ********************************************************************* */> =C2=A0int
> -eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev= ,
> +ark_dev_rx_queue_setup(struct rte_eth_dev *dev,
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0uint16_t queue_idx,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0uint16= _t nb_desc,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0unsigned int socket_id,
> @= @ -129,7 +129,7 @@ eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev,
&= gt;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* We may already be setup, free me= mory prior to re-allocation */
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (dev-= >data->rx_queues[queue_idx] !=3D NULL) {
> - =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth_ark_dev_rx_queue_release(dev->data-&= gt;rx_queues[queue_idx]);
> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ark_dev_rx_queue_release(dev->data->rx_queues[queue_idx]);=
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 dev->da= ta->rx_queues[queue_idx] =3D NULL;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 }=
>
> @@ -215,7 +215,7 @@ eth_ark_dev_rx_queue_setup(struct rte_= eth_dev *dev,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_udm_queue_stats_reset= (queue->udm);
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* populate mb= uf reserve */
> - =C2=A0 =C2=A0 =C2=A0 status =3D eth_ark_rx_seed_mbu= fs(queue);
> + =C2=A0 =C2=A0 =C2=A0 status =3D ark_rx_seed_mbufs(queu= e);
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (queue->seed_index != =3D nb_desc) {
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ARK_PMD_LOG(ERR, "Failed to allocate %u mbufs for RX queue %d\n&qu= ot;,
> @@ -224,7 +224,7 @@ eth_ark_dev_rx_queue_setup(struct rte_eth_= dev *dev,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 /* MPU Setup */
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (status = =3D=3D 0)
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 status= =3D eth_ark_rx_hw_setup(dev, queue, queue_idx);
> + =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 status =3D ark_rx_hw_setup(dev, queue, q= ueue_idx);
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (unlikely(status = !=3D 0)) {
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = struct rte_mbuf **mbuf;
> @@ -248,7 +248,7 @@ eth_ark_dev_rx_queue_se= tup(struct rte_eth_dev *dev,
>
> =C2=A0/* *********************= **************************************************** */
> =C2=A0uint1= 6_t
> -eth_ark_recv_pkts(void *rx_queue,
> +ark_recv_pkts(void = *rx_queue,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 struct rte_mbuf **rx_pkts,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 uint16_t nb_pkts)
> =C2=A0{
> @= @ -267,7 +267,7 @@ eth_ark_recv_pkts(void *rx_queue,
> =C2=A0 =C2=A0 = =C2=A0 =C2=A0 if (unlikely(nb_pkts =3D=3D 0))
> =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return 0;
> =C2=A0 =C2=A0 =C2=A0 = =C2=A0 if (unlikely(queue->starvation))
> - =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth_ark_rx_seed_mbufs(queue);
> + =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_rx_seed_mbufs(queue);
>=
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 prod_index =3D queue->prod_index;> =C2=A0 =C2=A0 =C2=A0 =C2=A0 cons_index =3D queue->cons_index;
= > @@ -318,7 +318,7 @@ eth_ark_recv_pkts(void *rx_queue,
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
>
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (unlikely(meta->pkt_= len > queue->dataroom)) {
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 uint32_t tcons =3D eth_ark_rx= _jumbo(queue, meta, mbuf, cons_index + 1);
> + =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 uint32_t tcons =3D = ark_rx_jumbo(queue, meta, mbuf, cons_index + 1);
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ((int= 32_t)(prod_index - tcons) >=3D 0)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 cons_index =3D tcons; /* nominal condition */
> =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 e= lse
> @@ -340,14 +340,14 @@ eth_ark_recv_pkts(void *rx_queue,
>= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rx_user_meta_hook(= mbuf, meta->user_meta, queue->ext_user_data);
> =C2=A0 =C2=A0 = =C2=A0 =C2=A0 }
>
> - =C2=A0 =C2=A0 =C2=A0 eth_ark_rx_update_co= ns_index(queue, cons_index);
> + =C2=A0 =C2=A0 =C2=A0 ark_rx_update_c= ons_index(queue, cons_index);
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 r= eturn nb;
> =C2=A0}
>
> =C2=A0/* ************************= ************************************************* */
> =C2=A0static u= int32_t
> -eth_ark_rx_jumbo(struct ark_rx_queue *queue,
> +ark_= rx_jumbo(struct ark_rx_queue *queue,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0struct ark_rx_meta *meta,
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0struct rte_mbuf *mbu= f0,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0u= int32_t cons_index)
> @@ -388,7 +388,7 @@ eth_ark_rx_jumbo(struct ark= _rx_queue *queue,
>
> =C2=A0/* Drain the internal queue allowin= g hw to clear out. */
> =C2=A0static void
> -eth_ark_rx_queue_d= rain(struct ark_rx_queue *queue)
> +ark_rx_queue_drain(struct ark_rx_= queue *queue)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 register = uint32_t cons_index;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct rte_mbuf *m= buf;
> @@ -400,12 +400,12 @@ eth_ark_rx_queue_drain(struct ark_rx_que= ue *queue)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = mbuf =3D queue->reserve_q[cons_index & queue->queue_mask];
>= ; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rte_pktmbuf_free(= mbuf);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cons= _index++;
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth_ar= k_rx_update_cons_index(queue, cons_index);
> + =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_rx_update_cons_index(queue, cons_index);> =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
> =C2=A0}
>
> =C2=A0i= nt
> -eth_ark_dev_rx_queue_count(void *rx_queue)
> +ark_dev_rx_= queue_count(void *rx_queue)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 = =C2=A0 struct ark_rx_queue *queue;
>
> @@ -415,7 +415,7 @@ eth_= ark_dev_rx_queue_count(void *rx_queue)
>
> =C2=A0/* ***********= ************************************************************** */
> = =C2=A0int
> -eth_ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t= queue_id)
> +ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t qu= eue_id)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_rx_q= ueue *queue;
>
> @@ -438,7 +438,7 @@ eth_ark_rx_start_queue(str= uct rte_eth_dev *dev, uint16_t queue_id)
> =C2=A0/* Queue can be rest= arted. =C2=A0 data remains
> =C2=A0 */
> =C2=A0int
> -eth= _ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id)
> +ark= _rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id)
> =C2=A0{<= br>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_rx_queue *queue;
>
= > @@ -455,7 +455,7 @@ eth_ark_rx_stop_queue(struct rte_eth_dev *dev, uin= t16_t queue_id)
>
> =C2=A0/* **********************************= *************************************** */
> =C2=A0static inline int<= br>> -eth_ark_rx_seed_mbufs(struct ark_rx_queue *queue)
> +ark_rx_= seed_mbufs(struct ark_rx_queue *queue)
> =C2=A0{
> =C2=A0 =C2= =A0 =C2=A0 =C2=A0 uint32_t limit =3D RTE_ALIGN_FLOOR(queue->cons_index, = ARK_RX_MPU_CHUNK) +
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 queue->queue_size;
> @@ -539,7 +539,7 @@ eth_ark_rx_see= d_mbufs(struct ark_rx_queue *queue)
> =C2=A0}
>
> =C2=A0v= oid
> -eth_ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_= id,
> +ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_id,<= br>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 const char *msg)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 = =C2=A0 struct ark_rx_queue *queue;
> @@ -552,7 +552,7 @@ eth_ark_rx_d= ump_queue(struct rte_eth_dev *dev, uint16_t queue_id,
> =C2=A0/* ****= ********************************************************************* */> =C2=A0/* Call on device closed no user API, queue is stopped */
&g= t; =C2=A0void
> -eth_ark_dev_rx_queue_release(void *vqueue)
> += ark_dev_rx_queue_release(void *vqueue)
> =C2=A0{
> =C2=A0 =C2= =A0 =C2=A0 =C2=A0 struct ark_rx_queue *queue;
>
> @@ -565,7 +56= 5,7 @@ eth_ark_dev_rx_queue_release(void *vqueue)
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ark_mpu_stop(queue->mpu);
>
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 /* Need to clear out mbufs here, dropping packets along the way = */
> - =C2=A0 =C2=A0 =C2=A0 eth_ark_rx_queue_drain(queue);
> + = =C2=A0 =C2=A0 =C2=A0 ark_rx_queue_drain(queue);
>
> =C2=A0 =C2= =A0 =C2=A0 =C2=A0 rte_free(queue->reserve_q);
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 rte_free(queue->paddress_q);
> @@ -573,7 +573,7 @@ eth_= ark_dev_rx_queue_release(void *vqueue)
> =C2=A0}
>
> =C2= =A0void
> -eth_rx_queue_stats_get(void *vqueue, struct rte_eth_stats = *stats)
> +ark_rx_queue_stats_get(void *vqueue, struct rte_eth_stats = *stats)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_rx_q= ueue *queue;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_udm_t *udm;
= > @@ -596,7 +596,7 @@ eth_rx_queue_stats_get(void *vqueue, struct rte_et= h_stats *stats)
> =C2=A0}
>
> =C2=A0void
> -eth_rx_= queue_stats_reset(void *vqueue)
> +ark_rx_queue_stats_reset(void *vqu= eue)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_rx_queu= e *queue;
>
> diff --git a/drivers/net/ark/ark_ethdev_rx.h b/dr= ivers/net/ark/ark_ethdev_rx.h
> index 12d4f61637..7a5bab20a9 100644> --- a/drivers/net/ark/ark_ethdev_rx.h
> +++ b/drivers/net/ark/= ark_ethdev_rx.h
> @@ -11,21 +11,21 @@
> =C2=A0#include <rte_= mempool.h>
> =C2=A0#include <ethdev_driver.h>
>
>= ; -int eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev,
> +int ark= _dev_rx_queue_setup(struct rte_eth_dev *dev,
> =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0uint16_t queue_idx,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0uint16_t nb_desc,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0un= signed int socket_id,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0const str= uct rte_eth_rxconf *rx_conf,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0st= ruct rte_mempool *mp);
> -int eth_ark_dev_rx_queue_count(void *rx_que= ue);
> -int eth_ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t q= ueue_id);
> -int eth_ark_rx_start_queue(struct rte_eth_dev *dev, uint= 16_t queue_id);
> -uint16_t eth_ark_recv_pkts(void *rx_queue, struct = rte_mbuf **rx_pkts,
> +int ark_dev_rx_queue_count(void *rx_queue);> +int ark_rx_stop_queue(struct rte_eth_dev *dev, uint16_t queue_id);> +int ark_rx_start_queue(struct rte_eth_dev *dev, uint16_t queue_id);=
> +uint16_t ark_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,=
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0uint16_t nb_pkts);
> -void eth_ark_dev= _rx_queue_release(void *rx_queue);
> -void eth_rx_queue_stats_get(voi= d *vqueue, struct rte_eth_stats *stats);
> -void eth_rx_queue_stats_r= eset(void *vqueue);
> -void eth_ark_rx_dump_queue(struct rte_eth_dev = *dev, uint16_t queue_id,
> +void ark_dev_rx_queue_release(void *rx_qu= eue);
> +void ark_rx_queue_stats_get(void *vqueue, struct rte_eth_sta= ts *stats);
> +void ark_rx_queue_stats_reset(void *vqueue);
> += void ark_rx_dump_queue(struct rte_eth_dev *dev, uint16_t queue_id,
> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0const char *msg);
>
> =C2=A0#endif
&= gt; diff --git a/drivers/net/ark/ark_ethdev_tx.c b/drivers/net/ark/ark_ethd= ev_tx.c
> index ca6cd297a1..2c61cd5486 100644
> --- a/drivers/n= et/ark/ark_ethdev_tx.c
> +++ b/drivers/net/ark/ark_ethdev_tx.c
>= ; @@ -53,15 +53,15 @@ struct __rte_cache_aligned ark_tx_queue {
> =C2= =A0};
>
> =C2=A0/* Forward declarations */
> -static int = eth_ark_tx_jumbo(struct ark_tx_queue *queue,
> +static int ark_tx_jum= bo(struct ark_tx_queue *queue,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct rte_m= buf *mbuf,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 uint32_t *user_meta, uint8_t meta= _cnt);
> -static int eth_ark_tx_hw_queue_config(struct ark_tx_queue *= queue);
> +static int ark_tx_hw_queue_config(struct ark_tx_queue *que= ue);
> =C2=A0static void free_completed_tx(struct ark_tx_queue *queue= );
>
> =C2=A0/* ***********************************************= ************************** */
> =C2=A0static inline void
> -eth= _ark_tx_desc_fill(struct ark_tx_queue *queue,
> +ark_tx_desc_fill(str= uct ark_tx_queue *queue,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0struct rte_mbuf *mbuf,
> =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0uint8_t = =C2=A0flags,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0uint32_t *user_meta,
> @@ -101,7 +101,7 @@ et= h_ark_tx_desc_fill(struct ark_tx_queue *queue,
>
> =C2=A0/* ***= ********************************************************************** */> =C2=A0uint16_t
> -eth_ark_xmit_pkts(void *vtxq, struct rte_mbu= f **tx_pkts, uint16_t nb_pkts)
> +ark_xmit_pkts(void *vtxq, struct rt= e_mbuf **tx_pkts, uint16_t nb_pkts)
> =C2=A0{
> =C2=A0 =C2=A0 = =C2=A0 =C2=A0 struct ark_tx_queue *queue;
> =C2=A0 =C2=A0 =C2=A0 =C2= =A0 struct rte_mbuf *mbuf;
> @@ -159,12 +159,12 @@ eth_ark_xmit_pkts(= void *vtxq, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
> =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 t= x_user_meta_hook(mbuf, user_meta, &user_len,
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 queue->ext_user_= data);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (= unlikely(mbuf->nb_segs !=3D 1)) {
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 stat =3D eth_ark_tx_jumbo(= queue, mbuf,
> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 stat =3D ark_tx_jumbo(queue, mbuf,
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 user_meta, user_len);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (unlikely(stat !=3D= 0))
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 break; =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0/* Queue is full */
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 } else {
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 eth_ark_tx_desc_fill(queue= , mbuf,
> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 ark_tx_desc_fill(queue, mbuf,
> =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0AR= K_DDM_SOP | ARK_DDM_EOP,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0user_meta, user_len);
> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
> @@ -195,7= +195,7 @@ eth_ark_xmit_pkts(void *vtxq, struct rte_mbuf **tx_pkts, uint16_= t nb_pkts)
>
> =C2=A0/* ***************************************= ********************************** */
> =C2=A0static int
> -eth= _ark_tx_jumbo(struct ark_tx_queue *queue, struct rte_mbuf *mbuf,
> +a= rk_tx_jumbo(struct ark_tx_queue *queue, struct rte_mbuf *mbuf,
> =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0uint32_t *user_m= eta, uint8_t meta_cnt)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 = struct rte_mbuf *next;
> @@ -212,7 +212,7 @@ eth_ark_tx_jumbo(struct = ark_tx_queue *queue, struct rte_mbuf *mbuf,
> =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 next =3D mbuf->next;
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 flags |=3D (next =3D=3D NU= LL) ? ARK_DDM_EOP : 0;
>
> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 eth_ark_tx_desc_fill(queue, mbuf, flags, user_meta, meta_cnt= );
> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ark_tx_desc_f= ill(queue, mbuf, flags, user_meta, meta_cnt);
>
> =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 flags &=3D ~ARK_DDM_SOP; =C2= =A0/* drop SOP flags */
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 meta_cnt =3D 0; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* Meta on= ly on SOP */
> @@ -224,7 +224,7 @@ eth_ark_tx_jumbo(struct ark_tx_que= ue *queue, struct rte_mbuf *mbuf,
>
> =C2=A0/* ****************= ********************************************************* */
> =C2=A0= int
> -eth_ark_tx_queue_setup(struct rte_eth_dev *dev,
> +ark_t= x_queue_setup(struct rte_eth_dev *dev,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0uint16_t queue_idx,<= br>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0uint16_t nb_desc,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0unsigned int socket_id,=
> @@ -291,7 +291,7 @@ eth_ark_tx_queue_setup(struct rte_eth_dev *dev= ,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 queue->ddm =3D RTE_PTR_ADD(ark->= ;ddm.v, qidx * ARK_DDM_QOFFSET);
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 queue-= >mpu =3D RTE_PTR_ADD(ark->mputx.v, qidx * ARK_MPU_QOFFSET);
>> - =C2=A0 =C2=A0 =C2=A0 status =3D eth_ark_tx_hw_queue_config(queue);=
> + =C2=A0 =C2=A0 =C2=A0 status =3D ark_tx_hw_queue_config(queue);>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (unlikely(status !=3D 0)) {> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rte_free(que= ue->meta_q);
> @@ -305,7 +305,7 @@ eth_ark_tx_queue_setup(struct r= te_eth_dev *dev,
>
> =C2=A0/* *********************************= **************************************** */
> =C2=A0static int
>= ; -eth_ark_tx_hw_queue_config(struct ark_tx_queue *queue)
> +ark_tx_h= w_queue_config(struct ark_tx_queue *queue)
> =C2=A0{
> =C2=A0 = =C2=A0 =C2=A0 =C2=A0 rte_iova_t queue_base, ring_base, cons_index_addr;
= >
> @@ -333,7 +333,7 @@ eth_ark_tx_hw_queue_config(struct ark_tx_q= ueue *queue)
>
> =C2=A0/* *************************************= ************************************ */
> =C2=A0void
> -eth_ark= _tx_queue_release(void *vtx_queue)
> +ark_tx_queue_release(void *vtx_= queue)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_tx_qu= eue *queue;
>
> @@ -352,7 +352,7 @@ eth_ark_tx_queue_release(vo= id *vtx_queue)
>
> =C2=A0/* ***********************************= ************************************** */
> =C2=A0int
> -eth_ar= k_tx_queue_stop(struct rte_eth_dev *dev, uint16_t queue_id)
> +ark_tx= _queue_stop(struct rte_eth_dev *dev, uint16_t queue_id)
> =C2=A0{
= > =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_tx_queue *queue;
> =C2=A0= =C2=A0 =C2=A0 =C2=A0 int cnt =3D 0;
> @@ -376,7 +376,7 @@ eth_ark_tx= _queue_stop(struct rte_eth_dev *dev, uint16_t queue_id)
> =C2=A0}
= >
> =C2=A0int
> -eth_ark_tx_queue_start(struct rte_eth_dev *= dev, uint16_t queue_id)
> +ark_tx_queue_start(struct rte_eth_dev *dev= , uint16_t queue_id)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 st= ruct ark_tx_queue *queue;
>
> @@ -415,7 +415,7 @@ free_complete= d_tx(struct ark_tx_queue *queue)
>
> =C2=A0/* *****************= ******************************************************** */
> =C2=A0v= oid
> -eth_tx_queue_stats_get(void *vqueue, struct rte_eth_stats *sta= ts)
> +ark_tx_queue_stats_get(void *vqueue, struct rte_eth_stats *sta= ts)
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_tx_queue= *queue;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_ddm_t *ddm;
>= @@ -435,7 +435,7 @@ eth_tx_queue_stats_get(void *vqueue, struct rte_eth_st= ats *stats)
> =C2=A0}
>
> =C2=A0void
> -eth_tx_queu= e_stats_reset(void *vqueue)
> +ark_tx_queue_stats_reset(void *vqueue)=
> =C2=A0{
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_tx_queue *q= ueue;
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ark_ddm_t *ddm;
> di= ff --git a/drivers/net/ark/ark_ethdev_tx.h b/drivers/net/ark/ark_ethdev_tx.= h
> index 7134dbfeed..ee66ed19cc 100644
> --- a/drivers/net/ark= /ark_ethdev_tx.h
> +++ b/drivers/net/ark/ark_ethdev_tx.h
> @@ -= 10,18 +10,18 @@
> =C2=A0#include <ethdev_driver.h>
>
&= gt;
> -uint16_t eth_ark_xmit_pkts(void *vtxq,
> +uint16_t ark_x= mit_pkts(void *vtxq,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0struct rte_mbuf **tx_pk= ts,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0uint16_t nb_pkts);
> -int eth_ark_t= x_queue_setup(struct rte_eth_dev *dev,
> +int ark_tx_queue_setup(stru= ct rte_eth_dev *dev,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0uint16_t queue_idx,
= > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0uint16_t nb_desc,
> =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0unsigned int socket_id,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0const struct rte= _eth_txconf *tx_conf);
> -void eth_ark_tx_queue_release(void *vtx_que= ue);
> -int eth_ark_tx_queue_stop(struct rte_eth_dev *dev, uint16_t q= ueue_id);
> -int eth_ark_tx_queue_start(struct rte_eth_dev *dev, uint= 16_t queue_id);
> -void eth_tx_queue_stats_get(void *vqueue, struct r= te_eth_stats *stats);
> -void eth_tx_queue_stats_reset(void *vqueue);=
> +void ark_tx_queue_release(void *vtx_queue);
> +int ark_tx_q= ueue_stop(struct rte_eth_dev *dev, uint16_t queue_id);
> +int ark_tx_= queue_start(struct rte_eth_dev *dev, uint16_t queue_id);
> +void ark_= tx_queue_stats_get(void *vqueue, struct rte_eth_stats *stats);
> +voi= d ark_tx_queue_stats_reset(void *vqueue);
>
> =C2=A0#endif
&= gt; --
> 2.47.3
>
--0000000000001b9c210640be6e62--