ramips: Fix setting of rx buffer length
authorJohn Crispin <john@openwrt.org>
Mon, 5 Oct 2015 10:26:21 +0000 (10:26 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 5 Oct 2015 10:26:21 +0000 (10:26 +0000)
commit1dc09235d9196d5929210a7ecfe8a12ce0d097ca
tree6cf285e9884518743518675b962d9493312d31ff
parent672646acc33b20c40e191942924d1a436dfdb6c5
ramips: Fix setting of rx buffer length

The length of the DMA rx buffer was always set to 0 because the function
for extracting the length was used to calculate the value for setting it.
Instead the macro has to be split in a get and set function similar to the
TX_DMA_(GET_|)PLEN(0|1) macro.

No problem was noticed on MT7621a before this was changed and thus maybe it
was hidden by different problem which is not yet fixed.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
SVN-Revision: 47115
target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c
target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h