Home
last modified time | relevance | path

Searched refs:vlan_id (Results 1 – 25 of 48) sorted by relevance

12

/illumos-gate/usr/src/lib/librstp/common/
H A Dstp_in.h143 STP_IN_stpm_create (int vlan_id, char* name);
146 STP_IN_stpm_delete (int vlan_id);
149 STP_IN_port_add (int vlan_id, int port_index);
152 STP_IN_port_remove (int vlan_id, int port_index);
163 STP_IN_get_is_stpm_enabled (int vlan_id);
166 STP_IN_stpm_get_vlan_id_by_name (char* name, int* vlan_id);
169 STP_IN_stpm_get_name_by_vlan_id (int vlan_id, char* name, size_t buffsize);
175 STP_IN_stpm_get_cfg (int vlan_id, UID_STP_CFG_T* uid_cfg);
178 STP_IN_stpm_get_state (int vlan_id, UID_STP_STATE_T* entry);
181 STP_IN_port_get_cfg (int vlan_id, int port_index, UID_STP_PORT_CFG_T* uid_cfg);
[all …]
H A Dstpmgmt.c32 STP_IN_stpm_create (int vlan_id, char* name) in STP_IN_stpm_create() argument
41 STP_OUT_get_init_stpm_cfg (vlan_id, &init_cfg); in STP_IN_stpm_create()
45 this = stp_in_stpm_create (vlan_id, name, &err_code); in STP_IN_stpm_create()
59 STP_IN_stpm_delete (int vlan_id) in STP_IN_stpm_delete() argument
65 this = stpapi_stpm_find (vlan_id); in STP_IN_stpm_delete()
75 STP_OUT_set_hardware_mode (vlan_id, STP_DISABLED); in STP_IN_stpm_delete()
87 STP_IN_stpm_get_vlan_id_by_name (char* name, int* vlan_id) in STP_IN_stpm_get_vlan_id_by_name() argument
95 *vlan_id = stpm->vlan_id; in STP_IN_stpm_get_vlan_id_by_name()
107 STP_IN_get_is_stpm_enabled (int vlan_id) in STP_IN_get_is_stpm_enabled() argument
113 this = stpapi_stpm_find (vlan_id); in STP_IN_get_is_stpm_enabled()
[all …]
H A Dstp_in.c35 stp_in_stpm_create (int vlan_id, char* name, int* err_code) in stp_in_stpm_create() argument
40 this = stpapi_stpm_find (vlan_id); in stp_in_stpm_create()
46 this = STP_stpm_create (vlan_id, name); in stp_in_stpm_create()
57 _stp_in_stpm_enable (int vlan_id, char* name, in _stp_in_stpm_enable() argument
65 this = stpapi_stpm_find (vlan_id); in _stp_in_stpm_enable()
68 if (! vlan_id) { /* STP_IN_stop_all (); */ in _stp_in_stpm_enable()
73 STP_OUT_set_hardware_mode (stpm->vlan_id, STP_DISABLED); in _stp_in_stpm_enable()
83 this = stp_in_stpm_create (vlan_id, name, &err_code); in _stp_in_stpm_enable()
100 STP_OUT_set_hardware_mode (vlan_id, admin_state); in _stp_in_stpm_enable()
112 stpapi_stpm_find (int vlan_id) in stpapi_stpm_find() argument
[all …]
H A Dstp_vectors.h41 int (*flush_lt)(IN int port_index, IN int vlan_id,
56 int (*set_learning) (IN int port_index, IN int vlan_id, IN int enable);
57 int (*set_forwarding) (IN int port_index, IN int vlan_id,
64 int (*set_port_state) (IN int port_index, IN int vlan_id,
68 int (*set_hardware_mode) (int vlan_id, UID_STP_MODE_T mode);
69 int (*tx_bpdu) (IN int port_index, IN int vlan_id,
73 int (*get_init_stpm_cfg) (IN int vlan_id,
75 int (*get_init_port_cfg) (IN int vlan_id,
H A Dsttrans.c45 return STP_OUT_set_learning (port->port_index, port->owner->vlan_id, False); in disableLearning()
53 return STP_OUT_set_learning (port->port_index, port->owner->vlan_id, True); in enableLearning()
61 return STP_OUT_set_forwarding (port->port_index, port->owner->vlan_id, False); in disableForwarding()
69 return STP_OUT_set_forwarding (port->port_index, port->owner->vlan_id, True); in enableForwarding()
87 STP_OUT_set_port_state (port->port_index, port->owner->vlan_id, UID_PORT_DISCARDING); in STP_sttrans_enter_state()
95 STP_OUT_set_port_state (port->port_index, port->owner->vlan_id, UID_PORT_LEARNING); in STP_sttrans_enter_state()
104 STP_OUT_set_port_state (port->port_index, port->owner->vlan_id, UID_PORT_FORWARDING); in STP_sttrans_enter_state()
H A Dtransmit.c121 register int port_index, vlan_id; in txTcn() local
135 vlan_id = this->owner.port->owner->vlan_id; in txTcn()
145 return STP_OUT_tx_bpdu (port_index, vlan_id, in txTcn()
176 register int port_index, vlan_id; in txConfig() local
191 vlan_id = port->owner->vlan_id; in txConfig()
204 return STP_OUT_tx_bpdu (port_index, vlan_id, in txConfig()
214 register int port_index, vlan_id; in txRstp() local
234 vlan_id = port->owner->vlan_id; in txRstp()
285 return STP_OUT_tx_bpdu (port_index, vlan_id, in txRstp()
H A Dstpm.h68 int vlan_id; /* let's say: tag */ member
88 STP_stpm_create (int vlan_id, char* name);
120 STPM_T* stpapi_stpm_find (int vlan_id);
122 int stp_in_stpm_enable (int vlan_id, char* name,
124 void* stp_in_stpm_create (int vlan_id, char *name, int *err_code);
H A Dstpm.c128 STP_stpm_create (int vlan_id, char* name) in STP_stpm_create() argument
136 this->vlan_id = vlan_id; in STP_stpm_create()
200 if (tmp->vlan_id == this->vlan_id) { in STP_stpm_delete()
249 STP_OUT_flush_lt (0, this->vlan_id, LT_FLASH_ONLY_THE_PORT, "start stpm"); in STP_stpm_start()
H A Dtopoch.c68 bret = STP_OUT_flush_lt (port->port_index, port->owner->vlan_id, in flush()
93 STP_OUT_flush_lt (port->port_index, port->owner->vlan_id, in setTcPropBridge()
H A Duid_stp.h84 unsigned long vlan_id; member
H A Dport.c67 STP_OUT_get_init_port_cfg (stpm->vlan_id, port_index, &port_cfg); in STP_port_create()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Drstp.c61 flush_lt(int port_index, int vlan_id, LT_FLASH_TYPE_T type, char *reason) in flush_lt() argument
174 set_port_state(int port_index, int vlan_id, RSTP_PORT_STATE state) in set_port_state() argument
225 set_hardware_mode(int vlan_id, UID_STP_MODE_T mode) in set_hardware_mode() argument
229 vlan_id, mode); in set_hardware_mode()
235 tx_bpdu(int port_index, int vlan_id, unsigned char *bpdu, size_t bpdu_len) in tx_bpdu() argument
268 get_init_stpm_cfg(int vlan_id, UID_STP_CFG_T *cfg) in get_init_stpm_cfg() argument
277 get_init_port_cfg(int vlan_id, int port_index, UID_STP_PORT_CFG_T *cfg) in get_init_port_cfg() argument
457 STP_IN_get_bridge_id(port->vlan_id, &prio, mac); in rstp_change_mac()
487 (rc = STP_IN_port_add(port->vlan_id, port->port_index)) != 0) { in rstp_add_port()
495 (void) get_init_port_cfg(port->vlan_id, port->port_index, &portcfg); in rstp_add_port()
[all …]
H A Devents.c176 update_port(int vlan_id, const char *portname, datalink_id_t linkid, in update_port() argument
227 port->vlan_id = vlan_id; in update_port()
416 (void) STP_IN_port_remove(pdp->vlan_id, in handle_refresh()
551 rc = STP_IN_rx_bpdu(port->vlan_id, port->port_index, in receive_packet()
H A Dglobal.h46 int vlan_id; member
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhpi_pfc.h83 #define PFC_VLAN_REG_OFFSET(vlan_id) \ argument
84 ((((vlan_id_t)(vlan_id / PFC_N_VLAN_MEMBERS)) * 8) + PFC_VLAN_TABLE)
85 #define PFC_VLAN_BIT_OFFSET(vlan_id) \ argument
86 (vlan_id % PFC_N_VLAN_MEMBERS)
H A Dhpi_pfc.c341 hpi_pfc_cfg_vlan_table_entry_clear(hpi_handle_t handle, vlan_id_t vlan_id) in hpi_pfc_cfg_vlan_table_entry_clear() argument
351 offset = PFC_VLAN_REG_OFFSET(vlan_id); in hpi_pfc_cfg_vlan_table_entry_clear()
354 bit = PFC_VLAN_BIT_OFFSET(vlan_id); in hpi_pfc_cfg_vlan_table_entry_clear()
364 hpi_pfc_cfg_vlan_table_entry_set(hpi_handle_t handle, vlan_id_t vlan_id) in hpi_pfc_cfg_vlan_table_entry_set() argument
374 offset = PFC_VLAN_REG_OFFSET(vlan_id); in hpi_pfc_cfg_vlan_table_entry_set()
377 bit = PFC_VLAN_BIT_OFFSET(vlan_id); in hpi_pfc_cfg_vlan_table_entry_set()
388 boolean_t valid, vlan_id_t vlan_id) in hpi_pfc_cfg_vlan_control_set() argument
404 vlan_control.bits.id = vlan_id; in hpi_pfc_cfg_vlan_control_set()
/illumos-gate/usr/src/uts/common/io/nxge/npi/
H A Dnpi_fflp.c182 vlan_id_t vlan_id; in npi_fflp_vlan_tbl_dump() local
192 for (vlan_id = start; vlan_id < stop; vlan_id++) { in npi_fflp_vlan_tbl_dump()
193 offset = FFLP_VLAN_OFFSET(vlan_id, FFLP_ENET_VLAN_TBL_REG); in npi_fflp_vlan_tbl_dump()
196 "%x\t %llx\t %llx\n", vlan_id, offset, value)); in npi_fflp_vlan_tbl_dump()
1511 vlan_id_t vlan_id, uint8_t rdc_table, in npi_fflp_cfg_enet_vlan_table_assoc() argument
1520 ASSERT(FFLP_VLAN_VALID(vlan_id)); in npi_fflp_cfg_enet_vlan_table_assoc()
1521 if (!FFLP_VLAN_VALID(vlan_id)) { in npi_fflp_cfg_enet_vlan_table_assoc()
1525 vlan_id)); in npi_fflp_cfg_enet_vlan_table_assoc()
1547 offset = FFLP_VLAN_OFFSET(vlan_id, FFLP_ENET_VLAN_TBL_REG); in npi_fflp_cfg_enet_vlan_table_assoc()
1628 vlan_id_t vlan_id, uint8_t priority) in npi_fflp_cfg_enet_vlan_table_set_pri() argument
[all …]
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/hsi_repository/
H A Dtcp_common.h103 __le16 vlan_id; member
178 __le16 vlan_id; member
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvsw_switching.c1333 uint16_t vlan_id; in vsw_vlan_frame_untag() local
1386 is_tagged = vsw_frame_lookup_vid(arg, type, ehp, &vlan_id); in vsw_vlan_frame_untag()
1397 if (vlan_id == pvid) { in vsw_vlan_frame_untag()
1417 if (vlan_id != vswp->default_vlan_id) { in vsw_vlan_frame_untag()
1427 if (vlan_id == pvid) { in vsw_vlan_frame_untag()
1441 vlan_id); in vsw_vlan_frame_untag()
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_fflp.c162 vlan_id_t vlan_id; in nxge_fflp_vlan_tbl_clear_all() local
169 for (vlan_id = start; vlan_id < stop; vlan_id++) { in nxge_fflp_vlan_tbl_clear_all()
170 rs = npi_fflp_cfg_vlan_table_clear(handle, vlan_id); in nxge_fflp_vlan_tbl_clear_all()
174 vlan_id)); in nxge_fflp_vlan_tbl_clear_all()
1944 nxge_fflp_config_vlan_table(p_nxge_t nxgep, uint16_t vlan_id) in nxge_fflp_config_vlan_table() argument
1960 if (vlan_table[vlan_id].flag == 0) { in nxge_fflp_config_vlan_table()
1963 " vlan id is not configured %d", vlan_id)); in nxge_fflp_config_vlan_table()
1974 rdc_grp = vlan_table[vlan_id].rdctbl; in nxge_fflp_config_vlan_table()
1976 port, vlan_id, in nxge_fflp_config_vlan_table()
1984 port, vlan_id, rdc_grp)); in nxge_fflp_config_vlan_table()
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_iscsi_api.h71 u16 vlan_id; member
H A Decore_roce.h262 u16 vlan_id; member
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/
H A Demlxs_fcf.h328 uint16_t vlan_id; member
H A Demlxs_menlo.h231 uint16_t vlan_id[MAX_SUPPORTED_VLANS]; /* VLAN list */ member
1050 uint16_t vlan_id; /* vlan_id */ member
/illumos-gate/usr/src/uts/common/io/i40e/core/
H A Dvirtchnl.h447 u16 vlan_id[1]; member

12