• Home
  • Raw
  • Download

Lines Matching refs:real_dev

134 	dev = vlan_dev_priv(dev)->real_dev;  in vlan_dev_hard_header()
173 skb->dev = vlan->real_dev; in vlan_dev_hard_start_xmit()
200 if (vlan_dev_priv(dev)->real_dev->mtu < new_mtu) in vlan_dev_change_mtu()
288 strncpy(result, vlan_dev_priv(dev)->real_dev->name, 23); in vlan_dev_get_realdev_name()
294 struct net_device *real_dev = vlan->real_dev; in vlan_dev_open() local
297 if (!(real_dev->flags & IFF_UP) && in vlan_dev_open()
301 if (!ether_addr_equal(dev->dev_addr, real_dev->dev_addr)) { in vlan_dev_open()
302 err = dev_uc_add(real_dev, dev->dev_addr); in vlan_dev_open()
308 err = dev_set_allmulti(real_dev, 1); in vlan_dev_open()
313 err = dev_set_promiscuity(real_dev, 1); in vlan_dev_open()
318 memcpy(vlan->real_dev_addr, real_dev->dev_addr, ETH_ALEN); in vlan_dev_open()
326 if (netif_carrier_ok(real_dev)) in vlan_dev_open()
332 dev_set_allmulti(real_dev, -1); in vlan_dev_open()
334 if (!ether_addr_equal(dev->dev_addr, real_dev->dev_addr)) in vlan_dev_open()
335 dev_uc_del(real_dev, dev->dev_addr); in vlan_dev_open()
344 struct net_device *real_dev = vlan->real_dev; in vlan_dev_stop() local
346 dev_mc_unsync(real_dev, dev); in vlan_dev_stop()
347 dev_uc_unsync(real_dev, dev); in vlan_dev_stop()
349 dev_set_allmulti(real_dev, -1); in vlan_dev_stop()
351 dev_set_promiscuity(real_dev, -1); in vlan_dev_stop()
353 if (!ether_addr_equal(dev->dev_addr, real_dev->dev_addr)) in vlan_dev_stop()
354 dev_uc_del(real_dev, dev->dev_addr); in vlan_dev_stop()
362 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_set_mac_address() local
372 if (!ether_addr_equal(addr->sa_data, real_dev->dev_addr)) { in vlan_dev_set_mac_address()
373 err = dev_uc_add(real_dev, addr->sa_data); in vlan_dev_set_mac_address()
378 if (!ether_addr_equal(dev->dev_addr, real_dev->dev_addr)) in vlan_dev_set_mac_address()
379 dev_uc_del(real_dev, dev->dev_addr); in vlan_dev_set_mac_address()
388 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_ioctl() local
389 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_ioctl()
393 strncpy(ifrr.ifr_name, real_dev->name, IFNAMSIZ); in vlan_dev_ioctl()
400 if (netif_device_present(real_dev) && ops->ndo_do_ioctl) in vlan_dev_ioctl()
401 err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd); in vlan_dev_ioctl()
413 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_neigh_setup() local
414 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_neigh_setup()
417 if (netif_device_present(real_dev) && ops->ndo_neigh_setup) in vlan_dev_neigh_setup()
418 err = ops->ndo_neigh_setup(real_dev, pa); in vlan_dev_neigh_setup()
427 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_fcoe_ddp_setup() local
428 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_setup()
432 rc = ops->ndo_fcoe_ddp_setup(real_dev, xid, sgl, sgc); in vlan_dev_fcoe_ddp_setup()
439 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_fcoe_ddp_done() local
440 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_done()
444 len = ops->ndo_fcoe_ddp_done(real_dev, xid); in vlan_dev_fcoe_ddp_done()
451 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_fcoe_enable() local
452 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_enable()
456 rc = ops->ndo_fcoe_enable(real_dev); in vlan_dev_fcoe_enable()
462 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_fcoe_disable() local
463 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_disable()
467 rc = ops->ndo_fcoe_disable(real_dev); in vlan_dev_fcoe_disable()
473 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_fcoe_get_wwn() local
474 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_get_wwn()
478 rc = ops->ndo_fcoe_get_wwn(real_dev, wwn, type); in vlan_dev_fcoe_get_wwn()
485 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_fcoe_ddp_target() local
486 const struct net_device_ops *ops = real_dev->netdev_ops; in vlan_dev_fcoe_ddp_target()
490 rc = ops->ndo_fcoe_ddp_target(real_dev, xid, sgl, sgc); in vlan_dev_fcoe_ddp_target()
498 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_change_rx_flags() local
502 dev_set_allmulti(real_dev, dev->flags & IFF_ALLMULTI ? 1 : -1); in vlan_dev_change_rx_flags()
504 dev_set_promiscuity(real_dev, dev->flags & IFF_PROMISC ? 1 : -1); in vlan_dev_change_rx_flags()
510 dev_mc_sync(vlan_dev_priv(vlan_dev)->real_dev, vlan_dev); in vlan_dev_set_rx_mode()
511 dev_uc_sync(vlan_dev_priv(vlan_dev)->real_dev, vlan_dev); in vlan_dev_set_rx_mode()
553 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_init() local
559 dev->flags = real_dev->flags & ~(IFF_UP | IFF_PROMISC | IFF_ALLMULTI | in vlan_dev_init()
561 dev->iflink = real_dev->ifindex; in vlan_dev_init()
562 dev->state = (real_dev->state & ((1<<__LINK_STATE_NOCARRIER) | in vlan_dev_init()
571 dev->features |= real_dev->vlan_features | NETIF_F_LLTX; in vlan_dev_init()
572 dev->gso_max_size = real_dev->gso_max_size; in vlan_dev_init()
575 dev->dev_id = real_dev->dev_id; in vlan_dev_init()
578 memcpy(dev->dev_addr, real_dev->dev_addr, dev->addr_len); in vlan_dev_init()
580 memcpy(dev->broadcast, real_dev->broadcast, dev->addr_len); in vlan_dev_init()
583 dev->fcoe_ddp_xid = real_dev->fcoe_ddp_xid; in vlan_dev_init()
586 dev->needed_headroom = real_dev->needed_headroom; in vlan_dev_init()
587 if (real_dev->features & NETIF_F_HW_VLAN_CTAG_TX) { in vlan_dev_init()
588 dev->header_ops = real_dev->header_ops; in vlan_dev_init()
589 dev->hard_header_len = real_dev->hard_header_len; in vlan_dev_init()
592 dev->hard_header_len = real_dev->hard_header_len + VLAN_HLEN; in vlan_dev_init()
599 if (is_vlan_dev(real_dev)) in vlan_dev_init()
630 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_fix_features() local
633 features &= real_dev->vlan_features; in vlan_dev_fix_features()
635 features &= real_dev->features; in vlan_dev_fix_features()
648 return __ethtool_get_settings(vlan->real_dev, cmd); in vlan_ethtool_get_settings()
706 struct net_device *real_dev = vlan->real_dev; in vlan_dev_netpoll_setup() local
715 err = __netpoll_setup(netpoll, real_dev, gfp); in vlan_dev_netpoll_setup()