FreeBSD kernel BXE device code
|
#include <ecore_sp.h>
Definition at line 750 of file ecore_sp.h.
int(* ecore_vlan_mac_obj::check_add) (struct bxe_softc *sc, struct ecore_vlan_mac_obj *o, union ecore_classification_ramrod_data *data) |
Checks if ADD-ramrod with the given params may be performed.
Definition at line 797 of file ecore_sp.h.
Referenced by ecore_check_move(), ecore_init_mac_obj(), ecore_init_vlan_mac_obj(), ecore_init_vlan_obj(), ecore_init_vxlan_fltr_obj(), and ecore_validate_vlan_mac_add().
struct ecore_vlan_mac_registry_elem *(* ecore_vlan_mac_obj::check_del) (struct bxe_softc *sc, struct ecore_vlan_mac_obj *o, union ecore_classification_ramrod_data *data) |
Checks if DEL-ramrod with the given params may be performed.
Definition at line 797 of file ecore_sp.h.
Referenced by ecore_check_move(), ecore_execute_vlan_mac(), ecore_init_mac_obj(), ecore_init_vlan_mac_obj(), ecore_init_vlan_obj(), ecore_init_vxlan_fltr_obj(), ecore_validate_vlan_mac_del(), and ecore_vlan_mac_get_registry_elem().
bool(* ecore_vlan_mac_obj::check_move) (struct bxe_softc *sc, struct ecore_vlan_mac_obj *src_o, struct ecore_vlan_mac_obj *dst_o, union ecore_classification_ramrod_data *data) |
Checks if DEL-ramrod with the given params may be performed.
Definition at line 816 of file ecore_sp.h.
Referenced by ecore_init_mac_obj(), ecore_init_vlan_mac_obj(), ecore_init_vlan_obj(), ecore_init_vxlan_fltr_obj(), and ecore_validate_vlan_mac_move().
int(* ecore_vlan_mac_obj::complete) (struct bxe_softc *sc, struct ecore_vlan_mac_obj *o, union event_ring_elem *cqe, unsigned long *ramrod_flags) |
Should be called on a completion arrival.
sc | |
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 896 of file ecore_sp.h.
Referenced by bxe_handle_classification_eqe(), and ecore_init_vlan_mac_common().
int(* ecore_vlan_mac_obj::delete_all) (struct bxe_softc *sc, struct ecore_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.
sc | |
o | |
ramrod_flags | RAMROD_XX flags |
Definition at line 855 of file ecore_sp.h.
Referenced by bxe_del_all_macs(), bxe_squeeze_objects(), and ecore_init_vlan_mac_common().
struct ecore_exe_queue_obj ecore_vlan_mac_obj::exe_queue |
Definition at line 765 of file ecore_sp.h.
Referenced by __ecore_vlan_mac_execute_step(), __ecore_vlan_mac_h_exec_pending(), ecore_complete_vlan_mac(), ecore_config_vlan_mac(), ecore_init_mac_obj(), ecore_init_vlan_mac_obj(), ecore_init_vlan_obj(), ecore_init_vxlan_fltr_obj(), ecore_optimize_vlan_mac(), ecore_validate_vlan_mac_add(), ecore_validate_vlan_mac_del(), ecore_validate_vlan_mac_move(), ecore_vlan_mac_del_all(), ecore_vlan_mac_h_read_lock(), ecore_vlan_mac_h_read_unlock(), ecore_vlan_mac_h_write_unlock(), ecore_vlan_mac_push_new_cmd(), and ecore_wait_vlan_mac().
bool(* ecore_vlan_mac_obj::get_cam_offset) (struct ecore_vlan_mac_obj *o, int *offset) |
Definition at line 827 of file ecore_sp.h.
Referenced by ecore_init_mac_obj(), ecore_init_vlan_mac_obj(), ecore_init_vlan_obj(), ecore_init_vxlan_fltr_obj(), and ecore_vlan_mac_get_registry_elem().
bool(* ecore_vlan_mac_obj::get_credit) (struct ecore_vlan_mac_obj *o) |
Update the relevant credit object(s) (consume/return correspondingly).
Definition at line 825 of file ecore_sp.h.
Referenced by ecore_init_mac_obj(), ecore_init_vlan_mac_obj(), ecore_init_vlan_obj(), ecore_init_vxlan_fltr_obj(), ecore_optimize_vlan_mac(), ecore_remove_vlan_mac(), ecore_validate_vlan_mac_add(), and ecore_validate_vlan_mac_move().
int(* ecore_vlan_mac_obj::get_n_elements) (struct bxe_softc *sc, struct ecore_vlan_mac_obj *o, int n, uint8_t *base, uint8_t stride, uint8_t size) |
Definition at line 787 of file ecore_sp.h.
Referenced by bxe_drv_info_ether_stat(), ecore_init_mac_obj(), and ecore_init_vlan_obj().
ecore_list_t ecore_vlan_mac_obj::head |
Definition at line 756 of file ecore_sp.h.
Referenced by ecore_check_mac_add(), ecore_check_mac_del(), ecore_check_vlan_add(), ecore_check_vlan_del(), ecore_check_vlan_mac_add(), ecore_check_vlan_mac_del(), ecore_check_vxlan_fltr_add(), ecore_check_vxlan_fltr_del(), ecore_execute_vlan_mac(), ecore_get_n_elements(), ecore_init_vlan_mac_common(), ecore_vlan_mac_del_all(), and ecore_vlan_mac_restore().
bool ecore_vlan_mac_obj::head_exe_request |
Definition at line 761 of file ecore_sp.h.
Referenced by __ecore_vlan_mac_h_exec_pending(), __ecore_vlan_mac_h_pend(), __ecore_vlan_mac_h_read_unlock(), __ecore_vlan_mac_h_write_unlock(), and ecore_init_vlan_mac_common().
uint8_t ecore_vlan_mac_obj::head_reader |
Definition at line 760 of file ecore_sp.h.
Referenced by __ecore_vlan_mac_h_read_lock(), __ecore_vlan_mac_h_read_unlock(), __ecore_vlan_mac_h_write_trylock(), and ecore_init_vlan_mac_common().
struct ecore_credit_pool_obj* ecore_vlan_mac_obj::macs_pool |
Definition at line 768 of file ecore_sp.h.
Referenced by ecore_get_cam_offset_mac(), ecore_get_credit_mac(), ecore_get_credit_vlan_mac(), ecore_init_vlan_mac_common(), ecore_put_cam_offset_mac(), ecore_put_credit_mac(), and ecore_put_credit_vlan_mac().
bool(* ecore_vlan_mac_obj::put_cam_offset) (struct ecore_vlan_mac_obj *o, int offset) |
Definition at line 828 of file ecore_sp.h.
Referenced by ecore_execute_vlan_mac(), ecore_init_mac_obj(), ecore_init_vlan_mac_obj(), ecore_init_vlan_obj(), and ecore_init_vxlan_fltr_obj().
bool(* ecore_vlan_mac_obj::put_credit) (struct ecore_vlan_mac_obj *o) |
Definition at line 826 of file ecore_sp.h.
Referenced by ecore_init_mac_obj(), ecore_init_vlan_mac_obj(), ecore_init_vlan_obj(), ecore_init_vxlan_fltr_obj(), ecore_optimize_vlan_mac(), ecore_remove_vlan_mac(), ecore_validate_vlan_mac_del(), and ecore_validate_vlan_mac_move().
int ecore_vlan_mac_obj::ramrod_cmd |
Definition at line 774 of file ecore_sp.h.
Referenced by ecore_execute_vlan_mac(), ecore_init_mac_obj(), ecore_init_vlan_mac_obj(), ecore_init_vlan_obj(), and ecore_init_vxlan_fltr_obj().
struct ecore_raw_obj ecore_vlan_mac_obj::raw |
Definition at line 751 of file ecore_sp.h.
Referenced by ecore_complete_vlan_mac(), ecore_config_vlan_mac(), ecore_execute_vlan_mac(), ecore_init_vlan_mac_common(), ecore_set_one_mac_e1x(), ecore_set_one_mac_e2(), ecore_set_one_vlan_e2(), ecore_set_one_vlan_mac_e1h(), ecore_set_one_vlan_mac_e2(), ecore_set_one_vxlan_fltr_e2(), ecore_vlan_mac_get_rx_tx_flag(), ecore_vlan_mac_set_cfg_entry_e1x(), ecore_vlan_mac_set_cmd_hdr_e2(), ecore_vlan_mac_set_rdata_e1x(), ecore_vlan_mac_set_rdata_hdr_e1x(), and ecore_wait_vlan_mac().
int(* ecore_vlan_mac_obj::restore) (struct bxe_softc *sc, struct ecore_vlan_mac_ramrod_params *p, struct ecore_vlan_mac_registry_elem **ppos) |
Reconfigures the next MAC/VLAN/VLAN-MAC element from the previously configured elements list.
sc | |
p | Command parameters (RAMROD_COMP_WAIT bit in ramrod_flags is only taken into an account) |
ppos | a pointer to the cookie 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 875 of file ecore_sp.h.
Referenced by ecore_init_vlan_mac_common(), and ecore_vlan_mac_push_new_cmd().
unsigned long ecore_vlan_mac_obj::saved_ramrod_flags |
Definition at line 762 of file ecore_sp.h.
Referenced by __ecore_vlan_mac_h_exec_pending(), __ecore_vlan_mac_h_pend(), and ecore_init_vlan_mac_common().
void(* ecore_vlan_mac_obj::set_one_rule) (struct bxe_softc *sc, struct ecore_vlan_mac_obj *o, struct ecore_exeq_elem *elem, int rule_idx, int cam_offset) |
Configures one rule in the ramrod data buffer.
Definition at line 833 of file ecore_sp.h.
Referenced by ecore_execute_vlan_mac(), ecore_init_mac_obj(), ecore_init_vlan_mac_obj(), ecore_init_vlan_obj(), and ecore_init_vxlan_fltr_obj().
struct ecore_credit_pool_obj* ecore_vlan_mac_obj::vlans_pool |
Definition at line 771 of file ecore_sp.h.
Referenced by ecore_get_cam_offset_vlan(), ecore_get_credit_vlan(), ecore_get_credit_vlan_mac(), ecore_init_vlan_mac_common(), ecore_put_cam_offset_vlan(), ecore_put_credit_vlan(), and ecore_put_credit_vlan_mac().
int(* ecore_vlan_mac_obj::wait) (struct bxe_softc *sc, struct ecore_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 905 of file ecore_sp.h.
Referenced by ecore_init_vlan_mac_common().