Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 716e4270 authored by Antoine Tenart's avatar Antoine Tenart Committed by Jinesh K. Jayakumar
Browse files

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.

Change-Id: I915bb217f48b323219d90e72c17d061b33802c9b
Signed-off-by: default avatarAntoine Tenart <antoine.tenart@bootlin.com>
Git-commit: aab2134205547805eb73fc4550601e087bbac1f8
Git-repo: https://github.com/aquantia/linux-4.14-atlantic-forwarding


[jineshk@codeaurora.org: Fix trivial merge conflicts]
Signed-off-by: default avatarJinesh K. Jayakumar <jineshk@codeaurora.org>
parent d14fe06e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ enum {
	NETIF_F_HW_ESP_BIT,		/* Hardware ESP transformation offload */
	NETIF_F_HW_ESP_TX_CSUM_BIT,	/* ESP with TX checksum offload */
	NETIF_F_RX_UDP_TUNNEL_PORT_BIT, /* Offload of RX port for UDP tunnels */
	NETIF_F_HW_MACSEC_BIT,          /* Offload MACsec operations */

	NETIF_F_GRO_HW_BIT,		/* Hardware Generic receive offload */

@@ -149,6 +150,7 @@ enum {
#define NETIF_F_HW_ESP_TX_CSUM	__NETIF_F(HW_ESP_TX_CSUM)
#define	NETIF_F_RX_UDP_TUNNEL_PORT  __NETIF_F(RX_UDP_TUNNEL_PORT)
#define NETIF_F_GSO_UDP_L4	__NETIF_F(GSO_UDP_L4)
#define NETIF_F_HW_MACSEC      __NETIF_F(HW_MACSEC)

/* Finds the next feature with the highest number of the range of start till 0.
 */
+1 −0
Original line number Diff line number Diff line
@@ -108,6 +108,7 @@ static const char netdev_features_strings[NETDEV_FEATURE_COUNT][ETH_GSTRING_LEN]
	[NETIF_F_HW_ESP_BIT] =		 "esp-hw-offload",
	[NETIF_F_HW_ESP_TX_CSUM_BIT] =	 "esp-tx-csum-hw-offload",
	[NETIF_F_RX_UDP_TUNNEL_PORT_BIT] =	 "rx-udp_tunnel-port-offload",
	[NETIF_F_HW_MACSEC_BIT] =        "macsec-hw-offload",
};

static const char