]> git.baikalelectronics.ru Git - kernel.git/commit
net: cpsw: fix cpdma rx descriptor leak on down interface
authorSchuyler Patton <spatton@ti.com>
Mon, 3 Mar 2014 10:49:06 +0000 (16:19 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Mar 2014 20:50:31 +0000 (15:50 -0500)
commit7055dd3066a1df6eb4089045f3499a40cdea1498
tree394e51dc04306a6efe7ffea6296673fe53ea644b
parentb7dc2d56c425ac8db37a4075b6d4933c7d9ff4af
net: cpsw: fix cpdma rx descriptor leak on down interface

This patch fixes a CPDMA RX Descriptor leak that occurs after taking
the interface down when the CPSW is in Dual MAC mode. Previously
the CPSW_ALE port was left open up which causes packets to be received
and processed by the RX interrupt handler and were passed to the
non active network interface where they were ignored.

The fix is for the slave_stop function of the selected interface
to disable the respective CPSW_ALE Port from forwarding packets. This
blocks traffic from being received on the inactive interface.

Signed-off-by: Schuyler Patton <spatton@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c