aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto_user_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/crypto_user_stat.c')
-rw-r--r--crypto/crypto_user_stat.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/crypto/crypto_user_stat.c b/crypto/crypto_user_stat.c
index 0ba00aaeb810..3e9a53233d80 100644
--- a/crypto/crypto_user_stat.c
+++ b/crypto/crypto_user_stat.c
@@ -336,37 +336,4 @@ drop_alg:
336 return nlmsg_unicast(crypto_nlsk, skb, NETLINK_CB(in_skb).portid); 336 return nlmsg_unicast(crypto_nlsk, skb, NETLINK_CB(in_skb).portid);
337} 337}
338 338
339int crypto_dump_reportstat(struct sk_buff *skb, struct netlink_callback *cb)
340{
341 struct crypto_alg *alg;
342 struct crypto_dump_info info;
343 int err;
344
345 if (cb->args[0])
346 goto out;
347
348 cb->args[0] = 1;
349
350 info.in_skb = cb->skb;
351 info.out_skb = skb;
352 info.nlmsg_seq = cb->nlh->nlmsg_seq;
353 info.nlmsg_flags = NLM_F_MULTI;
354
355 list_for_each_entry(alg, &crypto_alg_list, cra_list) {
356 err = crypto_reportstat_alg(alg, &info);
357 if (err)
358 goto out_err;
359 }
360
361out:
362 return skb->len;
363out_err:
364 return err;
365}
366
367int crypto_dump_reportstat_done(struct netlink_callback *cb)
368{
369 return 0;
370}
371
372MODULE_LICENSE("GPL"); 339MODULE_LICENSE("GPL");