From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by dpdk.org (Postfix) with ESMTP id 91C581B1DA for ; Tue, 9 Oct 2018 00:31:51 +0200 (CEST) Received: by mail-pg1-f195.google.com with SMTP id t70-v6so8432638pgd.12 for ; Mon, 08 Oct 2018 15:31:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dcI8WjknUrtNB+pQniX8FnAnU92I7+iBavs38cYZcR0=; b=KdABaDtSM6WWbFDS0SyYNXeXyvfCIAmk1WSuMlm/XM2D151/tBjiZckUYzTfY2N1Zz lLISzDqgdz7egNnJkjfvY6DocdHVIZ9xlqSCVoT+feHDR2EIE0M+cCmimLViRSZVHnzn kqt6h1hz4zlZK/u7ap9Z+yrq/njnK+Vc/LRulL05iZWebFKqJgTXM3GF8BhXdjSF50H8 p+QWeVhW1Nu6vJnln+A2WOZpgYaf87jOKDRv0Fq/7VD3QC7fTXKtwj+vkzjHMSF4ax7G XJWXOFnZVxoz3gdlgFFLAI9OGQRPXKpS/64eTaLc8nqfjVKk4V1AE3h1umHYGkC7MVed M5OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dcI8WjknUrtNB+pQniX8FnAnU92I7+iBavs38cYZcR0=; b=XbOxlQQiWyvF6EIZO/gvWiajptH42ZcLpUN9fyn6pzmQQ+Fhwjr2w/Vo/kjsDICx24 /AuEYq+QtKaCdzC4T9HU0ItOYFEvnbc0XVzDT0600jk29irNyc5WluPK+J8+s3mfD16V wbd9fyMIKyJyMq1QN0JrRqkFzB/H2oy6ohrDtoh/1kbqbjz1ka7Qayk/38vEjD7WkWVW I4b0Z0SSLMm0+lMTa9ZlOJc0qlZUhh+WryPbJnCev2XRKilWfw5dQ8Wn5Gx1A+GI8iuP LkcfJ8B4t5yZzNsHyr/Fa/J1pwEB4l7jgJi46O3VXLjdLcSEqQmYmBqYKMIoKvcBxC7G eRQA== X-Gm-Message-State: ABuFfogAf3GZ6soHgpxfnvsLcK2MZlaUppHAqIfK6rVkrKIq7vjysxik NbhBuRolWl+HF+o3hVp8lKnSFw== X-Google-Smtp-Source: ACcGV61njyGWtX3Uup0fkTVguiX35q+lIBLWtisI+axsxIZ50Iv4T8DrEo+ON3CzppJ5FkbzZFh+WA== X-Received: by 2002:a63:6d83:: with SMTP id i125-v6mr22298350pgc.215.1539037910505; Mon, 08 Oct 2018 15:31:50 -0700 (PDT) Received: from xeon-e3.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id w127-v6sm23593150pfd.112.2018.10.08.15.31.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Oct 2018 15:31:49 -0700 (PDT) From: Stephen Hemminger To: Gaetan Rivet Cc: dev@dpdk.org, Stephen Hemminger Date: Mon, 8 Oct 2018 15:31:40 -0700 Message-Id: <20181008223140.8190-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] failsafe: use prefix for set_burst_fn X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2018 22:31:51 -0000 All other visible functions in failsafe driver have 'failsafe_' prefix. Signed-off-by: Stephen Hemminger --- drivers/net/failsafe/failsafe_ether.c | 2 +- drivers/net/failsafe/failsafe_private.h | 4 ++-- drivers/net/failsafe/failsafe_rxtx.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/failsafe/failsafe_ether.c b/drivers/net/failsafe/failsafe_ether.c index 51c96f78ba71..b0376c931c63 100644 --- a/drivers/net/failsafe/failsafe_ether.c +++ b/drivers/net/failsafe/failsafe_ether.c @@ -571,7 +571,7 @@ failsafe_eth_rmv_event_callback(uint16_t port_id __rte_unused, /* Switch as soon as possible tx_dev. */ fs_switch_dev(sdev->fs_dev, sdev); /* Use safe bursts in any case. */ - set_burst_fn(sdev->fs_dev, 1); + failsafe_set_burst_fn(sdev->fs_dev, 1); /* * Async removal, the sub-PMD will try to unregister * the callback at the source of the current thread context. diff --git a/drivers/net/failsafe/failsafe_private.h b/drivers/net/failsafe/failsafe_private.h index abbe73e872fa..7845c68fed16 100644 --- a/drivers/net/failsafe/failsafe_private.h +++ b/drivers/net/failsafe/failsafe_private.h @@ -190,7 +190,7 @@ int failsafe_hotplug_alarm_cancel(struct rte_eth_dev *dev); /* RX / TX */ -void set_burst_fn(struct rte_eth_dev *dev, int force_safe); +void failsafe_set_burst_fn(struct rte_eth_dev *dev, int force_safe); uint16_t failsafe_rx_burst(void *rxq, struct rte_mbuf **rx_pkts, uint16_t nb_pkts); @@ -470,7 +470,7 @@ fs_switch_dev(struct rte_eth_dev *dev, } else { return; } - set_burst_fn(dev, 0); + failsafe_set_burst_fn(dev, 0); rte_wmb(); } diff --git a/drivers/net/failsafe/failsafe_rxtx.c b/drivers/net/failsafe/failsafe_rxtx.c index 7bd0f963e5da..034f47b87f83 100644 --- a/drivers/net/failsafe/failsafe_rxtx.c +++ b/drivers/net/failsafe/failsafe_rxtx.c @@ -29,7 +29,7 @@ fs_tx_unsafe(struct sub_device *sdev) } void -set_burst_fn(struct rte_eth_dev *dev, int force_safe) +failsafe_set_burst_fn(struct rte_eth_dev *dev, int force_safe) { struct sub_device *sdev; uint8_t i; -- 2.19.1