Lines Matching refs:port_netdev
3291 struct net_device *port_netdev; in dpaa2_switch_probe_port() local
3294 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()
3320 port_netdev->max_mtu = ETHSW_MAX_FRAME_LENGTH; in dpaa2_switch_probe_port()
3330 port_netdev->features = NETIF_F_HW_VLAN_CTAG_FILTER | in dpaa2_switch_probe_port()
3333 port_netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE; in dpaa2_switch_probe_port()
3355 free_netdev(port_netdev); in dpaa2_switch_probe_port()