Lines Matching refs:ethsw
94 struct ethsw_core *ethsw;
125 struct ethsw_core *ethsw;
195 static inline int dpaa2_switch_get_index(struct ethsw_core *ethsw,
200 for (i = 0; i < ethsw->sw_attr.num_ifs; i++)
201 if (ethsw->ports[i]->netdev == netdev)
202 return ethsw->ports[i]->idx;
207 static inline bool dpaa2_switch_supports_cpu_traffic(struct ethsw_core *ethsw)
209 if (ethsw->sw_attr.options & DPSW_OPT_CTRL_IF_DIS) {
210 dev_err(ethsw->dev, "Control Interface is disabled, cannot probe\n");
214 if (ethsw->sw_attr.flooding_cfg != DPSW_FLOODING_PER_FDB) {
215 dev_err(ethsw->dev, "Flooding domain is not per FDB, cannot probe\n");
219 if (ethsw->sw_attr.broadcast_cfg != DPSW_BROADCAST_PER_FDB) {
220 dev_err(ethsw->dev, "Broadcast domain is not per FDB, cannot probe\n");
224 if (ethsw->sw_attr.max_fdbs < ethsw->sw_attr.num_ifs) {
225 dev_err(ethsw->dev, "The number of FDBs is lower than the number of ports, cannot probe\n");