Linux Kernel
3.7.1
|
#include <bnx2x_sp.h>
Definition at line 280 of file bnx2x_sp.h.
int(* check_add)(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *o, union bnx2x_classification_ramrod_data *data) |
Checks if ADD-ramrod with the given params may be performed.
Definition at line 319 of file bnx2x_sp.h.
|
read |
Checks if DEL-ramrod with the given params may be performed.
Definition at line 329 of file bnx2x_sp.h.
bool(* check_move)(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *src_o, struct bnx2x_vlan_mac_obj *dst_o, union bnx2x_classification_ramrod_data *data) |
Checks if DEL-ramrod with the given params may be performed.
Definition at line 338 of file bnx2x_sp.h.
int(* complete)(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *o, union event_ring_elem *cqe, unsigned long *ramrod_flags) |
Should be called on a completion arival.
bp | |
o | |
cqe | Completion element we are handling |
ramrod_flags | if RAMROD_CONT is set the next bulk of pending commands will be executed. RAMROD_DRV_CLR_ONLY and RAMROD_RESTORE may also be set if needed. |
Definition at line 418 of file bnx2x_sp.h.
int(* delete_all)(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *o, unsigned long *vlan_mac_flags, unsigned long *ramrod_flags) |
Delete all configured elements having the given vlan_mac_flags specification. Assumes no pending for execution commands. Will schedule all all currently configured MACs/VLANs/VLAN-MACs matching the vlan_mac_flags specification for deletion and will use the given ramrod_flags for the last DEL operation.
bp | |
o | |
ramrod_flags | RAMROD_XX flags |
Definition at line 377 of file bnx2x_sp.h.
struct bnx2x_exe_queue_obj exe_queue |
Definition at line 289 of file bnx2x_sp.h.
bool(* get_cam_offset)(struct bnx2x_vlan_mac_obj *o, int *offset) |
Definition at line 349 of file bnx2x_sp.h.
bool(* get_credit)(struct bnx2x_vlan_mac_obj *o) |
Update the relevant credit object(s) (consume/return correspondingly).
Definition at line 347 of file bnx2x_sp.h.
Definition at line 310 of file bnx2x_sp.h.
Definition at line 286 of file bnx2x_sp.h.
struct bnx2x_credit_pool_obj* macs_pool |
Definition at line 292 of file bnx2x_sp.h.
bool(* put_cam_offset)(struct bnx2x_vlan_mac_obj *o, int offset) |
Definition at line 350 of file bnx2x_sp.h.
bool(* put_credit)(struct bnx2x_vlan_mac_obj *o) |
Definition at line 348 of file bnx2x_sp.h.
int ramrod_cmd |
Definition at line 298 of file bnx2x_sp.h.
struct bnx2x_raw_obj raw |
Definition at line 281 of file bnx2x_sp.h.
int(* restore)(struct bnx2x *bp, struct bnx2x_vlan_mac_ramrod_params *p, struct bnx2x_vlan_mac_registry_elem **ppos) |
Reconfigures the next MAC/VLAN/VLAN-MAC element from the previously configured elements list.
bp | |
p | Command parameters (RAMROD_COMP_WAIT bit in ramrod_flags is only taken into an account) |
ppos | a pointer to the cooky that should be given back in the next call to make function handle the next element. If *ppos is set to NULL it will restart the iterator. If returned *ppos == NULL this means that the last element has been handled. |
Definition at line 397 of file bnx2x_sp.h.
void(* set_one_rule)(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *o, struct bnx2x_exeq_elem *elem, int rule_idx, int cam_offset) |
Configures one rule in the ramrod data buffer.
Definition at line 355 of file bnx2x_sp.h.
struct bnx2x_credit_pool_obj* vlans_pool |
Definition at line 295 of file bnx2x_sp.h.
int(* wait)(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *o) |
Wait for completion of all commands. Don't schedule new ones, just wait. It assumes that the completion code will schedule for new commands.
Definition at line 427 of file bnx2x_sp.h.