net: macsec: Expose extended packet number (EPN) properties to macsec offload
authorEmeel Hakim <ehakim@nvidia.com>
Wed, 21 Sep 2022 18:10:45 +0000 (11:10 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 01:01:31 +0000 (18:01 -0700)
commit0a6e9b718dbbdeb6e9f56f2f79e789f6833ea804
tree6a631e777952ec50d52e491b8bbf586903ed83a4
parentbcff1a37bafc144d67192f2f5e1f4b9c49b37bd6
net: macsec: Expose extended packet number (EPN) properties to macsec offload

Currently macsec invokes HW offload path before reading extended packet
number (EPN) related user properties i.e. salt and short secure channel
identifier (ssci), hence preventing macsec EPN HW offload.
Expose those by moving macsec EPN properties reading prior to HW offload
path.

Signed-off-by: Emeel Hakim <ehakim@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/macsec.c