mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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: Dmitry Bogdanov <dbogdanov@marvell.com> Git-commit: 797e7df618e11807ca7f4eac7c84ad4296cdf0e1 Git-repo: https://github.com/aquantia/linux-4.14-atlantic-forwarding Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
This commit is contained in:
parent
37e7a537ee
commit
a2fdf309cb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user