Searched refs:port_netdev (Results 1 – 1 of 1) sorted by relevance
1692 struct net_device *port_netdev; in dpaa2_switch_probe_port() local1695 port_netdev = alloc_etherdev(sizeof(struct ethsw_port_priv)); in dpaa2_switch_probe_port()1696 if (!port_netdev) { in dpaa2_switch_probe_port()1701 port_priv = netdev_priv(port_netdev); in dpaa2_switch_probe_port()1702 port_priv->netdev = port_netdev; in dpaa2_switch_probe_port()1711 SET_NETDEV_DEV(port_netdev, dev); in dpaa2_switch_probe_port()1712 port_netdev->netdev_ops = &dpaa2_switch_port_ops; in dpaa2_switch_probe_port()1713 port_netdev->ethtool_ops = &dpaa2_switch_port_ethtool_ops; in dpaa2_switch_probe_port()1716 port_netdev->min_mtu = ETH_MIN_MTU; in dpaa2_switch_probe_port()1717 port_netdev->max_mtu = ETHSW_MAX_FRAME_LENGTH; in dpaa2_switch_probe_port()[all …]