Searched refs:port_netdev (Results 1 – 1 of 1) sorted by relevance
3291 struct net_device *port_netdev; in dpaa2_switch_probe_port() local3294 port_netdev = alloc_etherdev(sizeof(struct ethsw_port_priv)); in dpaa2_switch_probe_port()3295 if (!port_netdev) { in dpaa2_switch_probe_port()3300 port_priv = netdev_priv(port_netdev); in dpaa2_switch_probe_port()3301 port_priv->netdev = port_netdev; in dpaa2_switch_probe_port()3309 SET_NETDEV_DEV(port_netdev, dev); in dpaa2_switch_probe_port()3310 port_netdev->netdev_ops = &dpaa2_switch_port_ops; in dpaa2_switch_probe_port()3311 port_netdev->ethtool_ops = &dpaa2_switch_port_ethtool_ops; in dpaa2_switch_probe_port()3313 port_netdev->needed_headroom = DPAA2_SWITCH_NEEDED_HEADROOM; in dpaa2_switch_probe_port()3319 port_netdev->min_mtu = ETH_MIN_MTU; in dpaa2_switch_probe_port()[all …]