Chapter 2. Network device support

Table of Contents

Driver Support
PHY Support

Driver Support

dev_add_pack — add packet handler
__dev_remove_pack — remove packet handler
dev_remove_pack — remove packet handler
netdev_boot_setup_check — check boot time settings
__dev_get_by_name — find a device by its name
dev_get_by_name — find a device by its name
__dev_get_by_index — find a device by its ifindex
dev_get_by_index — find a device by its ifindex
dev_getbyhwaddr — find a device by its hardware address
dev_get_by_flags — find any device with given flags
dev_valid_name — check if name is okay for network device
dev_alloc_name — allocate a name for a device
netdev_features_change — device changes features
netdev_state_change — device changes state
dev_load — load a network module
dev_open — prepare an interface for use.
dev_close — shutdown an interface.
dev_disable_lro — disable Large Receive Offload on a device
register_netdevice_notifier — register a network notifier block
unregister_netdevice_notifier — unregister a network notifier block
netif_device_detach — mark device as removed
netif_device_attach — mark device as attached
skb_gso_segment — Perform segmentation on skb.
dev_queue_xmit — transmit a buffer
netif_rx — post buffer to the network code
netif_receive_skb — process receive buffer from network
__napi_schedule — schedule for receive
register_gifconf — register a SIOCGIF handler
netdev_set_master — set up master/slave pair
dev_set_promiscuity — update promiscuity count on a device
dev_set_allmulti — update allmulti count on a device
dev_addr_add — Add a device address
dev_addr_del — Release a device address.
dev_addr_add_multiple — Add device addresses from another device
dev_addr_del_multiple — Delete device addresses by another device
dev_unicast_delete — Release secondary unicast address.
dev_unicast_add — add a secondary unicast address
dev_unicast_sync — Synchronize device's unicast list to another device
dev_unicast_unsync — Remove synchronized addresses from the destination device
dev_get_flags — get flags reported to userspace
dev_change_flags — change device settings
dev_set_mtu — Change maximum transfer unit
dev_set_mac_address — Change Media Access Control Address
register_netdevice — register a network device
init_dummy_netdev — init a dummy network device for NAPI
register_netdev — register a network device
dev_get_stats — get network device statistics
alloc_netdev_mq — allocate network device
free_netdev — free network device
synchronize_net — Synchronize with packet receive processing
unregister_netdevice — remove device from the kernel
unregister_netdev — remove device from the kernel
dev_change_net_namespace — move device to different nethost namespace
netdev_increment_features — increment feature set by one
eth_header — create the Ethernet header
eth_rebuild_header — rebuild the Ethernet MAC header.
eth_type_trans — determine the packet's protocol ID.
eth_header_parse — extract hardware address from packet
eth_header_cache — fill cache entry from neighbour
eth_header_cache_update — update cache entry
eth_mac_addr — set new Ethernet hardware address
eth_change_mtu — set new MTU size
ether_setup — setup Ethernet network device
alloc_etherdev_mq — Allocates and sets up an Ethernet device
netif_carrier_on — set carrier
netif_carrier_off — clear carrier
netif_notify_peers — notify network peers about existence of dev
is_zero_ether_addr — Determine if give Ethernet address is all zeros.
is_multicast_ether_addr — Determine if the Ethernet address is a multicast.
is_local_ether_addr — Determine if the Ethernet address is locally-assigned one (IEEE 802).
is_broadcast_ether_addr — Determine if the Ethernet address is broadcast
is_valid_ether_addr — Determine if the given Ethernet address is valid
random_ether_addr — Generate software assigned random Ethernet address
compare_ether_addr — Compare two Ethernet addresses
compare_ether_addr_64bits — Compare two Ethernet addresses
is_etherdev_addr — Tell if given Ethernet address belongs to the device.
compare_ether_header — Compare two Ethernet headers
napi_schedule_prep — check if napi can be scheduled
napi_schedule — schedule NAPI poll
napi_disable — prevent NAPI from scheduling
napi_enable — enable NAPI scheduling
napi_synchronize — wait until NAPI is not running
netdev_priv — access network device private data
netif_start_queue — allow transmit
netif_wake_queue — restart transmit
netif_stop_queue — stop transmitted packets
netif_queue_stopped — test if transmit queue is flowblocked
netif_running — test if up
netif_start_subqueue — allow sending packets on subqueue
netif_stop_subqueue — stop sending packets on subqueue
__netif_subqueue_stopped — test status of subqueue
netif_wake_subqueue — allow sending packets on subqueue
netif_is_multiqueue — test if device has multiple transmit queues
dev_put — release reference to device
dev_hold — get reference to device
netif_carrier_ok — test if carrier present
netif_dormant_on — mark device as dormant.
netif_dormant_off — set device as not dormant.
netif_dormant — test if carrier present
netif_oper_up — test if device is operational
netif_device_present — is device available or removed
netif_tx_lock — grab network device transmit lock