mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] net/rtnetlink: remove dead code
@ 2016-02-29 16:36 Eric Engestrom
  2016-03-02 20:02 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Engestrom @ 2016-02-29 16:36 UTC (permalink / raw)
  To: David S. Miller, Scott Feldman, Jiri Pirko, Nicolas Dichtel,
	Roopa Prabhu, Daniel Borkmann, WANG Cong, Hannes Frederic Sowa,
	Eran Ben Elisha, Thomas Graf, Hubert Sokolowski, netdev,
	linux-kernel
  Cc: Eric Engestrom

3b766cd832328fcb87db3507e7b98cf42f21689d ("net/core: Add reading VF
statistics through the PF netdevice") added that variable but it's never
been used.

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 net/core/rtnetlink.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index d735e85..35abefc 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1389,15 +1389,6 @@ static const struct nla_policy ifla_vf_policy[IFLA_VF_MAX+1] = {
 	[IFLA_VF_TRUST]		= { .len = sizeof(struct ifla_vf_trust) },
 };
 
-static const struct nla_policy ifla_vf_stats_policy[IFLA_VF_STATS_MAX + 1] = {
-	[IFLA_VF_STATS_RX_PACKETS]	= { .type = NLA_U64 },
-	[IFLA_VF_STATS_TX_PACKETS]	= { .type = NLA_U64 },
-	[IFLA_VF_STATS_RX_BYTES]	= { .type = NLA_U64 },
-	[IFLA_VF_STATS_TX_BYTES]	= { .type = NLA_U64 },
-	[IFLA_VF_STATS_BROADCAST]	= { .type = NLA_U64 },
-	[IFLA_VF_STATS_MULTICAST]	= { .type = NLA_U64 },
-};
-
 static const struct nla_policy ifla_port_policy[IFLA_PORT_MAX+1] = {
 	[IFLA_PORT_VF]		= { .type = NLA_U32 },
 	[IFLA_PORT_PROFILE]	= { .type = NLA_STRING,
-- 
2.7.1

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

* Re: [PATCH] net/rtnetlink: remove dead code
  2016-02-29 16:36 [PATCH] net/rtnetlink: remove dead code Eric Engestrom
@ 2016-03-02 20:02 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-03-02 20:02 UTC (permalink / raw)
  To: eric.engestrom
  Cc: sfeldma, jiri, nicolas.dichtel, roopa, daniel, xiyou.wangcong,
	hannes, eranbe, tgraf, hubert.sokolowski, netdev, linux-kernel

From: Eric Engestrom <eric.engestrom@imgtec.com>
Date: Mon, 29 Feb 2016 16:36:38 +0000

> 3b766cd832328fcb87db3507e7b98cf42f21689d ("net/core: Add reading VF
> statistics through the PF netdevice") added that variable but it's never
> been used.
> 
> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>

Applied.

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

end of thread, other threads:[~2016-03-02 20:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-29 16:36 [PATCH] net/rtnetlink: remove dead code Eric Engestrom
2016-03-02 20:02 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®