From: Mark Starovoytov Date: Fri, 24 Apr 2020 08:38:56 +0000 (+0300) Subject: macsec: add support for MAC offload X-Git-Tag: v5.8.0~38^2~30^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=998534c99eceafe580746caa5df1e9545fb59cde;p=thirdparty%2Fiproute2.git macsec: add support for MAC offload This patch enables MAC HW offload usage in iproute, since MACSec implementation supports it now. Signed-off-by: Mark Starovoytov Signed-off-by: Igor Russkikh Signed-off-by: David Ahern --- diff --git a/ip/ipmacsec.c b/ip/ipmacsec.c index 4e500e4e4..d214b101b 100644 --- a/ip/ipmacsec.c +++ b/ip/ipmacsec.c @@ -34,6 +34,7 @@ static const char * const validate_str[] = { static const char * const offload_str[] = { [MACSEC_OFFLOAD_OFF] = "off", [MACSEC_OFFLOAD_PHY] = "phy", + [MACSEC_OFFLOAD_MAC] = "mac", }; struct sci { @@ -98,7 +99,7 @@ static void ipmacsec_usage(void) " ip macsec del DEV rx SCI sa { 0..3 }\n" " ip macsec show\n" " ip macsec show DEV\n" - " ip macsec offload DEV [ off | phy ]\n" + " ip macsec offload DEV [ off | phy | mac ]\n" "where OPTS := [ pn ] [ on | off ]\n" " ID := 128-bit hex string\n" " KEY := 128-bit or 256-bit hex string\n" diff --git a/man/man8/ip-macsec.8 b/man/man8/ip-macsec.8 index d5f9d240b..b2ee7bee0 100644 --- a/man/man8/ip-macsec.8 +++ b/man/man8/ip-macsec.8 @@ -54,7 +54,7 @@ ip-macsec \- MACsec device configuration .RI "{ " 0..3 " }" .BI "ip macsec offload " DEV -.RB "{ " off " | " phy " }" +.RB "{ " off " | " phy " | " mac " }" .B ip macsec show .RI [ " DEV " ]