Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
bnx2x_exe_queue_obj Struct Reference

#include <bnx2x_sp.h>

Data Fields

struct list_head exe_queue
 
struct list_head pending_comp
 
spinlock_t lock
 
int exe_chunk_len
 
union bnx2x_qable_objowner
 
exe_q_validate validate
 
exe_q_remove remove
 
exe_q_optimize optimize
 
exe_q_execute execute
 
exe_q_get get
 

Detailed Description

Definition at line 184 of file bnx2x_sp.h.

Field Documentation

int exe_chunk_len

Definition at line 198 of file bnx2x_sp.h.

struct list_head exe_queue

Definition at line 188 of file bnx2x_sp.h.

exe_q_execute execute

Run the next commands chunk (owner specific).

Definition at line 230 of file bnx2x_sp.h.

exe_q_get get

Return the exe_queue element containing the specific command if any. Otherwise return NULL.

Definition at line 236 of file bnx2x_sp.h.

spinlock_t lock

Definition at line 195 of file bnx2x_sp.h.

exe_q_optimize optimize

This will try to cancel the current pending commands list considering the new command.

Returns the number of optimized commands or a negative error code

Must run under exe_queue->lock

Definition at line 225 of file bnx2x_sp.h.

union bnx2x_qable_obj* owner

Definition at line 200 of file bnx2x_sp.h.

struct list_head pending_comp

Definition at line 193 of file bnx2x_sp.h.

exe_q_remove remove

Called before removing pending commands, cleaning allocated resources (e.g., credits from validate)

Definition at line 215 of file bnx2x_sp.h.

exe_q_validate validate

Called before commands execution for commands that are really going to be executed (after 'optimize').

Must run under exe_queue->lock

Definition at line 209 of file bnx2x_sp.h.


The documentation for this struct was generated from the following file: