aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/dev.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-11-17 03:05:02 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-17 03:05:02 -0500
commita2bfbc072e279ff81e6b336acff612b9bc2e5281 (patch)
tree89cfe21911e1539e1b7f89d8a10d42abecba2a18 /drivers/net/can/dev.c
parent5c427ff9e4cc61625d48172ea082ae99e21eea6a (diff)
parent82b3cc1a2f5e46300a9dec4a8cc8106dc20a4c23 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/can/Kconfig
Diffstat (limited to 'drivers/net/can/dev.c')
-rw-r--r--drivers/net/can/dev.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c
index 26c89aaeba62..c1bb29f0322b 100644
--- a/drivers/net/can/dev.c
+++ b/drivers/net/can/dev.c
@@ -677,6 +677,11 @@ nla_put_failure:
677 return -EMSGSIZE; 677 return -EMSGSIZE;
678} 678}
679 679
680static size_t can_get_xstats_size(const struct net_device *dev)
681{
682 return sizeof(struct can_device_stats);
683}
684
680static int can_fill_xstats(struct sk_buff *skb, const struct net_device *dev) 685static int can_fill_xstats(struct sk_buff *skb, const struct net_device *dev)
681{ 686{
682 struct can_priv *priv = netdev_priv(dev); 687 struct can_priv *priv = netdev_priv(dev);
@@ -705,6 +710,7 @@ static struct rtnl_link_ops can_link_ops __read_mostly = {
705 .changelink = can_changelink, 710 .changelink = can_changelink,
706 .get_size = can_get_size, 711 .get_size = can_get_size,
707 .fill_info = can_fill_info, 712 .fill_info = can_fill_info,
713 .get_xstats_size = can_get_xstats_size,
708 .fill_xstats = can_fill_xstats, 714 .fill_xstats = can_fill_xstats,
709}; 715};
710 716