Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1345972 > unrolled thread
| Started by | Eric Engestrom <eric.engestrom@imgtec.com> |
|---|---|
| First post | 2016-02-29 17:40 +0100 |
| Last post | 2016-03-02 21:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] net/rtnetlink: remove dead code Eric Engestrom <eric.engestrom@imgtec.com> - 2016-02-29 17:40 +0100
Re: [PATCH] net/rtnetlink: remove dead code David Miller <davem@davemloft.net> - 2016-03-02 21:10 +0100
| From | Eric Engestrom <eric.engestrom@imgtec.com> |
|---|---|
| Date | 2016-02-29 17:40 +0100 |
| Subject | [PATCH] net/rtnetlink: remove dead code |
| Message-ID | <r7z1w-5sW-11@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2016-03-02 21:10 +0100 |
| Message-ID | <r8lfP-4Ej-11@gated-at.bofh.it> |
| In reply to | #1345972 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web