Skip to contentSkip to conversation

bnx2x: annotate more fields in struct eth_tx_bd_flags

PATCH In review Harvey Harrison 1 participant 1 message Jan 21, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/9 bnx2x: annotate more fields in struct eth_tx_bd_flags

---
 drivers/net/bnx2x_hsi.h  |    6 +++---
 drivers/net/bnx2x_main.c |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/bnx2x_hsi.h +3 -3
index ba066b7..33d6d5d 100644
@@ -1910,9 +1910,9 @@ struct eth_tx_bd_flags {
 struct eth_tx_bd {
 	__le32 addr_lo;
 	__le32 addr_hi;
-	u16 nbd;
-	u16 nbytes;
-	u16 vlan;
+	__le16 nbd;
+	__le16 nbytes;
+	__le16 vlan;
 	struct eth_tx_bd_flags bd_flags;
 	u8 general_data;
 #define ETH_TX_BD_HDR_NBDS (0x3F<<0)
drivers/net/bnx2x_main.c +1 -1
index f37c8ff..3d0907b 100644
@@ -9383,7 +9383,7 @@ static noinline u16 bnx2x_tx_split(struct bnx2x *bp,
 	d_tx_bd->addr_hi = cpu_to_le32(U64_HI(mapping));
 	d_tx_bd->addr_lo = cpu_to_le32(U64_LO(mapping));
 	d_tx_bd->nbytes = cpu_to_le16(old_len - hlen);
-	d_tx_bd->vlan = 0;
+	d_tx_bd->vlan = cpu_to_le16(0);
 	/* this marks the BD as one that has no individual mapping
 	 * the FW ignores this flag in a BD not marked start
 	 */
Signature · 1 line
1.6.1.249.g455e5