macsec: fix validation failed in asynchronous operation.
authorLee Ryder <ryder.lee@mediatek.com>
Tue, 21 Feb 2017 09:40:45 +0000 (17:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Feb 2017 18:13:51 +0000 (13:13 -0500)
commitb3bdc3acbb44d74d0b7ba4d97169577a2b46dc88
tree4afee39b62f19479172989a0ace70f7b921b4e4c
parent8ccde4c562076f280c0321c549d822448b64e565
macsec: fix validation failed in asynchronous operation.

MACSec test failed when asynchronous crypto operations is used. It
encounters packet validation failed since macsec_skb_cb(skb)->valid
is always 'false'.

This patch adds missing "macsec_skb_cb(skb)->valid = true" in
macsec_decrypt_done() when "err == 0".

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c