Skip to content

Commit

Permalink
macsec: remove first zero and add attribute name in comments
Browse files Browse the repository at this point in the history
Remove first zero for add, and use full attribute name in comments.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Zhang Shengju authored and David S. Miller committed Dec 8, 2016
1 parent 797149d commit c9fba3e
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions drivers/net/macsec.c
Original file line number Diff line number Diff line change
Expand Up @@ -3346,19 +3346,18 @@ static struct net *macsec_get_link_net(const struct net_device *dev)

static size_t macsec_get_size(const struct net_device *dev)
{
return 0 +
nla_total_size_64bit(8) + /* SCI */
nla_total_size(1) + /* ICV_LEN */
nla_total_size_64bit(8) + /* CIPHER_SUITE */
nla_total_size(4) + /* WINDOW */
nla_total_size(1) + /* ENCODING_SA */
nla_total_size(1) + /* ENCRYPT */
nla_total_size(1) + /* PROTECT */
nla_total_size(1) + /* INC_SCI */
nla_total_size(1) + /* ES */
nla_total_size(1) + /* SCB */
nla_total_size(1) + /* REPLAY_PROTECT */
nla_total_size(1) + /* VALIDATION */
return nla_total_size_64bit(8) + /* IFLA_MACSEC_SCI */
nla_total_size(1) + /* IFLA_MACSEC_ICV_LEN */
nla_total_size_64bit(8) + /* IFLA_MACSEC_CIPHER_SUITE */
nla_total_size(4) + /* IFLA_MACSEC_WINDOW */
nla_total_size(1) + /* IFLA_MACSEC_ENCODING_SA */
nla_total_size(1) + /* IFLA_MACSEC_ENCRYPT */
nla_total_size(1) + /* IFLA_MACSEC_PROTECT */
nla_total_size(1) + /* IFLA_MACSEC_INC_SCI */
nla_total_size(1) + /* IFLA_MACSEC_ES */
nla_total_size(1) + /* IFLA_MACSEC_SCB */
nla_total_size(1) + /* IFLA_MACSEC_REPLAY_PROTECT */
nla_total_size(1) + /* IFLA_MACSEC_VALIDATION */
0;
}

Expand Down

0 comments on commit c9fba3e

Please sign in to comment.