Hassan Naveed <hassan.nav...@imgtec.com> : > Fix pch_gbe driver for ethernet operations for a big endian CPU. > Values written to and read from transmit and receive descriptors > in the pch_gbe driver are byte swapped from the perspective of a > big endian CPU, since the ethernet controller always operates in > little endian mode. Rectify this by appropriately byte swapping > these descriptor field values in the driver software.
You should also use __le{16/32} types in struct pch_gbe_{rx/tx}_desc. -- Ueimor