net: macsec: add support for specifying offload upon link creation
authorMark Starovoytov <mstarovoitov@marvell.com>
Wed, 25 Mar 2020 13:01:34 +0000 (16:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 04:34:21 +0000 (21:34 -0700)
commit791bb3fcafcedd11f9066da9fee9342ecb6904d0
tree6bccde0e7b60e06436de6c87f5e48c515f7aacfa
parentf0b5989745c3e0e92424d36869a97e4e8df7ab13
net: macsec: add support for specifying offload upon link creation

This patch adds new netlink attribute to allow a user to (optionally)
specify the desired offload mode immediately upon MACSec link creation.

Separate iproute patch will be required to support this from user space.

Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c
include/uapi/linux/if_link.h
tools/include/uapi/linux/if_link.h