macsec.c (5bbcc0f595fadb4cac0eddc4401035ec0bd95b09) macsec.c (0a833c29d89656025443cb9f0ebff7052dd95ce0)
1/*
2 * drivers/net/macsec.c - MACsec device
3 *
4 * Copyright (c) 2015 Sabrina Dubroca <sd@queasysnail.net>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 2397 unchanged lines hidden (view full) ---

2406 void *hdr;
2407 struct nlattr *attr;
2408
2409 hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
2410 &macsec_fam, NLM_F_MULTI, MACSEC_CMD_GET_TXSC);
2411 if (!hdr)
2412 return -EMSGSIZE;
2413
1/*
2 * drivers/net/macsec.c - MACsec device
3 *
4 * Copyright (c) 2015 Sabrina Dubroca <sd@queasysnail.net>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 2397 unchanged lines hidden (view full) ---

2406 void *hdr;
2407 struct nlattr *attr;
2408
2409 hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
2410 &macsec_fam, NLM_F_MULTI, MACSEC_CMD_GET_TXSC);
2411 if (!hdr)
2412 return -EMSGSIZE;
2413
2414 genl_dump_check_consistent(cb, hdr, &macsec_fam);
2414 genl_dump_check_consistent(cb, hdr);
2415
2416 if (nla_put_u32(skb, MACSEC_ATTR_IFINDEX, dev->ifindex))
2417 goto nla_put_failure;
2418
2419 if (nla_put_secy(secy, skb))
2420 goto nla_put_failure;
2421
2422 attr = nla_nest_start(skb, MACSEC_ATTR_TXSC_STATS);

--- 1108 unchanged lines hidden ---
2415
2416 if (nla_put_u32(skb, MACSEC_ATTR_IFINDEX, dev->ifindex))
2417 goto nla_put_failure;
2418
2419 if (nla_put_secy(secy, skb))
2420 goto nla_put_failure;
2421
2422 attr = nla_nest_start(skb, MACSEC_ATTR_TXSC_STATS);

--- 1108 unchanged lines hidden ---