]> 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)
commit71321b964359e2a50a629337b89ec147fce53ffc
tree1f0ac831bcee92115ce6a2ab076c260efa7555b3
parent43d4232792c6d820cd0c8ed79662d9e9cb58a796
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