net: mvneta: eliminate wrong call to handle rx descriptor error
authorYelena Krivosheev <yelena@marvell.com>
Tue, 19 Dec 2017 16:59:47 +0000 (17:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2017 17:24:12 +0000 (12:24 -0500)
commit2eecb2e04abb62ef8ea7b43e1a46bdb5b99d1bf8
tree766c2a32cebdaec59a4ebfccb266af134374755f
parentca5902a6547f662419689ca28b3c29a772446caa
net: mvneta: eliminate wrong call to handle rx descriptor error

There are few reasons in mvneta_rx_swbm() function when received packet
is dropped. mvneta_rx_error() should be called only if error bit [16]
is set in rx descriptor.

[gregory.clement@free-electrons.com: add fixes tag]
Cc: stable@vger.kernel.org
Fixes: dc35a10f68d3 ("net: mvneta: bm: add support for hardware buffer management")
Signed-off-by: Yelena Krivosheev <yelena@marvell.com>
Tested-by: Dmitri Epshtein <dima@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c