macsec: dump IFLA_MACSEC_OFFLOAD attribute as part of macsec dump
authorEmeel Hakim <ehakim@nvidia.com>
Wed, 11 Jan 2023 15:02:10 +0000 (17:02 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Jan 2023 05:43:37 +0000 (21:43 -0800)
commit723e8a48c9935b0d7a2826a12d03324daf6f900b
treeec0a02d27f548cd464daf4657e2cebf3de5fcd51
parent15f1735520f929ea7ed7ef7902abe2ffe66486a6
macsec: dump IFLA_MACSEC_OFFLOAD attribute as part of macsec dump

Support dumping offload netlink attribute in macsec's device
attributes dump.
Change macsec_get_size to consider the offload attribute in
the calculations of the required room for dumping the device
netlink attributes.

Signed-off-by: Emeel Hakim <ehakim@nvidia.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/macsec.c