]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
net: ethernet: axienet: Fix bug in the rxreject interrupt handling
authorKedareswara rao Appana <appana.durga.rao@xilinx.com>
Thu, 9 Mar 2017 05:08:13 +0000 (10:38 +0530)
committerMichal Simek <monstr@monstr.eu>
Tue, 3 Oct 2017 15:26:32 +0000 (17:26 +0200)
commit5e386cee39afb63fc7835c415de7749200fc3ff3
tree21dbab5fb92413c5dfa60c6bf475edbad39b8cd0
parent330549c05438ab7a8c701bfecf066bfc147c317f
net: ethernet: axienet: Fix bug in the rxreject interrupt handling

Currenlty driver is doing a reset of the device
when we got a rxreject interrupt which is not proper,
when we got a rxreject interrupt it means ethernet mac
won't have enough room to store the recv packet.
In such scenario we should increment the device dropped
Packet statstics instead of resetting the device.

This patch fixes the same.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c