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

Commit a2fdf309 authored by Dmitry Bogdanov's avatar Dmitry Bogdanov Committed by Gerrit - the friendly Code Review server
Browse files

macsec: not handle MKA packets in case of offload



MKA packets (ETH_P_PAE) are defenitelly not encrypted so
they should not be in macsec interface.

Change-Id: Ie1619471948e2f78a961c712bdfcc56a87d90c57
Signed-off-by: default avatarDmitry Bogdanov <dbogdanov@marvell.com>
Git-commit: 797e7df618e11807ca7f4eac7c84ad4296cdf0e1
Git-repo: https://github.com/aquantia/linux-4.14-atlantic-forwarding


Signed-off-by: default avatarJinesh K. Jayakumar <jineshk@codeaurora.org>
parent 37e7a537
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -934,6 +934,9 @@ static enum rx_handler_result handle_not_macsec(struct sk_buff *skb)
		 * SecTAG, so we have to deduce which port to deliver to.
		 */
		if (macsec_get_ops(macsec, NULL) && netif_running(ndev)) {
			if (hdr->h_proto == htons(ETH_P_PAE))
				continue;

			if (ndev->flags & IFF_PROMISC) {
				nskb = skb_clone(skb, GFP_ATOMIC);
				if (!nskb)