gianfar: Make FCB access endian safe

Use conversion macros to correctly access the BE
fields of the Rx and Tx Frame Control Block on LE CPUs.

Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Claudiu Manoil
2015-03-13 10:36:29 +02:00
committed by David S. Miller
parent a7312d5803
commit 26eb9374f8
2 changed files with 13 additions and 12 deletions

View File

@@ -557,8 +557,8 @@ struct txfcb {
u8 ptp; /* Flag to enable tx timestamping */
u8 l4os; /* Level 4 Header Offset */
u8 l3os; /* Level 3 Header Offset */
u16 phcs; /* Pseudo-header Checksum */
u16 vlctl; /* VLAN control word */
__be16 phcs; /* Pseudo-header Checksum */
__be16 vlctl; /* VLAN control word */
};
struct rxbd8
@@ -574,11 +574,11 @@ struct rxbd8
};
struct rxfcb {
u16 flags;
__be16 flags;
u8 rq; /* Receive Queue index */
u8 pro; /* Layer 4 Protocol */
u16 reserved;
u16 vlctl; /* VLAN control word */
__be16 vlctl; /* VLAN control word */
};
struct gianfar_skb_cb {