@@ -24,6 +24,23 @@ static inline void cq_enet_wq_desc_dec(struct cq_enet_wq_desc *desc,
2424 color , q_number , completed_index );
2525}
2626
27+ /*
28+ * Defines and Capabilities for CMD_CQ_ENTRY_SIZE_SET
29+ */
30+ #define VNIC_RQ_ALL (~0ULL)
31+
32+ #define VNIC_RQ_CQ_ENTRY_SIZE_16 0
33+ #define VNIC_RQ_CQ_ENTRY_SIZE_32 1
34+ #define VNIC_RQ_CQ_ENTRY_SIZE_64 2
35+
36+ #define VNIC_RQ_CQ_ENTRY_SIZE_16_CAPABLE BIT(VNIC_RQ_CQ_ENTRY_SIZE_16)
37+ #define VNIC_RQ_CQ_ENTRY_SIZE_32_CAPABLE BIT(VNIC_RQ_CQ_ENTRY_SIZE_32)
38+ #define VNIC_RQ_CQ_ENTRY_SIZE_64_CAPABLE BIT(VNIC_RQ_CQ_ENTRY_SIZE_64)
39+
40+ #define VNIC_RQ_CQ_ENTRY_SIZE_ALL_BIT (VNIC_RQ_CQ_ENTRY_SIZE_16_CAPABLE | \
41+ VNIC_RQ_CQ_ENTRY_SIZE_32_CAPABLE | \
42+ VNIC_RQ_CQ_ENTRY_SIZE_64_CAPABLE)
43+
2744/* Completion queue descriptor: Ethernet receive queue, 16B */
2845struct cq_enet_rq_desc {
2946 __le16 completed_index_flags ;
@@ -36,6 +53,45 @@ struct cq_enet_rq_desc {
3653 u8 type_color ;
3754};
3855
56+ /* Completion queue descriptor: Ethernet receive queue, 32B */
57+ struct cq_enet_rq_desc_32 {
58+ __le16 completed_index_flags ;
59+ __le16 q_number_rss_type_flags ;
60+ __le32 rss_hash ;
61+ __le16 bytes_written_flags ;
62+ __le16 vlan ;
63+ __le16 checksum_fcoe ;
64+ u8 flags ;
65+ u8 fetch_index_flags ;
66+ __le32 time_stamp ;
67+ __le16 time_stamp2 ;
68+ __le16 pie_info ;
69+ __le32 pie_info2 ;
70+ __le16 pie_info3 ;
71+ u8 pie_info4 ;
72+ u8 type_color ;
73+ };
74+
75+ /* Completion queue descriptor: Ethernet receive queue, 64B */
76+ struct cq_enet_rq_desc_64 {
77+ __le16 completed_index_flags ;
78+ __le16 q_number_rss_type_flags ;
79+ __le32 rss_hash ;
80+ __le16 bytes_written_flags ;
81+ __le16 vlan ;
82+ __le16 checksum_fcoe ;
83+ u8 flags ;
84+ u8 fetch_index_flags ;
85+ __le32 time_stamp ;
86+ __le16 time_stamp2 ;
87+ __le16 pie_info ;
88+ __le32 pie_info2 ;
89+ __le16 pie_info3 ;
90+ u8 pie_info4 ;
91+ u8 reserved [32 ];
92+ u8 type_color ;
93+ };
94+
3995#define CQ_ENET_RQ_DESC_FLAGS_INGRESS_PORT (0x1 << 12)
4096#define CQ_ENET_RQ_DESC_FLAGS_FCOE (0x1 << 13)
4197#define CQ_ENET_RQ_DESC_FLAGS_EOP (0x1 << 14)
0 commit comments