| From 5908220b2b3d6918f88cd645a39e1dcb84d1c5d9 Mon Sep 17 00:00:00 2001 |
| From: Antoine Tenart <antoine.tenart@bootlin.com> |
| Date: Wed, 25 Mar 2020 15:52:30 +0300 |
| Subject: net: introduce the MACSEC netdev feature |
| |
| This patch introduce a new netdev feature, which will be used by drivers |
| to state they can perform MACsec transformations in hardware. |
| |
| The patchset was gathered by Mark, macsec functinality itself |
| was implemented by Dmitry, Mark and Pavel Belous. |
| |
| Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> |
| Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com> |
| Signed-off-by: Igor Russkikh <irusskikh@marvell.com> |
| Signed-off-by: David S. Miller <davem@davemloft.net> |
| --- |
| include/linux/netdev_features.h | 3 +++ |
| net/ethtool/common.c | 1 + |
| 2 files changed, 4 insertions(+) |
| |
| --- a/include/linux/netdev_features.h |
| +++ b/include/linux/netdev_features.h |
| @@ -81,6 +81,8 @@ enum { |
| NETIF_F_GRO_HW_BIT, /* Hardware Generic receive offload */ |
| NETIF_F_HW_TLS_RECORD_BIT, /* Offload TLS record */ |
| |
| + NETIF_F_HW_MACSEC_BIT, /* Offload MACsec operations */ |
| + |
| /* |
| * Add your fresh new feature above and remember to update |
| * netdev_features_strings[] in net/ethtool/common.c and maybe |
| @@ -150,6 +152,7 @@ enum { |
| #define NETIF_F_GSO_UDP_L4 __NETIF_F(GSO_UDP_L4) |
| #define NETIF_F_HW_TLS_TX __NETIF_F(HW_TLS_TX) |
| #define NETIF_F_HW_TLS_RX __NETIF_F(HW_TLS_RX) |
| +#define NETIF_F_HW_MACSEC __NETIF_F(HW_MACSEC) |
| |
| /* Finds the next feature with the highest number of the range of start till 0. |
| */ |