From: Eric Engestrom <eric.engestrom@imgtec.com>
To: "David S. Miller" <davem@davemloft.net>,
Scott Feldman <sfeldma@gmail.com>, Jiri Pirko <jiri@mellanox.com>,
Nicolas Dichtel <nicolas.dichtel@6wind.com>,
Roopa Prabhu <roopa@cumulusnetworks.com>,
Daniel Borkmann <daniel@iogearbox.net>,
WANG Cong <xiyou.wangcong@gmail.com>,
Hannes Frederic Sowa <hannes@stressinduktion.org>,
Eran Ben Elisha <eranbe@mellanox.com>,
Thomas Graf <tgraf@suug.ch>,
Hubert Sokolowski <hubert.sokolowski@intel.com>,
<netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: Eric Engestrom <eric.engestrom@imgtec.com>
Subject: [PATCH] net/rtnetlink: remove dead code
Date: Mon, 29 Feb 2016 16:36:38 +0000 [thread overview]
Message-ID: <1456763798-629-1-git-send-email-eric.engestrom@imgtec.com> (raw)
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
next reply other threads:[~2016-02-29 16:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-29 16:36 Eric Engestrom [this message]
2016-03-02 20:02 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1456763798-629-1-git-send-email-eric.engestrom@imgtec.com \
--to=eric.engestrom@imgtec.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=eranbe@mellanox.com \
--cc=hannes@stressinduktion.org \
--cc=hubert.sokolowski@intel.com \
--cc=jiri@mellanox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nicolas.dichtel@6wind.com \
--cc=roopa@cumulusnetworks.com \
--cc=sfeldma@gmail.com \
--cc=tgraf@suug.ch \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®