DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/netvsc: remove unused function hn_vf_reset()
@ 2023-07-11 19:12 longli
  2023-07-11 20:32 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: longli @ 2023-07-11 19:12 UTC (permalink / raw)
  To: Ferruh Yigit, Andrew Rybchenko; +Cc: dev, Ajay Sharma, Long Li

From: Long Li <longli@microsoft.com>

hn_vf_reset() is defined but not used. Remove it.

Signed-off-by: Long Li <longli@microsoft.com>
---
 drivers/net/netvsc/hn_var.h | 1 -
 drivers/net/netvsc/hn_vf.c  | 5 -----
 2 files changed, 6 deletions(-)

diff --git a/drivers/net/netvsc/hn_var.h b/drivers/net/netvsc/hn_var.h
index 98a3b83033..e1f8e69a28 100644
--- a/drivers/net/netvsc/hn_var.h
+++ b/drivers/net/netvsc/hn_var.h
@@ -248,7 +248,6 @@ int	hn_vf_configure_locked(struct rte_eth_dev *dev,
 			       const struct rte_eth_conf *dev_conf);
 const uint32_t *hn_vf_supported_ptypes(struct rte_eth_dev *dev);
 int	hn_vf_start(struct rte_eth_dev *dev);
-void	hn_vf_reset(struct rte_eth_dev *dev);
 int	hn_vf_close(struct rte_eth_dev *dev);
 int	hn_vf_stop(struct rte_eth_dev *dev);
 
diff --git a/drivers/net/netvsc/hn_vf.c b/drivers/net/netvsc/hn_vf.c
index 40981706d5..782395d805 100644
--- a/drivers/net/netvsc/hn_vf.c
+++ b/drivers/net/netvsc/hn_vf.c
@@ -534,11 +534,6 @@ int hn_vf_stop(struct rte_eth_dev *dev)
 		return ret;					\
 	}
 
-void hn_vf_reset(struct rte_eth_dev *dev)
-{
-	VF_ETHDEV_FUNC(dev, rte_eth_dev_reset);
-}
-
 int hn_vf_close(struct rte_eth_dev *dev)
 {
 	int ret = 0;
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net/netvsc: remove unused function hn_vf_reset()
  2023-07-11 19:12 [PATCH] net/netvsc: remove unused function hn_vf_reset() longli
@ 2023-07-11 20:32 ` Stephen Hemminger
  2023-07-12  9:40   ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2023-07-11 20:32 UTC (permalink / raw)
  To: longli; +Cc: longli, Ferruh Yigit, Andrew Rybchenko, dev, Ajay Sharma

On Tue, 11 Jul 2023 12:12:30 -0700
longli@linuxonhyperv.com wrote:

> From: Long Li <longli@microsoft.com>
> 
> hn_vf_reset() is defined but not used. Remove it.
> 
> Signed-off-by: Long Li <longli@microsoft.com>

Acked-by: Stephen Hemminger <stephen@networkplumber.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net/netvsc: remove unused function hn_vf_reset()
  2023-07-11 20:32 ` Stephen Hemminger
@ 2023-07-12  9:40   ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2023-07-12  9:40 UTC (permalink / raw)
  To: Stephen Hemminger, longli; +Cc: longli, Andrew Rybchenko, dev, Ajay Sharma

On 7/11/2023 9:32 PM, Stephen Hemminger wrote:
> On Tue, 11 Jul 2023 12:12:30 -0700
> longli@linuxonhyperv.com wrote:
> 
>> From: Long Li <longli@microsoft.com>
>>
>> hn_vf_reset() is defined but not used. Remove it.
>>
>> Signed-off-by: Long Li <longli@microsoft.com>
> 
> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
>

Applied to dpdk-next-net/main, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-12  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-11 19:12 [PATCH] net/netvsc: remove unused function hn_vf_reset() longli
2023-07-11 20:32 ` Stephen Hemminger
2023-07-12  9:40   ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).