]> git.baikalelectronics.ru Git - kernel.git/commit
ftgmac100: Simplify rx pointer handling in the rx path
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 6 Apr 2017 01:02:48 +0000 (11:02 +1000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Apr 2017 22:39:45 +0000 (15:39 -0700)
commit75bdb5ac0cf492b268451f8a9e8469d05cf805cc
tree1f0ac831bcee92115ce6a2ab076c260efa7555b3
parent1c0568fc104deff0ba1d34ee7593bab3404eba28
ftgmac100: Simplify rx pointer handling in the rx path

We don't handle fragmented RX packets, so the "looping"
helpers to locate the first segment of a packet or to
drop a packet aren't actually helping.

Take them out and simplify ftgmac100_rx_packet() further
as a result.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftgmac100.c