|
Linux Kernel
3.7.1
|
#include <linux/bitops.h>#include <linux/compiler.h>#include <linux/list.h>#include <linux/mutex.h>#include <linux/netdevice.h>#include <linux/if_vlan.h>#include <linux/cpu_rmap.h>#include <linux/mlx4/device.h>#include <linux/mlx4/qp.h>#include <linux/mlx4/cq.h>#include <linux/mlx4/srq.h>#include <linux/mlx4/doorbell.h>#include <linux/mlx4/cmd.h>#include "en_port.h"Go to the source code of this file.
Data Structures | |
| struct | mlx4_en_tx_info |
| struct | mlx4_en_tx_desc |
| struct | mlx4_en_rx_alloc |
| struct | mlx4_en_tx_ring |
| struct | mlx4_en_rx_desc |
| struct | mlx4_en_rx_ring |
| struct | mlx4_en_cq |
| struct | mlx4_en_port_profile |
| struct | mlx4_en_profile |
| struct | mlx4_en_dev |
| struct | mlx4_en_rss_map |
| struct | mlx4_en_port_state |
| struct | mlx4_en_pkt_stats |
| struct | mlx4_en_port_stats |
| struct | mlx4_en_perf_stats |
| struct | mlx4_en_mc_list |
| struct | mlx4_en_frag_info |
| struct | ethtool_flow_id |
| struct | mlx4_en_priv |
Enumerations | |
| enum | { FRAG_SZ0 = 512 - NET_IP_ALIGN, FRAG_SZ1 = 1024, FRAG_SZ2 = 4096, FRAG_SZ3 = MLX4_EN_ALLOC_SIZE } |
| enum | cq_type { RX = 0, TX = 1 } |
| enum | mlx4_en_mclist_act { MCLIST_NONE, MCLIST_REM, MCLIST_ADD } |
| enum | mlx4_en_wol { MLX4_EN_WOL_MAGIC = (1ULL << 61), MLX4_EN_WOL_ENABLED = (1ULL << 62) } |
Variables | |
| struct ethtool_ops | mlx4_en_ethtool_ops |
| struct mlx4_en_priv * | priv |
| struct mlx4_en_priv const char * | format |
| #define CTRL_SIZE sizeof(struct mlx4_wqe_ctrl_seg) |
| #define DS_SIZE sizeof(struct mlx4_wqe_data_seg) |
| #define HEADER_COPY_SIZE (128 - NET_IP_ALIGN) |
| #define MAX_DESC_TXBBS (MAX_DESC_SIZE / TXBB_SIZE) |
| #define MLX4_EN_ALLOC_ORDER get_order(MLX4_EN_ALLOC_SIZE) |
| #define MLX4_EN_ALLOC_SIZE PAGE_ALIGN(16384) |
| #define MLX4_EN_MIN_RX_SIZE (MLX4_EN_ALLOC_SIZE / SMP_CACHE_BYTES) |
| #define MLX4_EN_MSG_LEVEL (NETIF_MSG_LINK | NETIF_MSG_IFDOWN) |
| #define MLX4_EN_PAGE_SIZE (1 << MLX4_EN_PAGE_SHIFT) |
| #define MLX4_EN_RX_RATE_THRESH (1000000 / MLX4_EN_RX_COAL_TIME_HIGH) |
| #define mlx4_err | ( | mdev, | |
| format, | |||
| arg... | |||
| ) |
| #define mlx4_info | ( | mdev, | |
| format, | |||
| arg... | |||
| ) |
| #define MLX4_LOOPBACK_TEST_PAYLOAD (HEADER_COPY_SIZE - ETH_HLEN) |
| #define mlx4_warn | ( | mdev, | |
| format, | |||
| arg... | |||
| ) |
| #define SMALL_PACKET_SIZE (256 - NET_IP_ALIGN) |
| #define STAMP_DWORDS (STAMP_STRIDE / 4) |
| anonymous enum |
| enum mlx4_en_mclist_act |
| enum mlx4_en_wol |
| int mlx4_en_activate_cq | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_cq * | cq, | ||
| int | cq_idx | ||
| ) |
| int mlx4_en_activate_rx_rings | ( | struct mlx4_en_priv * | priv | ) |
| int mlx4_en_activate_tx_ring | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_tx_ring * | ring, | ||
| int | cq, | ||
| int | user_prio | ||
| ) |
| int mlx4_en_alloc_resources | ( | struct mlx4_en_priv * | priv | ) |
Definition at line 1403 of file en_netdev.c.
| int mlx4_en_arm_cq | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_cq * | cq | ||
| ) |
| void mlx4_en_calc_rx_buf | ( | struct net_device * | dev | ) |
| int mlx4_en_config_rss_steer | ( | struct mlx4_en_priv * | priv | ) |
| int mlx4_en_create_cq | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_cq * | cq, | ||
| int | entries, | ||
| int | ring, | ||
| enum cq_type | mode | ||
| ) |
| int mlx4_en_create_drop_qp | ( | struct mlx4_en_priv * | priv | ) |
| int mlx4_en_create_rx_ring | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_rx_ring * | ring, | ||
| u32 | size, | ||
| u16 | stride | ||
| ) |
| int mlx4_en_create_tx_ring | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_tx_ring * | ring, | ||
| int | qpn, | ||
| u32 | size, | ||
| u16 | stride | ||
| ) |
| void mlx4_en_deactivate_cq | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_cq * | cq | ||
| ) |
| void mlx4_en_deactivate_rx_ring | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_rx_ring * | ring | ||
| ) |
| void mlx4_en_deactivate_tx_ring | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_tx_ring * | ring | ||
| ) |
| void mlx4_en_destroy_cq | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_cq * | cq | ||
| ) |
| void mlx4_en_destroy_drop_qp | ( | struct mlx4_en_priv * | priv | ) |
| void mlx4_en_destroy_netdev | ( | struct net_device * | dev | ) |
Definition at line 1454 of file en_netdev.c.
| void mlx4_en_destroy_rx_ring | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_rx_ring * | ring, | ||
| u32 | size, | ||
| u16 | stride | ||
| ) |
| void mlx4_en_destroy_tx_ring | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_tx_ring * | ring | ||
| ) |
| int mlx4_en_DUMP_ETH_STATS | ( | struct mlx4_en_dev * | mdev, |
| u8 | port, | ||
| u8 | reset | ||
| ) |
| void mlx4_en_ex_selftest | ( | struct net_device * | dev, |
| u32 * | flags, | ||
| u64 * | buf | ||
| ) |
Definition at line 137 of file en_selftest.c.
| void mlx4_en_fill_qp_context | ( | struct mlx4_en_priv * | priv, |
| int | size, | ||
| int | stride, | ||
| int | is_tx, | ||
| int | rss, | ||
| int | qpn, | ||
| int | cqn, | ||
| int | user_prio, | ||
| struct mlx4_qp_context * | context | ||
| ) |
Definition at line 40 of file en_resources.c.
| void mlx4_en_free_resources | ( | struct mlx4_en_priv * | priv | ) |
Definition at line 1373 of file en_netdev.c.
| int mlx4_en_free_tx_buf | ( | struct net_device * | dev, |
| struct mlx4_en_tx_ring * | ring | ||
| ) |
| int mlx4_en_init_netdev | ( | struct mlx4_en_dev * | mdev, |
| int | port, | ||
| struct mlx4_en_port_profile * | prof | ||
| ) |
Definition at line 1558 of file en_netdev.c.
Definition at line 417 of file en_netdev.c.
Definition at line 71 of file en_resources.c.
| int mlx4_en_poll_rx_cq | ( | struct napi_struct * | napi, |
| int | budget | ||
| ) |
| int mlx4_en_process_rx_cq | ( | struct net_device * | dev, |
| struct mlx4_en_cq * | cq, | ||
| int | budget | ||
| ) |
| int mlx4_en_QUERY_PORT | ( | struct mlx4_en_dev * | mdev, |
| u8 | port | ||
| ) |
| void mlx4_en_release_rss_steer | ( | struct mlx4_en_priv * | priv | ) |
| u16 mlx4_en_select_queue | ( | struct net_device * | dev, |
| struct sk_buff * | skb | ||
| ) |
| int mlx4_en_set_cq_moder | ( | struct mlx4_en_priv * | priv, |
| struct mlx4_en_cq * | cq | ||
| ) |
| void mlx4_en_sqp_event | ( | struct mlx4_qp * | qp, |
| enum mlx4_event | event | ||
| ) |
Definition at line 102 of file en_resources.c.
| int mlx4_en_start_port | ( | struct net_device * | dev | ) |
Definition at line 1023 of file en_netdev.c.
| void mlx4_en_stop_port | ( | struct net_device * | dev | ) |
Definition at line 1210 of file en_netdev.c.
Definition at line 94 of file en_resources.c.
| netdev_tx_t mlx4_en_xmit | ( | struct sk_buff * | skb, |
| struct net_device * | dev | ||
| ) |
| int mlx4_SET_VLAN_FLTR | ( | struct mlx4_dev * | dev, |
| struct mlx4_en_priv * | priv | ||
| ) |
| struct ethtool_ops mlx4_en_ethtool_ops |
Definition at line 1001 of file en_ethtool.c.
1.8.2