netdev: add queue stat for alloc failures
[linux-2.6-microblaze.git] / net / core / netdev-genl.c
index 7fa75e1..7004b33 100644 (file)
@@ -488,7 +488,8 @@ static int
 netdev_nl_stats_write_rx(struct sk_buff *rsp, struct netdev_queue_stats_rx *rx)
 {
        if (netdev_stat_put(rsp, NETDEV_A_QSTATS_RX_PACKETS, rx->packets) ||
-           netdev_stat_put(rsp, NETDEV_A_QSTATS_RX_BYTES, rx->bytes))
+           netdev_stat_put(rsp, NETDEV_A_QSTATS_RX_BYTES, rx->bytes) ||
+           netdev_stat_put(rsp, NETDEV_A_QSTATS_RX_ALLOC_FAIL, rx->alloc_fail))
                return -EMSGSIZE;
        return 0;
 }