commit | 2207295c459d564a5078156d0861ca8014f2978e | [log] [tgz] |
---|---|---|
author | Aaro Koskinen <aaro.koskinen@nokia.com> | Wed Mar 27 22:35:38 2019 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed May 08 07:19:09 2019 +0200 |
tree | 52d4a6ff5705662af1e86660ddb0ee772a86e6a3 | |
parent | 2e89db5da9d559c8b822f1d70c180428917c4a9d [diff] |
net: stmmac: don't overwrite discard_frame status [ Upstream commit 1b746ce8b397e58f9e40ce5c63b7198de6930482 ] If we have error bits set, the discard_frame status will get overwritten by checksum bit checks, which might set the status back to good one. Fix by checking the COE status only if the frame is good. Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>