mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
ice: Use more efficient structures
Move a bunch of members around to make more efficient use of memory, eliminating holes where possible. None of these members are hot path so cache line alignment is not very important here. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
0437f1a98a
commit
0690527014
@ -79,6 +79,7 @@ struct ice_rq_event_info {
|
||||
/* Control Queue information */
|
||||
struct ice_ctl_q_info {
|
||||
enum ice_ctl_q qtype;
|
||||
enum ice_aq_err rq_last_status; /* last status on receive queue */
|
||||
struct ice_ctl_q_ring rq; /* receive queue */
|
||||
struct ice_ctl_q_ring sq; /* send queue */
|
||||
u32 sq_cmd_timeout; /* send queue cmd write back timeout */
|
||||
@ -86,10 +87,9 @@ struct ice_ctl_q_info {
|
||||
u16 num_sq_entries; /* send queue depth */
|
||||
u16 rq_buf_size; /* receive queue buffer size */
|
||||
u16 sq_buf_size; /* send queue buffer size */
|
||||
enum ice_aq_err sq_last_status; /* last status on send queue */
|
||||
struct mutex sq_lock; /* Send queue lock */
|
||||
struct mutex rq_lock; /* Receive queue lock */
|
||||
enum ice_aq_err sq_last_status; /* last status on send queue */
|
||||
enum ice_aq_err rq_last_status; /* last status on receive queue */
|
||||
};
|
||||
|
||||
#endif /* _ICE_CONTROLQ_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user