]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
macsec: add support for MAC offload
authorMark Starovoytov <mstarovoitov@marvell.com>
Fri, 24 Apr 2020 08:38:56 +0000 (11:38 +0300)
committerDavid Ahern <dsahern@gmail.com>
Sun, 26 Apr 2020 18:31:37 +0000 (18:31 +0000)
This patch enables MAC HW offload usage in iproute, since MACSec
implementation supports it now.

Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipmacsec.c
man/man8/ip-macsec.8

index 4e500e4e4825d0ee40dc789f82fe36026d945d01..d214b101b83e91e474b56aa94f8f51af51111918 100644 (file)
@@ -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 <u32> ] [ on | off ]\n"
                "       ID   := 128-bit hex string\n"
                "       KEY  := 128-bit or 256-bit hex string\n"
index d5f9d240bf1241c730b2e0d6e15fbcb4051131f6..b2ee7bee0e2c73ecd3a3b98a3375ed20b9b2563c 100644 (file)
@@ -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 " ]