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