Commit Graph

2 Commits

Author SHA1 Message Date
Sabrina Dubroca a18de3e46a net: macsec: move sci_to_cpu to macsec header
JIRA: https://issues.redhat.com/browse/RHEL-31748

commit b1c036e835b67320316e20e562cc3b4daf8fa08b
Author: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Date:   Tue Dec 19 16:53:27 2023 +0200

    net: macsec: move sci_to_cpu to macsec header

    Move sci_to_cpu to the MACsec header to use it in drivers.

    Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

Signed-off-by: Sabrina Dubroca <sdubroca@redhat.com>
2024-05-03 15:41:43 +02:00
Sabrina Dubroca af8abe5cc4 netdevsim: add dummy macsec offload
JIRA: https://issues.redhat.com/browse/RHEL-24616

commit 02b34d03a24b18970925cf57434be28ba4a29d3a
Author: Sabrina Dubroca <sd@queasysnail.net>
Date:   Thu Jul 13 15:20:23 2023 +0200

    netdevsim: add dummy macsec offload

    When the kernel is compiled with MACsec support, add the
    NETIF_F_HW_MACSEC feature to netdevsim devices and implement
    macsec_ops.

    To allow easy testing of failure from the device, support is limited
    to 3 SecY's per netdevsim device, and 1 RXSC per SecY.

    v2:
     - nsim_macsec_add_secy, return -ENOSPC if secy_count isn't full but
       we can't find an empty slot (Simon Horman)
     - add sci_to_cpu to make sparse happy (Simon Horman)
     - remove set but not used secy variable (kernel test robot and
       Simon Horman)

    Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
    Reviewed-by: Simon Horman <simon.horman@corigine.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

Signed-off-by: Sabrina Dubroca <sdubroca@redhat.com>
2024-02-07 10:06:55 +01:00