Home
last modified time | relevance | path

Searched refs:netdev (Results 1 – 25 of 44) sorted by relevance

12

/net/openvswitch/
Dvport-internal_dev.c27 static struct internal_dev *internal_dev_priv(struct net_device *netdev) in internal_dev_priv() argument
29 return netdev_priv(netdev); in internal_dev_priv()
34 internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) in internal_dev_xmit() argument
40 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit()
44 struct pcpu_sw_netstats *tstats = this_cpu_ptr(netdev->tstats); in internal_dev_xmit()
51 netdev->stats.tx_errors++; in internal_dev_xmit()
56 static int internal_dev_open(struct net_device *netdev) in internal_dev_open() argument
58 netif_start_queue(netdev); in internal_dev_open()
62 static int internal_dev_stop(struct net_device *netdev) in internal_dev_stop() argument
64 netif_stop_queue(netdev); in internal_dev_stop()
[all …]
DMakefile18 vport-netdev.o
/net/dcb/
Ddcbnl.c207 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate() argument
211 if (!netdev->dcbnl_ops->getstate) in dcbnl_getstate()
215 netdev->dcbnl_ops->getstate(netdev)); in dcbnl_getstate()
218 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg() argument
230 if (!netdev->dcbnl_ops->getpfccfg) in dcbnl_getpfccfg()
250 netdev->dcbnl_ops->getpfccfg(netdev, i - DCB_PFC_UP_ATTR_0, in dcbnl_getpfccfg()
263 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getperm_hwaddr() argument
268 if (!netdev->dcbnl_ops->getpermhwaddr) in dcbnl_getperm_hwaddr()
272 netdev->dcbnl_ops->getpermhwaddr(netdev, perm_addr); in dcbnl_getperm_hwaddr()
277 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap() argument
[all …]
/net/bluetooth/
D6lowpan.c69 struct net_device *netdev; member
78 lowpan_btle_dev(const struct net_device *netdev) in lowpan_btle_dev() argument
80 return (struct lowpan_btle_dev *)lowpan_dev(netdev)->priv; in lowpan_btle_dev()
210 neigh = __ipv6_neigh_lookup(dev->netdev, nexthop); in peer_lookup_dst()
275 static int iphc_decompress(struct sk_buff *skb, struct net_device *netdev, in iphc_decompress() argument
282 return lowpan_header_decompress(skb, netdev, netdev->dev_addr, saddr); in iphc_decompress()
384 if (!dev || !dev->netdev) in chan_recv_cb()
387 err = recv_pkt(skb, dev->netdev, peer); in chan_recv_cb()
396 static int setup_header(struct sk_buff *skb, struct net_device *netdev, in setup_header() argument
408 dev = lowpan_btle_dev(netdev); in setup_header()
[all …]
/net/wireless/
Dtrace.h41 memcpy(__entry->name, netdev->name, IFNAMSIZ); \
42 (__entry->ifindex) = (netdev->ifindex); \
404 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
406 TP_ARGS(wiphy, netdev, type),
422 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
424 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr),
445 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
447 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
451 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
453 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
[all …]
Dnl80211.h65 struct net_device *netdev,
68 struct net_device *netdev,
73 struct net_device *netdev,
76 struct net_device *netdev,
79 struct net_device *netdev,
82 struct net_device *netdev,
85 struct net_device *netdev,
89 struct net_device *netdev,
92 struct net_device *netdev, const u8 *bssid);
94 struct net_device *netdev, u16 reason,
[all …]
Drdev-ops.h75 struct net_device *netdev, u8 key_index, in rdev_add_key() argument
80 trace_rdev_add_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_add_key()
82 ret = rdev->ops->add_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_add_key()
89 rdev_get_key(struct cfg80211_registered_device *rdev, struct net_device *netdev, in rdev_get_key() argument
94 trace_rdev_get_key(&rdev->wiphy, netdev, key_index, pairwise, mac_addr); in rdev_get_key()
95 ret = rdev->ops->get_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_get_key()
102 struct net_device *netdev, u8 key_index, in rdev_del_key() argument
106 trace_rdev_del_key(&rdev->wiphy, netdev, key_index, pairwise, mac_addr); in rdev_del_key()
107 ret = rdev->ops->del_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_del_key()
115 struct net_device *netdev, u8 key_index, bool unicast, in rdev_set_default_key() argument
[all …]
Dsme.c138 dev_hold(wdev->netdev); in cfg80211_conn_scan()
171 return cfg80211_mlme_auth(rdev, wdev->netdev, in cfg80211_conn_do_work()
197 err = cfg80211_mlme_assoc(rdev, wdev->netdev, params->channel, in cfg80211_conn_do_work()
201 cfg80211_mlme_deauth(rdev, wdev->netdev, params->bssid, in cfg80211_conn_do_work()
210 cfg80211_mlme_deauth(rdev, wdev->netdev, params->bssid, in cfg80211_conn_do_work()
215 cfg80211_mlme_deauth(rdev, wdev->netdev, params->bssid, in cfg80211_conn_do_work()
239 if (!wdev->netdev) in cfg80211_conn_work()
243 if (!netif_running(wdev->netdev)) { in cfg80211_conn_work()
264 __cfg80211_connect_result(wdev->netdev, &cr, false); in cfg80211_conn_work()
379 __cfg80211_connect_result(wdev->netdev, &cr, false); in cfg80211_sme_rx_auth()
[all …]
Dcore.c165 if (!wdev->netdev) in cfg80211_switch_netns()
167 wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns()
168 err = dev_change_net_namespace(wdev->netdev, net, "wlan%d"); in cfg80211_switch_netns()
171 wdev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns()
181 if (!wdev->netdev) in cfg80211_switch_netns()
183 wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns()
184 err = dev_change_net_namespace(wdev->netdev, net, in cfg80211_switch_netns()
187 wdev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns()
194 if (!wdev->netdev) in cfg80211_switch_netns()
207 if (!wdev->netdev) in cfg80211_switch_netns()
[all …]
Dmlme.c70 nl80211_send_rx_auth(rdev, wdev->netdev, buf, len, GFP_KERNEL); in cfg80211_process_auth()
81 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_deauth()
83 nl80211_send_deauth(rdev, wdev->netdev, buf, len, GFP_KERNEL); in cfg80211_process_deauth()
89 __cfg80211_disconnected(wdev->netdev, NULL, 0, reason_code, from_ap); in cfg80211_process_deauth()
100 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_disassoc()
102 nl80211_send_disassoc(rdev, wdev->netdev, buf, len, GFP_KERNEL); in cfg80211_process_disassoc()
108 __cfg80211_disconnected(wdev->netdev, NULL, 0, reason_code, from_ap); in cfg80211_process_disassoc()
868 void cfg80211_cac_event(struct net_device *netdev, in cfg80211_cac_event() argument
872 struct wireless_dev *wdev = netdev->ieee80211_ptr; in cfg80211_cac_event()
877 trace_cfg80211_cac_event(netdev, event); in cfg80211_cac_event()
[all …]
Dnl80211.c98 if (have_ifidx && wdev->netdev && in __cfg80211_wdev_from_attrs()
99 wdev->netdev->ifindex == ifidx) { in __cfg80211_wdev_from_attrs()
122 struct net_device *netdev; in __cfg80211_rdev_from_attrs() local
162 netdev = __dev_get_by_index(netns, ifindex); in __cfg80211_rdev_from_attrs()
163 if (netdev) { in __cfg80211_rdev_from_attrs()
164 if (netdev->ieee80211_ptr) in __cfg80211_rdev_from_attrs()
166 netdev->ieee80211_ptr->wiphy); in __cfg80211_rdev_from_attrs()
2616 struct net_device *netdev; in nl80211_dump_wiphy_parse() local
2620 netdev = __dev_get_by_index(sock_net(skb->sk), ifidx); in nl80211_dump_wiphy_parse()
2621 if (!netdev) { in nl80211_dump_wiphy_parse()
[all …]
Dmesh.c237 if (!netif_running(wdev->netdev)) in cfg80211_set_mesh_channel()
240 err = rdev_libertas_set_mesh_channel(rdev, wdev->netdev, in cfg80211_set_mesh_channel()
/net/tls/
Dtls_device.c78 struct net_device *netdev = ctx->netdev; in tls_device_gc_task() local
80 if (netdev && ctx->tx_conf == TLS_HW) { in tls_device_gc_task()
81 netdev->tlsdev_ops->tls_dev_del(netdev, ctx, in tls_device_gc_task()
83 dev_put(netdev); in tls_device_gc_task()
84 ctx->netdev = NULL; in tls_device_gc_task()
114 struct net_device *netdev = NULL; in get_netdev_for_sock() local
117 netdev = dst->dev; in get_netdev_for_sock()
118 dev_hold(netdev); in get_netdev_for_sock()
123 return netdev; in get_netdev_for_sock()
210 struct net_device *netdev; in tls_device_resync_tx() local
[all …]
/net/core/
Dnet-sysfs.c80 struct net_device *netdev = to_net_dev(dev); in netdev_store() local
81 struct net *net = dev_net(netdev); in netdev_store()
95 if (dev_isalive(netdev)) { in netdev_store()
96 ret = (*set)(netdev, new); in netdev_store()
177 struct net_device *netdev = to_net_dev(dev); in carrier_store() local
182 if (!netdev->netdev_ops->ndo_change_carrier) in carrier_store()
191 struct net_device *netdev = to_net_dev(dev); in carrier_show() local
193 if (netif_running(netdev)) in carrier_show()
194 return sprintf(buf, fmt_dec, !!netif_carrier_ok(netdev)); in carrier_show()
203 struct net_device *netdev = to_net_dev(dev); in speed_show() local
[all …]
/net/atm/
Dbr2684.c631 static void br2684_setup(struct net_device *netdev) in br2684_setup() argument
633 struct br2684_dev *brdev = BRPRIV(netdev); in br2684_setup()
635 ether_setup(netdev); in br2684_setup()
636 netdev->hard_header_len += sizeof(llc_oui_pid_pad); /* worst case */ in br2684_setup()
637 brdev->net_dev = netdev; in br2684_setup()
639 netdev->netdev_ops = &br2684_netdev_ops; in br2684_setup()
644 static void br2684_setup_routed(struct net_device *netdev) in br2684_setup_routed() argument
646 struct br2684_dev *brdev = BRPRIV(netdev); in br2684_setup_routed()
648 brdev->net_dev = netdev; in br2684_setup_routed()
649 netdev->hard_header_len = sizeof(llc_oui_ipv4); /* worst case */ in br2684_setup_routed()
[all …]
/net/caif/
Dchnl_net.c48 struct net_device *netdev; member
76 skb->dev = priv->netdev; in chnl_recv_cb()
94 priv->netdev->stats.rx_errors++; in chnl_recv_cb()
110 priv->netdev->stats.rx_packets++; in chnl_recv_cb()
111 priv->netdev->stats.rx_bytes += pktlen; in chnl_recv_cb()
119 if (dev->netdev) in delete_device()
120 unregister_netdevice(dev->netdev); in delete_device()
134 dev_close(dev->netdev); in close_work()
143 dev_hold(priv->netdev); in chnl_hold()
149 dev_put(priv->netdev); in chnl_put()
[all …]
Dcaif_dev.c36 struct net_device *netdev; member
104 caifd->netdev = dev; in caif_device_alloc()
116 if (caifd->netdev == dev) in caif_get()
177 skb->dev = caifd->netdev; in transmit()
182 if (likely(caifd->netdev->priv_flags & IFF_NO_QUEUE)) in transmit()
188 if (likely(!netif_queue_stopped(caifd->netdev))) { in transmit()
200 high = (caifd->netdev->tx_queue_len * q_high) / 100; in transmit()
220 netif_queue_stopped(caifd->netdev), in transmit()
258 !netif_oper_up(caifd->netdev)) { in receive()
490 dev_put(caifd->netdev); in caif_device_notify()
[all …]
/net/mac802154/
Dcfg.c192 ret = mac802154_wpan_update_llsec(wpan_dev->netdev); in ieee802154_set_pan_id()
269 struct net_device *dev = wpan_dev->netdev; in ieee802154_get_llsec_table()
279 struct net_device *dev = wpan_dev->netdev; in ieee802154_lock_llsec_table()
289 struct net_device *dev = wpan_dev->netdev; in ieee802154_unlock_llsec_table()
301 struct net_device *dev = wpan_dev->netdev; in ieee802154_set_llsec_params()
317 struct net_device *dev = wpan_dev->netdev; in ieee802154_get_llsec_params()
333 struct net_device *dev = wpan_dev->netdev; in ieee802154_add_llsec_key()
348 struct net_device *dev = wpan_dev->netdev; in ieee802154_del_llsec_key()
363 struct net_device *dev = wpan_dev->netdev; in ieee802154_add_seclevel()
378 struct net_device *dev = wpan_dev->netdev; in ieee802154_del_seclevel()
[all …]
/net/dsa/
Dtag_sja1105.c87 struct net_device *netdev) in sja1105_xmit() argument
89 struct dsa_port *dp = dsa_slave_to_port(netdev); in sja1105_xmit()
93 u8 pcp = netdev_txq_to_tc(netdev, queue_mapping); in sja1105_xmit()
100 return dsa_defer_xmit(skb, netdev); in sja1105_xmit()
110 return dsa_8021q_xmit(skb, netdev, ETH_P_SJA1105, in sja1105_xmit()
236 struct net_device *netdev, in sja1105_rcv() argument
285 skb->dev = dsa_master_find_slave(netdev, switch_id, source_port); in sja1105_rcv()
287 netdev_warn(netdev, "Couldn't decode source port\n"); in sja1105_rcv()
/net/ieee802154/
Dcore.c205 if (!wpan_dev->netdev) in cfg802154_switch_netns()
207 wpan_dev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
208 err = dev_change_net_namespace(wpan_dev->netdev, net, "wpan%d"); in cfg802154_switch_netns()
211 wpan_dev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
221 if (!wpan_dev->netdev) in cfg802154_switch_netns()
223 wpan_dev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
224 err = dev_change_net_namespace(wpan_dev->netdev, net, in cfg802154_switch_netns()
227 wpan_dev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
277 wpan_dev->netdev = dev; in cfg802154_netdev_notifier_call()
Dnl802154.c69 if (have_ifidx && wpan_dev->netdev && in __cfg802154_wpan_dev_from_attrs()
70 wpan_dev->netdev->ifindex == ifidx) { in __cfg802154_wpan_dev_from_attrs()
95 struct net_device *netdev; in __cfg802154_rdev_from_attrs() local
135 netdev = __dev_get_by_index(netns, ifindex); in __cfg802154_rdev_from_attrs()
136 if (netdev) { in __cfg802154_rdev_from_attrs()
137 if (netdev->ieee802154_ptr) in __cfg802154_rdev_from_attrs()
139 netdev->ieee802154_ptr->wpan_phy); in __cfg802154_rdev_from_attrs()
577 struct net_device *netdev; in nl802154_dump_wpan_phy_parse() local
581 netdev = __dev_get_by_index(&init_net, ifidx); in nl802154_dump_wpan_phy_parse()
582 if (!netdev) in nl802154_dump_wpan_phy_parse()
[all …]
/net/batman-adv/
Dhard-interface.c91 static struct net *batadv_getlink_net(const struct net_device *netdev, in batadv_getlink_net() argument
94 if (!netdev->rtnl_link_ops) in batadv_getlink_net()
97 if (!netdev->rtnl_link_ops->get_link_net) in batadv_getlink_net()
100 return netdev->rtnl_link_ops->get_link_net(netdev); in batadv_getlink_net()
216 static struct net_device *batadv_get_real_netdevice(struct net_device *netdev) in batadv_get_real_netdevice() argument
226 if (!netdev) in batadv_get_real_netdevice()
229 iflink = dev_get_iflink(netdev); in batadv_get_real_netdevice()
231 dev_hold(netdev); in batadv_get_real_netdevice()
232 return netdev; in batadv_get_real_netdevice()
235 hard_iface = batadv_hardif_get_by_netdev(netdev); in batadv_get_real_netdevice()
[all …]
/net/phonet/
Dpn_dev.c56 pnd->netdev = dev; in __phonet_device_alloc()
71 if (pnd->netdev == dev) in __phonet_get()
83 if (pnd->netdev == dev) in __phonet_get_rcu()
119 dev = pnd->netdev; in phonet_device_get()
123 ((pnd->netdev->flags & IFF_UP)) == IFF_UP) in phonet_device_get()
218 if ((pnd->netdev->reg_state != NETREG_REGISTERED) || in phonet_address_lookup()
219 ((pnd->netdev->flags & IFF_UP)) != IFF_UP) in phonet_address_lookup()
/net/ethernet/
Deth.c428 struct net_device *netdev; in devm_alloc_etherdev_mqs() local
434 netdev = alloc_etherdev_mqs(sizeof_priv, txqs, rxqs); in devm_alloc_etherdev_mqs()
435 if (!netdev) { in devm_alloc_etherdev_mqs()
440 *dr = netdev; in devm_alloc_etherdev_mqs()
443 return netdev; in devm_alloc_etherdev_mqs()
/net/bluetooth/bnep/
DMakefile8 bnep-objs := core.o sock.o netdev.o

12