igbvf: convert to strongly typed descriptors
The igbvf driver for some reason never strongly typed it's descriptor formats. Make this driver like the rest of the Intel drivers and use __le* for our little endian descriptors. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
committed by
Tony Nguyen
parent
de8447131d
commit
b6ce4a1c4b
@@ -35,31 +35,31 @@ struct e1000_hw;
|
|||||||
/* Receive Descriptor - Advanced */
|
/* Receive Descriptor - Advanced */
|
||||||
union e1000_adv_rx_desc {
|
union e1000_adv_rx_desc {
|
||||||
struct {
|
struct {
|
||||||
u64 pkt_addr; /* Packet buffer address */
|
__le64 pkt_addr; /* Packet buffer address */
|
||||||
u64 hdr_addr; /* Header buffer address */
|
__le64 hdr_addr; /* Header buffer address */
|
||||||
} read;
|
} read;
|
||||||
struct {
|
struct {
|
||||||
struct {
|
struct {
|
||||||
union {
|
union {
|
||||||
u32 data;
|
__le32 data;
|
||||||
struct {
|
struct {
|
||||||
u16 pkt_info; /* RSS/Packet type */
|
__le16 pkt_info; /* RSS/Packet type */
|
||||||
/* Split Header, hdr buffer length */
|
/* Split Header, hdr buffer length */
|
||||||
u16 hdr_info;
|
__le16 hdr_info;
|
||||||
} hs_rss;
|
} hs_rss;
|
||||||
} lo_dword;
|
} lo_dword;
|
||||||
union {
|
union {
|
||||||
u32 rss; /* RSS Hash */
|
__le32 rss; /* RSS Hash */
|
||||||
struct {
|
struct {
|
||||||
u16 ip_id; /* IP id */
|
__le16 ip_id; /* IP id */
|
||||||
u16 csum; /* Packet Checksum */
|
__le16 csum; /* Packet Checksum */
|
||||||
} csum_ip;
|
} csum_ip;
|
||||||
} hi_dword;
|
} hi_dword;
|
||||||
} lower;
|
} lower;
|
||||||
struct {
|
struct {
|
||||||
u32 status_error; /* ext status/error */
|
__le32 status_error; /* ext status/error */
|
||||||
u16 length; /* Packet length */
|
__le16 length; /* Packet length */
|
||||||
u16 vlan; /* VLAN tag */
|
__le16 vlan; /* VLAN tag */
|
||||||
} upper;
|
} upper;
|
||||||
} wb; /* writeback */
|
} wb; /* writeback */
|
||||||
};
|
};
|
||||||
@@ -70,14 +70,14 @@ union e1000_adv_rx_desc {
|
|||||||
/* Transmit Descriptor - Advanced */
|
/* Transmit Descriptor - Advanced */
|
||||||
union e1000_adv_tx_desc {
|
union e1000_adv_tx_desc {
|
||||||
struct {
|
struct {
|
||||||
u64 buffer_addr; /* Address of descriptor's data buf */
|
__le64 buffer_addr; /* Address of descriptor's data buf */
|
||||||
u32 cmd_type_len;
|
__le32 cmd_type_len;
|
||||||
u32 olinfo_status;
|
__le32 olinfo_status;
|
||||||
} read;
|
} read;
|
||||||
struct {
|
struct {
|
||||||
u64 rsvd; /* Reserved */
|
__le64 rsvd; /* Reserved */
|
||||||
u32 nxtseq_seed;
|
__le32 nxtseq_seed;
|
||||||
u32 status;
|
__le32 status;
|
||||||
} wb;
|
} wb;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -94,10 +94,10 @@ union e1000_adv_tx_desc {
|
|||||||
|
|
||||||
/* Context descriptors */
|
/* Context descriptors */
|
||||||
struct e1000_adv_tx_context_desc {
|
struct e1000_adv_tx_context_desc {
|
||||||
u32 vlan_macip_lens;
|
__le32 vlan_macip_lens;
|
||||||
u32 seqnum_seed;
|
__le32 seqnum_seed;
|
||||||
u32 type_tucmd_mlhl;
|
__le32 type_tucmd_mlhl;
|
||||||
u32 mss_l4len_idx;
|
__le32 mss_l4len_idx;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define E1000_ADVTXD_MACLEN_SHIFT 9 /* Adv ctxt desc mac len shift */
|
#define E1000_ADVTXD_MACLEN_SHIFT 9 /* Adv ctxt desc mac len shift */
|
||||||
|
|||||||
Reference in New Issue
Block a user