net/faraday: Separate rx page storage from rxdesc
authorAndrew Jeffery <andrew@aj.id.au>
Wed, 21 Sep 2016 23:04:58 +0000 (08:34 +0930)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 07:31:14 +0000 (03:31 -0400)
commitada66b54c44add8702612940a08d077b4d6ecd0e
tree46e2102b006efac2d630734be7ed657cb6856062
parent524605e5ba5a897fb0a8c29398ed049100fe80aa
net/faraday: Separate rx page storage from rxdesc

The ftgmac100 hardware revision in e.g. the Aspeed AST2500 no longer
reserves all bits in RXDES#2 but instead uses the bottom 16 bits to
store MAC frame metadata. Avoid corruption by shifting struct page
pointers out to their own member in struct ftgmac100.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftgmac100.c