Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] net: mvpp2: Add big-endian support
@ 2018-06-28 12:42 Maxime Chevallier
  2018-06-28 12:42 ` [PATCH net-next 1/4] net: mvpp2: Make TX / RX descriptors little-endian Maxime Chevallier
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Maxime Chevallier @ 2018-06-28 12:42 UTC (permalink / raw)
  To: davem
  Cc: Maxime Chevallier, netdev, linux-kernel, Antoine Tenart,
	thomas.petazzoni, gregory.clement, miquel.raynal, nadavh, stefanc,
	ymarkman, mw

This series allows to use PPv2 on system built as big endian.

The first patch fixes the way we represent TX and RX descriptors, so that
they used fixed little endianness as expected by the PPv2 controller.

The second reworks the way we handle the software representation of the
Header Parser entries, so that we don't use a union of arrays.

The last two patches fixes some incorrect byte swapping logic, that wen't
un-noticed on little-endian.

This whole series doesn't fix any existing bug for little-endian systems, and
since big-endian never worked for this driver, I didn't include 'fixes' tags.

This was tested on MacchiatoBin (Armada 8040).

Maxime Chevallier (4):
  net: mvpp2: Make TX / RX descriptors little-endian
  net: mvpp2: prs: Drop unions representing TCAM and SRAM entries
  net: mvpp2: prs: Drop unnecessary swab16 in vlan detection
  net: mvpp2: Use htons when checking protocol info

 drivers/net/ethernet/marvell/mvpp2/mvpp2.h      |  58 ++++-----
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c |  43 ++++---
 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c  | 155 +++++++++++-------------
 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.h  |  41 +++----
 4 files changed, 141 insertions(+), 156 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-28 12:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-28 12:42 [PATCH net-next 0/4] net: mvpp2: Add big-endian support Maxime Chevallier
2018-06-28 12:42 ` [PATCH net-next 1/4] net: mvpp2: Make TX / RX descriptors little-endian Maxime Chevallier
2018-06-28 12:42 ` [PATCH net-next 2/4] net: mvpp2: prs: Drop unions representing TCAM and SRAM entries Maxime Chevallier
2018-06-28 12:42 ` [PATCH net-next 3/4] net: mvpp2: prs: Drop unnecessary swab16 in vlan detection Maxime Chevallier
2018-06-28 12:42 ` [PATCH net-next 4/4] net: mvpp2: Use htons when checking protocol info Maxime Chevallier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox