#include <linux/if.h>#include <linux/if_ether.h>#include <linux/if_packet.h>#include <asm/atomic.h>#include <asm/cache.h>#include <asm/byteorder.h>#include <linux/config.h>#include <linux/cache.h>#include <linux/skbuff.h>#include <linux/interrupt.h>#include <linux/notifier.h>Go to the source code of this file.
Classes | |
| struct | net_device_stats |
| struct | netif_rx_stats |
| struct | dev_mc_list |
| struct | hh_cache |
| struct | netdev_boot_setup |
| struct | net_device |
| struct | packet_type |
| struct | softnet_data |
Defines | |
| #define | SET_ETHTOOL_OPS(netdev, ops) ( (netdev)->ethtool_ops = (ops) ) |
| #define | HAVE_ALLOC_NETDEV |
| #define | HAVE_FREE_NETDEV |
| #define | NET_XMIT_SUCCESS 0 |
| #define | NET_XMIT_DROP 1 |
| #define | NET_XMIT_CN 2 |
| #define | NET_XMIT_POLICED 3 |
| #define | NET_XMIT_BYPASS 4 |
| #define | NET_RX_SUCCESS 0 |
| #define | NET_RX_DROP 1 |
| #define | NET_RX_CN_LOW 2 |
| #define | NET_RX_CN_MOD 3 |
| #define | NET_RX_CN_HIGH 4 |
| #define | NET_RX_BAD 5 |
| #define | net_xmit_errno(e) ((e) != NET_XMIT_CN ? -ENOBUFS : 0) |
| #define | MAX_ADDR_LEN 8 |
| #define | LL_MAX_HEADER 32 |
| #define | MAX_HEADER LL_MAX_HEADER |
| #define | HH_DATA_MOD 16 |
| #define | HH_DATA_OFF(__len) (HH_DATA_MOD - ((__len) & (HH_DATA_MOD - 1))) |
| #define | HH_DATA_ALIGN(__len) (((__len)+(HH_DATA_MOD-1))&~(HH_DATA_MOD - 1)) |
| #define | NETDEV_BOOT_SETUP_MAX 8 |
| #define | NETIF_F_SG 1 |
| #define | NETIF_F_IP_CSUM 2 |
| #define | NETIF_F_NO_CSUM 4 |
| #define | NETIF_F_HW_CSUM 8 |
| #define | NETIF_F_DYNALLOC 16 |
| #define | NETIF_F_HIGHDMA 32 |
| #define | NETIF_F_FRAGLIST 64 |
| #define | NETIF_F_HW_VLAN_TX 128 |
| #define | NETIF_F_HW_VLAN_RX 256 |
| #define | NETIF_F_HW_VLAN_FILTER 512 |
| #define | NETIF_F_VLAN_CHALLENGED 1024 |
| #define | HAVE_NETDEV_POLL |
| #define | HAVE_MULTICAST |
| #define | HAVE_SET_MAC_ADDR |
| #define | HAVE_PRIVATE_IOCTL |
| #define | HAVE_SET_CONFIG |
| #define | HAVE_HEADER_CACHE |
| #define | HAVE_CHANGE_MTU |
| #define | HAVE_TX_TIMEOUT |
| #define | HAVE_NETIF_QUEUE |
| #define | HAVE_NETIF_RX 1 |
| #define | HAVE_NETIF_RECEIVE_SKB 1 |
| #define | __dev_put(dev) atomic_dec(&(dev)->refcnt) |
| #define | dev_hold(dev) atomic_inc(&(dev)->refcnt) |
| #define | HAVE_NETIF_MSG 1 |
| #define | netif_msg_drv(p) ((p)->msg_enable & NETIF_MSG_DRV) |
| #define | netif_msg_probe(p) ((p)->msg_enable & NETIF_MSG_PROBE) |
| #define | netif_msg_link(p) ((p)->msg_enable & NETIF_MSG_LINK) |
| #define | netif_msg_timer(p) ((p)->msg_enable & NETIF_MSG_TIMER) |
| #define | netif_msg_ifdown(p) ((p)->msg_enable & NETIF_MSG_IFDOWN) |
| #define | netif_msg_ifup(p) ((p)->msg_enable & NETIF_MSG_IFUP) |
| #define | netif_msg_rx_err(p) ((p)->msg_enable & NETIF_MSG_RX_ERR) |
| #define | netif_msg_tx_err(p) ((p)->msg_enable & NETIF_MSG_TX_ERR) |
| #define | netif_msg_tx_queued(p) ((p)->msg_enable & NETIF_MSG_TX_QUEUED) |
| #define | netif_msg_intr(p) ((p)->msg_enable & NETIF_MSG_INTR) |
| #define | netif_msg_tx_done(p) ((p)->msg_enable & NETIF_MSG_TX_DONE) |
| #define | netif_msg_rx_status(p) ((p)->msg_enable & NETIF_MSG_RX_STATUS) |
| #define | netif_msg_pktdata(p) ((p)->msg_enable & NETIF_MSG_PKTDATA) |
| #define | netif_msg_hw(p) ((p)->msg_enable & NETIF_MSG_HW) |
| #define | netif_msg_wol(p) ((p)->msg_enable & NETIF_MSG_WOL) |
Typedefs | |
| typedef int | gifconf_func_t (struct net_device *dev, char *bufptr, int len) |
Enumerations | |
| enum | { IF_PORT_UNKNOWN = 0, IF_PORT_10BASE2, IF_PORT_10BASET, IF_PORT_AUI, IF_PORT_100BASET, IF_PORT_100BASETX, IF_PORT_100BASEFX } |
| enum | netdev_state_t { __LINK_STATE_XOFF = 0, __LINK_STATE_START, __LINK_STATE_PRESENT, __LINK_STATE_SCHED, __LINK_STATE_NOCARRIER, __LINK_STATE_RX_SCHED } |
| enum | { NETIF_MSG_DRV = 0x0001, NETIF_MSG_PROBE = 0x0002, NETIF_MSG_LINK = 0x0004, NETIF_MSG_TIMER = 0x0008, NETIF_MSG_IFDOWN = 0x0010, NETIF_MSG_IFUP = 0x0020, NETIF_MSG_RX_ERR = 0x0040, NETIF_MSG_TX_ERR = 0x0080, NETIF_MSG_TX_QUEUED = 0x0100, NETIF_MSG_INTR = 0x0200, NETIF_MSG_TX_DONE = 0x0400, NETIF_MSG_RX_STATUS = 0x0800, NETIF_MSG_PKTDATA = 0x1000, NETIF_MSG_HW = 0x2000, NETIF_MSG_WOL = 0x4000 } |
Functions | |
| int | netdev_boot_setup_add (char *name, struct ifmap *map) |
| int | netdev_boot_setup_check (struct net_device *dev) |
| net_device * | dev_getbyhwaddr (unsigned short type, char *hwaddr) |
| void | dev_add_pack (struct packet_type *pt) |
| void | dev_remove_pack (struct packet_type *pt) |
| int | dev_get (const char *name) |
| net_device * | dev_get_by_flags (unsigned short flags, unsigned short mask) |
| net_device * | __dev_get_by_flags (unsigned short flags, unsigned short mask) |
| net_device * | dev_get_by_name (const char *name) |
| net_device * | __dev_get_by_name (const char *name) |
| net_device * | dev_alloc (const char *name, int *err) |
| int | dev_alloc_name (struct net_device *dev, const char *name) |
| int | dev_open (struct net_device *dev) |
| int | dev_close (struct net_device *dev) |
| int | dev_queue_xmit (struct sk_buff *skb) |
| int | register_netdevice (struct net_device *dev) |
| int | unregister_netdevice (struct net_device *dev) |
| int | register_netdevice_notifier (struct notifier_block *nb) |
| int | unregister_netdevice_notifier (struct notifier_block *nb) |
| int | dev_new_index (void) |
| net_device * | dev_get_by_index (int ifindex) |
| net_device * | __dev_get_by_index (int ifindex) |
| int | dev_restart (struct net_device *dev) |
| int | register_gifconf (unsigned int family, gifconf_func_t *gifconf) |
| int | unregister_gifconf (unsigned int family) |
| void | __netif_schedule (struct net_device *dev) |
| void | netif_schedule (struct net_device *dev) |
| void | netif_start_queue (struct net_device *dev) |
| void | netif_wake_queue (struct net_device *dev) |
| void | netif_stop_queue (struct net_device *dev) |
| int | netif_queue_stopped (struct net_device *dev) |
| int | netif_running (struct net_device *dev) |
| void | dev_kfree_skb_irq (struct sk_buff *skb) |
| void | dev_kfree_skb_any (struct sk_buff *skb) |
| int | netif_rx (struct sk_buff *skb) |
| int | netif_receive_skb (struct sk_buff *skb) |
| int | dev_ioctl (unsigned int cmd, void *) |
| int | dev_ethtool (struct ifreq *) |
| int | dev_change_flags (struct net_device *, unsigned) |
| void | dev_queue_xmit_nit (struct sk_buff *skb, struct net_device *dev) |
| void | dev_init (void) |
| int | netif_rx_ni (struct sk_buff *skb) |
| void | dev_init_buffers (struct net_device *dev) |
| int | netdev_finish_unregister (struct net_device *dev) |
| void | dev_put (struct net_device *dev) |
| int | netif_carrier_ok (struct net_device *dev) |
| void | __netdev_watchdog_up (struct net_device *dev) |
| void | netif_carrier_on (struct net_device *dev) |
| void | netif_carrier_off (struct net_device *dev) |
| int | netif_device_present (struct net_device *dev) |
| void | netif_device_detach (struct net_device *dev) |
| void | netif_device_attach (struct net_device *dev) |
| int | netif_rx_schedule_prep (struct net_device *dev) |
| void | __netif_rx_schedule (struct net_device *dev) |
| void | netif_rx_schedule (struct net_device *dev) |
| int | netif_rx_reschedule (struct net_device *dev, int undo) |
| void | netif_rx_complete (struct net_device *dev) |
| void | netif_poll_disable (struct net_device *dev) |
| void | netif_poll_enable (struct net_device *dev) |
| void | __netif_rx_complete (struct net_device *dev) |
| void | netif_tx_disable (struct net_device *dev) |
| void | ether_setup (struct net_device *dev) |
| void | fddi_setup (struct net_device *dev) |
| void | tr_setup (struct net_device *dev) |
| void | fc_setup (struct net_device *dev) |
| void | fc_freedev (struct net_device *dev) |
| net_device * | alloc_netdev (int sizeof_priv, const char *name, void(*setup)(struct net_device *)) |
| int | register_netdev (struct net_device *dev) |
| void | unregister_netdev (struct net_device *dev) |
| void | dev_mc_upload (struct net_device *dev) |
| int | dev_mc_delete (struct net_device *dev, void *addr, int alen, int all) |
| int | dev_mc_add (struct net_device *dev, void *addr, int alen, int newonly) |
| void | dev_mc_discard (struct net_device *dev) |
| void | dev_set_promiscuity (struct net_device *dev, int inc) |
| void | dev_set_allmulti (struct net_device *dev, int inc) |
| void | netdev_state_change (struct net_device *dev) |
| void | dev_load (const char *name) |
| void | dev_mcast_init (void) |
| int | netdev_register_fc (struct net_device *dev, void(*stimul)(struct net_device *dev)) |
| void | netdev_unregister_fc (int bit) |
| int | netdev_set_master (struct net_device *dev, struct net_device *master) |
| sk_buff * | skb_checksum_help (struct sk_buff *skb) |
| void | free_netdev (struct net_device *dev) |
Variables | |
| const char * | if_port_text [] |
| netif_rx_stats | ____cacheline_aligned |
| netif_rx_stats | netdev_rx_stat [] |
| net_device | loopback_dev |
| net_device * | dev_base |
| rwlock_t | dev_base_lock |
| softnet_data | softnet_data [NR_CPUS] |
| int | netdev_nit |
| int | netdev_max_backlog |
| int | weight_p |
| unsigned long | netdev_fc_xoff |
| atomic_t | netdev_dropping |
|
|
Definition at line 644 of file netdevice.h. Referenced by ip_mc_find_dev(), and vif_add(). |
|
|
|
Definition at line 50 of file netdevice.h. |
|
|
Definition at line 421 of file netdevice.h. |
|
|
Definition at line 52 of file netdevice.h. |
|
|
Definition at line 415 of file netdevice.h. |
|
|
Definition at line 404 of file netdevice.h. |
|
|
Definition at line 395 of file netdevice.h. |
|
|
Definition at line 697 of file netdevice.h. |
|
|
Definition at line 530 of file netdevice.h. |
|
|
Definition at line 609 of file netdevice.h. |
|
|
Definition at line 607 of file netdevice.h. |
|
|
Definition at line 409 of file netdevice.h. |
|
|
Definition at line 412 of file netdevice.h. |
|
|
Definition at line 406 of file netdevice.h. |
|
|
Definition at line 424 of file netdevice.h. |
|
|
Definition at line 205 of file netdevice.h. Referenced by ip_direct_send(), and ip_finish_output2(). |
|
|
Definition at line 202 of file netdevice.h. |
|
|
Definition at line 203 of file netdevice.h. |
|
|
Definition at line 82 of file netdevice.h. Referenced by ipgre_tunnel_init(), ipgre_tunnel_init_gen(), and ipip_tunnel_init_gen(). |
|
|
Definition at line 74 of file netdevice.h. Referenced by dev_ifsioc(), ip_mc_filter_add(), and ip_mc_filter_del(). |
|
|
Definition at line 93 of file netdevice.h. Referenced by inet_rtm_getroute(). |
|
|
Definition at line 68 of file netdevice.h. Referenced by ip_forward(). |
|
|
Definition at line 67 of file netdevice.h. Referenced by get_sample_stats(). |
|
|
Definition at line 65 of file netdevice.h. Referenced by get_sample_stats(). |
|
|
Definition at line 66 of file netdevice.h. Referenced by get_sample_stats(). |
|
|
Definition at line 64 of file netdevice.h. Referenced by deliver_to_old_ones(), get_sample_stats(), handle_bridge(), ip_forward(), ip_rcv(), ip_rcv_finish(), netif_receive_skb(), netif_rx(), and raw_rcv_skb(). |
|
|
Definition at line 63 of file netdevice.h. Referenced by get_sample_stats(), ip_do_nat(), ip_forward(), and raw_rcv_skb(). |
|
|
Definition at line 58 of file netdevice.h. Referenced by dev_queue_xmit(). |
|
|
Definition at line 56 of file netdevice.h. Referenced by tcp_transmit_skb(), and tcp_v4_send_synack(). |
|
|
Definition at line 55 of file netdevice.h. |
|
|
Definition at line 70 of file netdevice.h. Referenced by ip_build_xmit(), and ip_build_xmit_slow(). |
|
|
Definition at line 57 of file netdevice.h. |
|
|
Definition at line 54 of file netdevice.h. Referenced by dev_queue_xmit(). |
|
|
Definition at line 234 of file netdevice.h. Referenced by netdev_boot_setup_add(), and netdev_boot_setup_check(). |
|
|
Definition at line 377 of file netdevice.h. Referenced by dst_dev_event(), ipgre_tunnel_locate(), ipip_tunnel_locate(), netdev_finish_unregister(), and unregister_netdevice(). |
|
|
Definition at line 379 of file netdevice.h. Referenced by dev_queue_xmit(). |
|
|
Definition at line 378 of file netdevice.h. |
|
|
Definition at line 376 of file netdevice.h. Referenced by dev_queue_xmit(), and register_netdevice(). |
|
|
Definition at line 382 of file netdevice.h. |
|
|
Definition at line 381 of file netdevice.h. |
|
|
Definition at line 380 of file netdevice.h. |
|
|
Definition at line 374 of file netdevice.h. Referenced by dev_queue_xmit(), ethtool_op_get_tx_csum(), ethtool_op_set_tx_csum(), and register_netdevice(). |
|
|
Definition at line 375 of file netdevice.h. Referenced by dev_queue_xmit(), and register_netdevice(). |
|
|
Definition at line 373 of file netdevice.h. Referenced by dev_queue_xmit(), ethtool_op_get_sg(), ethtool_op_set_sg(), register_netdevice(), select_size(), tcp_sendmsg(), and tcp_sendpage(). |
|
|
Definition at line 383 of file netdevice.h. |
|
|
Definition at line 717 of file netdevice.h. |
|
|
Definition at line 730 of file netdevice.h. |
|
|
Definition at line 721 of file netdevice.h. |
|
|
Definition at line 722 of file netdevice.h. |
|
|
Definition at line 726 of file netdevice.h. |
|
|
Definition at line 719 of file netdevice.h. |
|
|
Definition at line 729 of file netdevice.h. |
|
|
Definition at line 718 of file netdevice.h. |
|
|
Definition at line 723 of file netdevice.h. |
|
|
Definition at line 728 of file netdevice.h. |
|
|
Definition at line 720 of file netdevice.h. |
|
|
Definition at line 727 of file netdevice.h. |
|
|
Definition at line 724 of file netdevice.h. |
|
|
Definition at line 725 of file netdevice.h. |
|
|
Definition at line 731 of file netdevice.h. |
|
|
Definition at line 47 of file netdevice.h. |
|
|
Definition at line 502 of file netdevice.h. Referenced by register_gifconf(). |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Definition at line 582 of file dev.c. References dev_base, and net_device::next. Referenced by dev_get_by_flags().
|
|
|
Definition at line 487 of file dev.c. References dev_base, and net_device::next. Referenced by dev_get_by_index(), dev_ifname(), dev_new_index(), fib_check_nh(), inet_rtm_getroute(), inet_rtm_newaddr(), inetdev_by_index(), ip_setsockopt(), ipgre_tunnel_init(), and ipip_tunnel_init().
|
|
|
Definition at line 412 of file dev.c. References dev_base, and net_device::next. Referenced by arp_ioctl(), bind_mcastif_addr(), dev_alloc_name(), dev_ethtool(), dev_get(), dev_get_by_name(), dev_ifsioc(), devinet_ioctl(), fib_convert_rtentry(), inet_rtm_newrule(), ipgre_tunnel_locate(), ipip_tunnel_locate(), ipmr_new_tunnel(), join_mcast_group(), set_mcast_if(), setup_inject(), and wireless_process_ioctl().
|
|
|
Referenced by netif_carrier_on(), and netif_device_attach(). |
|
|
Definition at line 823 of file netdevice.h. References __LINK_STATE_RX_SCHED, net_device::poll_list, and net_device::state.
|
|
|
Definition at line 745 of file netdevice.h. References dev_hold, softnet_data::poll_list, net_device::poll_list, net_device::quota, softnet_data, and net_device::weight. Referenced by netif_rx_schedule().
|
|
|
Definition at line 532 of file netdevice.h. References __LINK_STATE_SCHED, net_device::next_sched, softnet_data::output_queue, softnet_data, and net_device::state. Referenced by netif_schedule(), and netif_wake_queue().
|
|
||||||||||||||||
|
|
|
|
Definition at line 234 of file dev.c. References packet_type::data, packet_type::dev, netdev_nit, packet_type::next, ptype_all, ptype_base, and packet_type::type. Referenced by arp_init(), and ip_init().
|
|
||||||||||||
|
Definition at line 649 of file dev.c. References dev_alloc_name().
|
|
||||||||||||
|
Definition at line 605 of file dev.c. References __dev_get_by_name(), and net_device::name. Referenced by dev_alloc(), and net_dev_init().
|
|
||||||||||||
|
Definition at line 1987 of file dev.c. References dev_close(), dev_mc_upload(), dev_open(), dev_set_allmulti(), dev_set_promiscuity(), net_device::flags, net_device::gflags, netdev_chain, and rtmsg_ifinfo(). Referenced by dev_ifsioc(), devinet_ioctl(), ic_close_devs(), and ic_open_devs().
|
|
|
Definition at line 832 of file dev.c. References __LINK_STATE_RX_SCHED, __LINK_STATE_START, dev_deactivate(), net_device::flags, netdev_chain, net_device::owner, net_device::state, and net_device::stop. Referenced by dev_change_flags(), and unregister_netdevice().
|
|
|
Definition at line 607 of file ethtool.c. References __dev_get_by_name(), ethtool_get_coalesce(), ethtool_get_drvinfo(), ethtool_get_eeprom(), ethtool_get_link(), ethtool_get_msglevel(), ethtool_get_pauseparam(), ethtool_get_regs(), ethtool_get_ringparam(), ethtool_get_rx_csum(), ethtool_get_settings(), ethtool_get_sg(), ethtool_get_stats(), ethtool_get_strings(), ethtool_get_tx_csum(), ethtool_get_wol(), ethtool_nway_reset(), ethtool_phys_id(), ethtool_self_test(), ethtool_set_coalesce(), ethtool_set_eeprom(), ethtool_set_msglevel(), ethtool_set_pauseparam(), ethtool_set_ringparam(), ethtool_set_rx_csum(), ethtool_set_settings(), ethtool_set_sg(), ethtool_set_tx_csum(), ethtool_set_wol(), and netif_device_present(). Referenced by dev_ioctl().
|
|
|
Definition at line 466 of file dev.c. References __dev_get_by_name(), and dev_base_lock.
|
|
||||||||||||
|
Definition at line 560 of file dev.c. References __dev_get_by_flags(), dev_base_lock, and dev_hold.
|
|
|
Definition at line 509 of file dev.c. References __dev_get_by_index(), dev_base_lock, and dev_hold. Referenced by fib_create_info(), ip_expire(), ip_route_output_slow(), neigh_add(), and neigh_delete().
|
|
|
Definition at line 434 of file dev.c. References __dev_get_by_name(), dev_base_lock, and dev_hold. Referenced by append_to_chain(), check_args(), insert_in_chain(), ip_fw_ctl(), and sock_setsockopt().
|
|
||||||||||||
|
Definition at line 535 of file dev.c. References dev_base, and net_device::next. Referenced by arp_req_set().
|
|
|
|
|
|
Definition at line 631 of file netdevice.h.
|
|
||||||||||||
|
Definition at line 2234 of file dev.c. References dev_base_lock, dev_ethtool(), dev_ifconf(), dev_ifname(), dev_ifsioc(), dev_load(), rtnl_lock(), rtnl_unlock(), and wireless_process_ioctl(). Referenced by inet_ioctl().
|
|
|
Definition at line 599 of file netdevice.h. References dev_kfree_skb, and dev_kfree_skb_irq().
|
|
|
Definition at line 582 of file netdevice.h. References softnet_data::completion_queue, sk_buff::next, softnet_data, and sk_buff::users. Referenced by dev_kfree_skb_any().
|
|
|
Definition at line 702 of file dev.c. Referenced by dev_ioctl(), and devinet_ioctl().
|
|
||||||||||||||||||||
|
Definition at line 154 of file dev_mcast.c. References __dev_mc_upload(), dev_mc_list::dmi_users, net_device::mc_count, net_device::mc_list, dev_mc_list::next, and net_device::xmit_lock. Referenced by dev_ifsioc(), and ip_mc_filter_add().
|
|
||||||||||||||||||||
|
Definition at line 103 of file dev_mcast.c. References __dev_mc_upload(), net_device::mc_count, net_device::mc_list, dev_mc_list::next, and net_device::xmit_lock. Referenced by dev_ifsioc(), and ip_mc_filter_del().
|
|
|
Definition at line 204 of file dev_mcast.c. References net_device::mc_count, net_device::mc_list, dev_mc_list::next, and net_device::xmit_lock. Referenced by unregister_netdevice().
|
|
|
Definition at line 92 of file dev_mcast.c. References __dev_mc_upload(), and net_device::xmit_lock. Referenced by dev_change_flags(), dev_open(), dev_set_allmulti(), and dev_set_promiscuity().
|
|
|
Definition at line 269 of file dev_mcast.c. Referenced by net_dev_init().
|
|
|
Definition at line 2431 of file dev.c. References __dev_get_by_index(). Referenced by net_dev_init(), and register_netdevice().
|
|
|
Definition at line 726 of file dev.c. References __LINK_STATE_START, dev_activate(), dev_mc_upload(), net_device::flags, netdev_chain, netif_device_present(), net_device::open, net_device::owner, and net_device::state. Referenced by dev_change_flags(), and ipmr_new_tunnel().
|
|
|
Definition at line 638 of file netdevice.h. References netdev_finish_unregister(), and net_device::refcnt. Referenced by check_args(), dst_destroy(), dst_dev_event(), free_divert_blk(), free_fib_info(), in_dev_finish_destroy(), inject(), ip_expire(), ip_route_output_slow(), ip_setsockopt(), ipgre_tunnel_uninit(), ipip_tunnel_uninit(), neigh_add(), neigh_delete(), neigh_destroy(), neigh_proxy_process(), net_dev_init(), net_rx_action(), netdev_set_master(), nf_queue(), nf_reinject(), pneigh_queue_purge(), process_backlog(), sock_setsockopt(), unregister_netdevice(), and vif_delete().
|
|
|
Definition at line 1035 of file dev.c. References CHECKSUM_HW, sk_buff::dev, dev_queue_xmit_nit(), illegal_highdma, sk_buff::ip_summed, kfree_skb(), net_ratelimit(), NET_XMIT_BYPASS, NET_XMIT_SUCCESS, netdev_nit, NETIF_F_FRAGLIST, NETIF_F_HW_CSUM, NETIF_F_IP_CSUM, NETIF_F_NO_CSUM, NETIF_F_SG, netif_queue_stopped(), sk_buff::protocol, qdisc_run(), skb_checksum_help(), skb_linearize(), and skb_shinfo. Referenced by arp_send(), dn_rt_send(), neigh_compat_output(), net_dev_init(), netif_receive_skb(), and rt_cache_get_info().
|
|
||||||||||||
|
Definition at line 935 of file dev.c. References sk_buff::dev, net_device::name, net_ratelimit(), packet_type::next, ptype_all, sk_buff::sk, skb_clone(), and sk_buff::stamp. Referenced by dev_queue_xmit().
|
|
|
Definition at line 270 of file dev.c. References packet_type::data, netdev_nit, packet_type::next, ptype_all, ptype_base, and packet_type::type.
|
|
|
|
|
||||||||||||
|
Definition at line 1976 of file dev.c. References net_device::allmulti, dev_mc_upload(), and net_device::flags. Referenced by dev_change_flags(), vif_add(), and vif_delete().
|
|
||||||||||||
|
Definition at line 1943 of file dev.c. References dev_mc_upload(), net_device::flags, net_device::name, and net_device::promiscuity. Referenced by dev_change_flags().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 875 of file netdevice.h.
|
|
||||||||||||
|
Definition at line 316 of file dev.c. References dev_boot_setup, and NETDEV_BOOT_SETUP_MAX. Referenced by netdev_boot_setup().
|
|
|
Definition at line 346 of file dev.c. References net_device::base_addr, dev_boot_setup, net_device::irq, net_device::mem_end, net_device::mem_start, net_device::name, and NETDEV_BOOT_SETUP_MAX. Referenced by net_dev_init().
|
|
|
Definition at line 2560 of file dev.c. References net_device::deadbeaf, net_device::destructor, net_device::dn_ptr, net_device::features, net_device::ip6_ptr, net_device::ip_ptr, net_device::name, and NETIF_F_DYNALLOC. Referenced by dev_put().
|
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 1904 of file dev.c. References dev_hold, dev_put(), net_device::flags, net_device::master, and rtmsg_ifinfo().
|
|
|
Definition at line 674 of file dev.c. References net_device::flags, netdev_chain, and rtmsg_ifinfo(). Referenced by ipgre_tunnel_ioctl(), and ipip_tunnel_ioctl().
|
|
|
|
|
|
Definition at line 666 of file netdevice.h. References __LINK_STATE_NOCARRIER, and net_device::state.
|
|
|
Definition at line 652 of file netdevice.h. References __LINK_STATE_NOCARRIER, and net_device::state. Referenced by dev_ifsioc(), ethtool_op_get_link(), and rtnetlink_fill_ifinfo().
|
|
|
Definition at line 659 of file netdevice.h. References __LINK_STATE_NOCARRIER, __netdev_watchdog_up(), netif_running(), and net_device::state.
|
|
|
Definition at line 685 of file netdevice.h. References __LINK_STATE_PRESENT, __netdev_watchdog_up(), netif_running(), netif_wake_queue(), and net_device::state.
|
|
|
Definition at line 677 of file netdevice.h. References __LINK_STATE_PRESENT, netif_running(), netif_stop_queue(), and net_device::state.
|
|
|
Definition at line 672 of file netdevice.h. References __LINK_STATE_PRESENT, and net_device::state. Referenced by __dev_mc_upload(), dev_ethtool(), dev_ifsioc(), dev_open(), and wireless_process_ioctl().
|
|
|
Definition at line 806 of file netdevice.h. References __LINK_STATE_RX_SCHED, and net_device::state.
|
|
|
Definition at line 815 of file netdevice.h. References __LINK_STATE_RX_SCHED, and net_device::state. Referenced by process_backlog().
|
|
|
Definition at line 568 of file netdevice.h. References __LINK_STATE_XOFF, and net_device::state. Referenced by dev_queue_xmit(), inject(), and qdisc_run().
|
|
|
Definition at line 1461 of file dev.c. References net_device::br_port, sk_buff::data, deliver_to_old_ones(), sk_buff::dev, dev_queue_xmit(), netif_rx_stats::fastroute_deferred_out, sk_buff::h, handle_bridge(), kfree_skb(), NET_RX_DROP, netdev_rx_stat, packet_type::next, sk_buff::nh, sk_buff::pkt_type, sk_buff::protocol, ptype_all, ptype_base, skb_bond(), sk_buff::stamp, netif_rx_stats::total, and sk_buff::users. Referenced by process_backlog().
|
|
|
Definition at line 573 of file netdevice.h. References __LINK_STATE_START, and net_device::state. Referenced by call_commit_handler(), dev_ifsioc(), inject(), neigh_proxy_process(), netif_carrier_on(), netif_device_attach(), netif_device_detach(), netif_rx_schedule_prep(), rtnetlink_fill_ifinfo(), and setup_inject().
|
|
|
Definition at line 1275 of file dev.c. References __skb_queue_tail(), sk_buff::dev, dev_hold, netif_rx_stats::dropped, get_sample_stats(), kfree_skb(), NET_RX_DROP, netdev_dropping, netdev_max_backlog, netdev_rx_stat, netif_rx_schedule(), softnet_data, sk_buff::stamp, netif_rx_stats::throttled, and netif_rx_stats::total. Referenced by ip_dev_loopback_xmit(), ipgre_rcv(), ipip_rcv(), and netif_rx_ni().
|
|
|
Definition at line 794 of file netdevice.h. References __LINK_STATE_RX_SCHED, net_device::poll_list, and net_device::state.
|
|
|
Definition at line 623 of file netdevice.h. References netif_rx().
|
|
||||||||||||
|
Definition at line 772 of file netdevice.h. References netif_rx_schedule_prep(), softnet_data::poll_list, net_device::poll_list, net_device::quota, and softnet_data.
|
|
|
Definition at line 763 of file netdevice.h. References __netif_rx_schedule(), and netif_rx_schedule_prep(). Referenced by netif_rx().
|
|
|
Definition at line 735 of file netdevice.h. References __LINK_STATE_RX_SCHED, netif_running(), and net_device::state. Referenced by netif_rx_reschedule(), and netif_rx_schedule().
|
|
|
Definition at line 546 of file netdevice.h. References __LINK_STATE_XOFF, __netif_schedule(), and net_device::state. Referenced by net_tx_action().
|
|
|
Definition at line 552 of file netdevice.h. References __LINK_STATE_XOFF, and net_device::state.
|
|
|
Definition at line 563 of file netdevice.h. References __LINK_STATE_XOFF, and net_device::state. Referenced by netif_device_detach(), and netif_tx_disable().
|
|
|
Definition at line 831 of file netdevice.h. References netif_stop_queue(), and net_device::xmit_lock.
|
|
|
Definition at line 557 of file netdevice.h. References __LINK_STATE_XOFF, __netif_schedule(), and net_device::state. Referenced by netif_device_attach().
|
|
||||||||||||
|
Definition at line 1663 of file dev.c. References gifconf_func_t, gifconf_list, and NPROTO. Referenced by devinet_init(), and unregister_gifconf().
|
|
|
Referenced by ipgre_init(), and ipip_init(). |
|
|
Definition at line 2464 of file dev.c. References __LINK_STATE_PRESENT, alloc_divert_blk(), default_rebuild_header(), dev_base, dev_base_lock, dev_boot_phase, dev_hold, dev_init_scheduler(), dev_new_index(), net_device::features, free_divert_blk(), net_device::ifindex, net_device::iflink, net_device::init, net_device::name, net_dev_init(), net_run_sbin_hotplug, netdev_chain, NETIF_F_HW_CSUM, NETIF_F_IP_CSUM, NETIF_F_NO_CSUM, NETIF_F_SG, net_device::next, net_device::queue_lock, net_device::rebuild_header, net_device::state, net_device::xmit_lock, and net_device::xmit_lock_owner. Referenced by ipgre_tunnel_locate(), and ipip_tunnel_locate().
|
|
|
Definition at line 910 of file dev.c. References netdev_chain. Referenced by arp_init(), devinet_init(), dst_init(), fib_rules_init(), init(), init_or_cleanup(), ip_fib_init(), ip_mr_init(), ipfw_init_or_cleanup(), and rtnetlink_init().
|
|
|
Definition at line 977 of file dev.c. References CHECKSUM_NONE, sk_buff::csum, csum_fold(), sk_buff::data, sk_buff::h, sk_buff::ip_summed, sk_buff::len, skb_checksum(), and sk_buff::tail. Referenced by dev_queue_xmit(), ip_queue_xmit2(), and nf_hook_slow().
|
|
|
|
|
|
Definition at line 504 of file netdevice.h. References register_gifconf().
|
|
|
Referenced by ipip_fini(). |
|
|
Definition at line 2594 of file dev.c. References net_device::deadbeaf, dev_base, dev_base_lock, dev_boot_phase, dev_close(), dev_mc_discard(), dev_put(), dev_shutdown(), net_device::features, net_device::flags, free_divert_blk(), net_device::master, net_device::name, net_run_sbin_hotplug, netdev_chain, NETIF_F_DYNALLOC, net_device::next, net_device::refcnt, and net_device::uninit. Referenced by ipgre_tunnel_ioctl(), ipip_tunnel_ioctl(), ipmr_new_tunnel(), and vif_delete().
|
|
|
Definition at line 925 of file dev.c. References netdev_chain. Referenced by fini(), init_or_cleanup(), and ipfw_init_or_cleanup().
|
|
|
|
|
|
|
|
|
Referenced by dst_dev_event(), inetdev_event(), ip_route_input_mc(), ip_route_input_slow(), ip_route_output_slow(), and ip_vs_in(). |
|
|
Referenced by netif_rx(), and process_backlog(). |
|
|
|
|
|
Definition at line 1133 of file dev.c. Referenced by get_sample_stats(), net_rx_action(), and netif_rx(). |
|
|
Definition at line 207 of file dev.c. Referenced by dev_add_pack(), dev_queue_xmit(), and dev_remove_pack(). |
|
|
Definition at line 1144 of file dev.c. Referenced by net_rx_action(), netif_receive_skb(), and netif_rx(). |
|
|
|
Definition at line 1134 of file dev.c. Referenced by net_dev_init(). |
1.3.8