Commit a7df90a5 authored by Al Viro's avatar Al Viro Committed by David S. Miller

ixgb endianness annotations

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 8327d000
...@@ -534,12 +534,12 @@ typedef enum { ...@@ -534,12 +534,12 @@ typedef enum {
* in which case the structure must be packed in some compiler-specific * in which case the structure must be packed in some compiler-specific
* manner. */ * manner. */
struct ixgb_rx_desc { struct ixgb_rx_desc {
uint64_t buff_addr; __le64 buff_addr;
uint16_t length; __le16 length;
uint16_t reserved; __le16 reserved;
uint8_t status; uint8_t status;
uint8_t errors; uint8_t errors;
uint16_t special; __le16 special;
}; };
#define IXGB_RX_DESC_STATUS_DD 0x01 #define IXGB_RX_DESC_STATUS_DD 0x01
...@@ -567,11 +567,11 @@ struct ixgb_rx_desc { ...@@ -567,11 +567,11 @@ struct ixgb_rx_desc {
* in which case the structure must be packed in some compiler-specific * in which case the structure must be packed in some compiler-specific
* manner. */ * manner. */
struct ixgb_tx_desc { struct ixgb_tx_desc {
uint64_t buff_addr; __le64 buff_addr;
uint32_t cmd_type_len; __le32 cmd_type_len;
uint8_t status; uint8_t status;
uint8_t popts; uint8_t popts;
uint16_t vlan; __le16 vlan;
}; };
#define IXGB_TX_DESC_LENGTH_MASK 0x000FFFFF #define IXGB_TX_DESC_LENGTH_MASK 0x000FFFFF
...@@ -596,14 +596,14 @@ struct ixgb_tx_desc { ...@@ -596,14 +596,14 @@ struct ixgb_tx_desc {
struct ixgb_context_desc { struct ixgb_context_desc {
uint8_t ipcss; uint8_t ipcss;
uint8_t ipcso; uint8_t ipcso;
uint16_t ipcse; __le16 ipcse;
uint8_t tucss; uint8_t tucss;
uint8_t tucso; uint8_t tucso;
uint16_t tucse; __le16 tucse;
uint32_t cmd_type_len; __le32 cmd_type_len;
uint8_t status; uint8_t status;
uint8_t hdr_len; uint8_t hdr_len;
uint16_t mss; __le16 mss;
}; };
#define IXGB_CONTEXT_DESC_CMD_TCP 0x01000000 #define IXGB_CONTEXT_DESC_CMD_TCP 0x01000000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment