]> git.proxmox.com Git - mirror_iproute2.git/commit
macsec: add support for changing the offloading mode
authorAntoine Tenart <antoine.tenart@bootlin.com>
Tue, 3 Mar 2020 10:36:17 +0000 (11:36 +0100)
committerDavid Ahern <dsahern@gmail.com>
Wed, 4 Mar 2020 19:57:30 +0000 (19:57 +0000)
commit791bc7ee482b0e48d1020888521134161f216ff5
treec0d6c60655458c76fe785e4fb886df4842b30ee0
parentda6abdba09d800c87a3a0a4c8d2bb4879a037e92
macsec: add support for changing the offloading mode

MacSEC can now be offloaded to specialized hardware devices. Offloading
is off by default when creating a new MACsec interface, but the mode can
be updated at runtime. This patch adds a new subcommand,
`ip macsec offload`, to allow users to select the offloading mode of a
MACsec interface. It takes the mode to switch to as an argument, which
can for now either be 'off' or 'phy':

  # ip macsec offload macsec0 phy
  # ip macsec offload macsec0 off

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipmacsec.c