Lines Matching refs:ethsw
94 struct ethsw_core *ethsw; member
125 struct ethsw_core *ethsw; member
193 static inline int dpaa2_switch_get_index(struct ethsw_core *ethsw, in dpaa2_switch_get_index() argument
198 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_get_index()
199 if (ethsw->ports[i]->netdev == netdev) in dpaa2_switch_get_index()
200 return ethsw->ports[i]->idx; in dpaa2_switch_get_index()
205 static inline bool dpaa2_switch_supports_cpu_traffic(struct ethsw_core *ethsw) in dpaa2_switch_supports_cpu_traffic() argument
207 if (ethsw->sw_attr.options & DPSW_OPT_CTRL_IF_DIS) { in dpaa2_switch_supports_cpu_traffic()
208 dev_err(ethsw->dev, "Control Interface is disabled, cannot probe\n"); in dpaa2_switch_supports_cpu_traffic()
212 if (ethsw->sw_attr.flooding_cfg != DPSW_FLOODING_PER_FDB) { in dpaa2_switch_supports_cpu_traffic()
213 dev_err(ethsw->dev, "Flooding domain is not per FDB, cannot probe\n"); in dpaa2_switch_supports_cpu_traffic()
217 if (ethsw->sw_attr.broadcast_cfg != DPSW_BROADCAST_PER_FDB) { in dpaa2_switch_supports_cpu_traffic()
218 dev_err(ethsw->dev, "Broadcast domain is not per FDB, cannot probe\n"); in dpaa2_switch_supports_cpu_traffic()
222 if (ethsw->sw_attr.max_fdbs < ethsw->sw_attr.num_ifs) { in dpaa2_switch_supports_cpu_traffic()
223 dev_err(ethsw->dev, "The number of FDBs is lower than the number of ports, cannot probe\n"); in dpaa2_switch_supports_cpu_traffic()