Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
vxge-main.h File Reference
#include "vxge-traffic.h"
#include "vxge-config.h"
#include "vxge-version.h"
#include <linux/list.h>
#include <linux/bitops.h>
#include <linux/if_vlan.h>

Go to the source code of this file.

Data Structures

struct  vxge_drv_config
 
struct  macInfo
 
struct  vxge_config
 
struct  vxge_msix_entry
 
struct  vxge_sw_stats
 
struct  vxge_mac_addrs
 
struct  vxge_fifo_stats
 
struct  vxge_fifo
 
struct  vxge_ring_stats
 
struct  vxge_ring
 
struct  vxge_vpath
 
struct  vxgedev
 
struct  vxge_rx_priv
 
struct  vxge_tx_priv
 

Macros

#define VXGE_DRIVER_NAME   "vxge"
 
#define VXGE_DRIVER_VENDOR   "Neterion, Inc"
 
#define VXGE_DRIVER_FW_VERSION_MAJOR   1
 
#define DRV_VERSION
 
#define PCI_DEVICE_ID_TITAN_WIN   0x5733
 
#define PCI_DEVICE_ID_TITAN_UNI   0x5833
 
#define VXGE_HW_TITAN1_PCI_REVISION   1
 
#define VXGE_HW_TITAN1A_PCI_REVISION   2
 
#define VXGE_USE_DEFAULT   0xffffffff
 
#define VXGE_HW_VPATH_MSIX_ACTIVE   4
 
#define VXGE_ALARM_MSIX_ID   2
 
#define VXGE_HW_RXSYNC_FREQ_CNT   4
 
#define VXGE_LL_WATCH_DOG_TIMEOUT   (15 * HZ)
 
#define VXGE_LL_RX_COPY_THRESHOLD   256
 
#define VXGE_DEF_FIFO_LENGTH   84
 
#define NO_STEERING   0
 
#define PORT_STEERING   0x1
 
#define RTH_STEERING   0x2
 
#define RX_TOS_STEERING   0x3
 
#define RX_VLAN_STEERING   0x4
 
#define RTH_BUCKET_SIZE   4
 
#define TX_PRIORITY_STEERING   1
 
#define TX_VLAN_STEERING   2
 
#define TX_PORT_STEERING   3
 
#define TX_MULTIQ_STEERING   4
 
#define VXGE_HW_MAC_ADDR_LEARN_DEFAULT   VXGE_HW_RTS_MAC_DISABLE
 
#define VXGE_TTI_BTIMER_VAL   250000
 
#define VXGE_TTI_LTIMER_VAL   1000
 
#define VXGE_T1A_TTI_LTIMER_VAL   80
 
#define VXGE_TTI_RTIMER_VAL   0
 
#define VXGE_TTI_RTIMER_ADAPT_VAL   10
 
#define VXGE_T1A_TTI_RTIMER_VAL   400
 
#define VXGE_RTI_BTIMER_VAL   250
 
#define VXGE_RTI_LTIMER_VAL   100
 
#define VXGE_RTI_RTIMER_VAL   0
 
#define VXGE_RTI_RTIMER_ADAPT_VAL   15
 
#define VXGE_FIFO_INDICATE_MAX_PKTS   VXGE_DEF_FIFO_LENGTH
 
#define VXGE_ISR_POLLING_CNT   8
 
#define VXGE_MAX_CONFIG_DEV   0xFF
 
#define VXGE_EXEC_MODE_DISABLE   0
 
#define VXGE_EXEC_MODE_ENABLE   1
 
#define VXGE_MAX_CONFIG_PORT   1
 
#define VXGE_ALL_VID_DISABLE   0
 
#define VXGE_ALL_VID_ENABLE   1
 
#define VXGE_PAUSE_CTRL_DISABLE   0
 
#define VXGE_PAUSE_CTRL_ENABLE   1
 
#define TTI_TX_URANGE_A   5
 
#define TTI_TX_URANGE_B   15
 
#define TTI_TX_URANGE_C   40
 
#define TTI_TX_UFC_A   5
 
#define TTI_TX_UFC_B   40
 
#define TTI_TX_UFC_C   60
 
#define TTI_TX_UFC_D   100
 
#define TTI_T1A_TX_UFC_A   30
 
#define TTI_T1A_TX_UFC_B   80
 
#define TTI_T1A_TX_UFC_C(mtu)   (60 + ((VXGE_HW_MAX_MTU - mtu) / 93))
 
#define TTI_T1A_TX_UFC_D(mtu)   (100 + ((VXGE_HW_MAX_MTU - mtu) / 37))
 
#define RTI_RX_URANGE_A   5
 
#define RTI_RX_URANGE_B   15
 
#define RTI_RX_URANGE_C   40
 
#define RTI_T1A_RX_URANGE_A   1
 
#define RTI_T1A_RX_URANGE_B   20
 
#define RTI_T1A_RX_URANGE_C   50
 
#define RTI_RX_UFC_A   1
 
#define RTI_RX_UFC_B   5
 
#define RTI_RX_UFC_C   10
 
#define RTI_RX_UFC_D   15
 
#define RTI_T1A_RX_UFC_B   20
 
#define RTI_T1A_RX_UFC_C   50
 
#define RTI_T1A_RX_UFC_D   60
 
#define VXGE_T1A_MAX_INTERRUPT_COUNT   100
 
#define VXGE_T1A_MAX_TX_INTERRUPT_COUNT   200
 
#define VXGE_TIMER_DELAY   10000
 
#define VXGE_LL_MAX_FRAME_SIZE(dev)   ((dev)->mtu + VXGE_HW_MAC_HEADER_MAX_SIZE)
 
#define is_sriov(function_mode)
 
#define NEW_NAPI_WEIGHT   64
 
#define INTA   0
 
#define MSI   1
 
#define MSI_X   2
 
#define VXGE_MAX_MAC_ADDR_COUNT   30
 
#define VXGE_MAX_LEARN_MAC_ADDR_CNT   2048
 
#define VXGE_COPY_DEBUG_INFO_TO_LL(vdev, err, trace)
 
#define VXGE_MAX_REQUESTED_MSIX   68
 
#define VXGE_INTR_STRLEN   80
 
#define VXGE_MODULE_PARAM_INT(p, val)
 
#define VXGE_DEBUG_INIT   0x00000001
 
#define VXGE_DEBUG_TX   0x00000002
 
#define VXGE_DEBUG_RX   0x00000004
 
#define VXGE_DEBUG_MEM   0x00000008
 
#define VXGE_DEBUG_LOCK   0x00000010
 
#define VXGE_DEBUG_SEM   0x00000020
 
#define VXGE_DEBUG_ENTRYEXIT   0x00000040
 
#define VXGE_DEBUG_INTR   0x00000080
 
#define VXGE_DEBUG_LL_CONFIG   0x00000100
 
#define vxge_debug_ll_config(level, fmt,...)
 
#define vxge_debug_init(level, fmt,...)   vxge_debug_ll(level, VXGE_DEBUG_INIT, fmt, __VA_ARGS__)
 
#define vxge_debug_tx(level, fmt,...)
 
#define vxge_debug_rx(level, fmt,...)
 
#define vxge_debug_mem(level, fmt,...)
 
#define vxge_debug_entryexit(level, fmt,...)
 
#define vxge_debug_intr(level, fmt,...)
 
#define VXGE_DEVICE_DEBUG_LEVEL_SET(level, mask, vdev)
 

Enumerations

enum  vxge_reset_event {
  VXGE_LL_VPATH_RESET = 0, VXGE_LL_DEVICE_RESET = 1, VXGE_LL_FULL_RESET = 2, VXGE_LL_START_RESET = 3,
  VXGE_LL_COMPL_RESET = 4
}
 
enum  vxge_device_state_t { __VXGE_STATE_RESET_CARD = 0, __VXGE_STATE_CARD_UP }
 
enum  vxge_mac_addr_state { VXGE_LL_MAC_ADDR_IN_LIST = 0, VXGE_LL_MAC_ADDR_IN_DA_TABLE = 1 }
 

Functions

void vxge_initialize_ethtool_ops (struct net_device *ndev)
 
enum vxge_hw_status vxge_reset_all_vpaths (struct vxgedev *vdev)
 
int vxge_fw_upgrade (struct vxgedev *vdev, char *fw_name, int override)
 

Variables

struct vxge_fifo ____cacheline_aligned
 

Macro Definition Documentation

#define DRV_VERSION
Value:
VXGE_VERSION_FIX"."VXGE_VERSION_BUILD"-"\
VXGE_VERSION_FOR

Definition at line 28 of file vxge-main.h.

#define INTA   0

Definition at line 174 of file vxge-main.h.

#define is_sriov (   function_mode)
Value:
((function_mode == VXGE_HW_FUNCTION_MODE_SRIOV) || \
(function_mode == VXGE_HW_FUNCTION_MODE_SRIOV_8) || \
(function_mode == VXGE_HW_FUNCTION_MODE_SRIOV_4))

Definition at line 128 of file vxge-main.h.

#define MSI   1

Definition at line 175 of file vxge-main.h.

#define MSI_X   2

Definition at line 176 of file vxge-main.h.

#define NEW_NAPI_WEIGHT   64

Definition at line 171 of file vxge-main.h.

#define NO_STEERING   0

Definition at line 45 of file vxge-main.h.

#define PCI_DEVICE_ID_TITAN_UNI   0x5833

Definition at line 33 of file vxge-main.h.

#define PCI_DEVICE_ID_TITAN_WIN   0x5733

Definition at line 32 of file vxge-main.h.

#define PORT_STEERING   0x1

Definition at line 46 of file vxge-main.h.

#define RTH_BUCKET_SIZE   4

Definition at line 50 of file vxge-main.h.

#define RTH_STEERING   0x2

Definition at line 47 of file vxge-main.h.

#define RTI_RX_UFC_A   1

Definition at line 106 of file vxge-main.h.

#define RTI_RX_UFC_B   5

Definition at line 107 of file vxge-main.h.

#define RTI_RX_UFC_C   10

Definition at line 108 of file vxge-main.h.

#define RTI_RX_UFC_D   15

Definition at line 109 of file vxge-main.h.

#define RTI_RX_URANGE_A   5

Definition at line 100 of file vxge-main.h.

#define RTI_RX_URANGE_B   15

Definition at line 101 of file vxge-main.h.

#define RTI_RX_URANGE_C   40

Definition at line 102 of file vxge-main.h.

#define RTI_T1A_RX_UFC_B   20

Definition at line 110 of file vxge-main.h.

#define RTI_T1A_RX_UFC_C   50

Definition at line 111 of file vxge-main.h.

#define RTI_T1A_RX_UFC_D   60

Definition at line 112 of file vxge-main.h.

#define RTI_T1A_RX_URANGE_A   1

Definition at line 103 of file vxge-main.h.

#define RTI_T1A_RX_URANGE_B   20

Definition at line 104 of file vxge-main.h.

#define RTI_T1A_RX_URANGE_C   50

Definition at line 105 of file vxge-main.h.

#define RX_TOS_STEERING   0x3

Definition at line 48 of file vxge-main.h.

#define RX_VLAN_STEERING   0x4

Definition at line 49 of file vxge-main.h.

#define TTI_T1A_TX_UFC_A   30

Definition at line 88 of file vxge-main.h.

#define TTI_T1A_TX_UFC_B   80

Definition at line 89 of file vxge-main.h.

#define TTI_T1A_TX_UFC_C (   mtu)    (60 + ((VXGE_HW_MAX_MTU - mtu) / 93))

Definition at line 93 of file vxge-main.h.

#define TTI_T1A_TX_UFC_D (   mtu)    (100 + ((VXGE_HW_MAX_MTU - mtu) / 37))

Definition at line 97 of file vxge-main.h.

#define TTI_TX_UFC_A   5

Definition at line 84 of file vxge-main.h.

#define TTI_TX_UFC_B   40

Definition at line 85 of file vxge-main.h.

#define TTI_TX_UFC_C   60

Definition at line 86 of file vxge-main.h.

#define TTI_TX_UFC_D   100

Definition at line 87 of file vxge-main.h.

#define TTI_TX_URANGE_A   5

Definition at line 81 of file vxge-main.h.

#define TTI_TX_URANGE_B   15

Definition at line 82 of file vxge-main.h.

#define TTI_TX_URANGE_C   40

Definition at line 83 of file vxge-main.h.

#define TX_MULTIQ_STEERING   4

Definition at line 55 of file vxge-main.h.

#define TX_PORT_STEERING   3

Definition at line 54 of file vxge-main.h.

#define TX_PRIORITY_STEERING   1

Definition at line 52 of file vxge-main.h.

#define TX_VLAN_STEERING   2

Definition at line 53 of file vxge-main.h.

#define VXGE_ALARM_MSIX_ID   2

Definition at line 39 of file vxge-main.h.

#define VXGE_ALL_VID_DISABLE   0

Definition at line 76 of file vxge-main.h.

#define VXGE_ALL_VID_ENABLE   1

Definition at line 77 of file vxge-main.h.

#define VXGE_COPY_DEBUG_INFO_TO_LL (   vdev,
  err,
  trace 
)
Value:
{ \
for (i = 0; i < vdev->no_of_vpath; i++) { \
vdev->vpaths[i].level_err = err; \
vdev->vpaths[i].level_trace = trace; \
} \
vdev->level_err = err; \
vdev->level_trace = trace; \
}

Definition at line 323 of file vxge-main.h.

#define VXGE_DEBUG_ENTRYEXIT   0x00000040

Definition at line 447 of file vxge-main.h.

#define vxge_debug_entryexit (   level,
  fmt,
  ... 
)

Definition at line 495 of file vxge-main.h.

#define VXGE_DEBUG_INIT   0x00000001

Definition at line 441 of file vxge-main.h.

#define vxge_debug_init (   level,
  fmt,
  ... 
)    vxge_debug_ll(level, VXGE_DEBUG_INIT, fmt, __VA_ARGS__)

Definition at line 464 of file vxge-main.h.

#define VXGE_DEBUG_INTR   0x00000080

Definition at line 448 of file vxge-main.h.

#define vxge_debug_intr (   level,
  fmt,
  ... 
)

Definition at line 502 of file vxge-main.h.

#define VXGE_DEBUG_LL_CONFIG   0x00000100

Definition at line 449 of file vxge-main.h.

#define vxge_debug_ll_config (   level,
  fmt,
  ... 
)

Definition at line 460 of file vxge-main.h.

#define VXGE_DEBUG_LOCK   0x00000010

Definition at line 445 of file vxge-main.h.

#define VXGE_DEBUG_MEM   0x00000008

Definition at line 444 of file vxge-main.h.

#define vxge_debug_mem (   level,
  fmt,
  ... 
)

Definition at line 488 of file vxge-main.h.

#define VXGE_DEBUG_RX   0x00000004

Definition at line 443 of file vxge-main.h.

#define vxge_debug_rx (   level,
  fmt,
  ... 
)

Definition at line 481 of file vxge-main.h.

#define VXGE_DEBUG_SEM   0x00000020

Definition at line 446 of file vxge-main.h.

#define VXGE_DEBUG_TX   0x00000002

Definition at line 442 of file vxge-main.h.

#define vxge_debug_tx (   level,
  fmt,
  ... 
)

Definition at line 474 of file vxge-main.h.

#define VXGE_DEF_FIFO_LENGTH   84

Definition at line 43 of file vxge-main.h.

#define VXGE_DEVICE_DEBUG_LEVEL_SET (   level,
  mask,
  vdev 
)
Value:
{\
vxge_hw_device_debug_set((struct __vxge_hw_device *)vdev->devh, \
level, mask);\
VXGE_COPY_DEBUG_INFO_TO_LL(vdev, \
vdev->devh), \
vdev->devh));\
}

Definition at line 505 of file vxge-main.h.

#define VXGE_DRIVER_FW_VERSION_MAJOR   1

Definition at line 26 of file vxge-main.h.

#define VXGE_DRIVER_NAME   "vxge"

Definition at line 24 of file vxge-main.h.

#define VXGE_DRIVER_VENDOR   "Neterion, Inc"

Definition at line 25 of file vxge-main.h.

#define VXGE_EXEC_MODE_DISABLE   0

Definition at line 73 of file vxge-main.h.

#define VXGE_EXEC_MODE_ENABLE   1

Definition at line 74 of file vxge-main.h.

#define VXGE_FIFO_INDICATE_MAX_PKTS   VXGE_DEF_FIFO_LENGTH

Definition at line 70 of file vxge-main.h.

#define VXGE_HW_MAC_ADDR_LEARN_DEFAULT   VXGE_HW_RTS_MAC_DISABLE

Definition at line 57 of file vxge-main.h.

#define VXGE_HW_RXSYNC_FREQ_CNT   4

Definition at line 40 of file vxge-main.h.

#define VXGE_HW_TITAN1_PCI_REVISION   1

Definition at line 34 of file vxge-main.h.

#define VXGE_HW_TITAN1A_PCI_REVISION   2

Definition at line 35 of file vxge-main.h.

#define VXGE_HW_VPATH_MSIX_ACTIVE   4

Definition at line 38 of file vxge-main.h.

#define VXGE_INTR_STRLEN   80

Definition at line 367 of file vxge-main.h.

#define VXGE_ISR_POLLING_CNT   8

Definition at line 71 of file vxge-main.h.

#define VXGE_LL_MAX_FRAME_SIZE (   dev)    ((dev)->mtu + VXGE_HW_MAC_HEADER_MAX_SIZE)

Definition at line 126 of file vxge-main.h.

#define VXGE_LL_RX_COPY_THRESHOLD   256

Definition at line 42 of file vxge-main.h.

#define VXGE_LL_WATCH_DOG_TIMEOUT   (15 * HZ)

Definition at line 41 of file vxge-main.h.

#define VXGE_MAX_CONFIG_DEV   0xFF

Definition at line 72 of file vxge-main.h.

#define VXGE_MAX_CONFIG_PORT   1

Definition at line 75 of file vxge-main.h.

#define VXGE_MAX_LEARN_MAC_ADDR_CNT   2048

Definition at line 314 of file vxge-main.h.

#define VXGE_MAX_MAC_ADDR_COUNT   30

Definition at line 289 of file vxge-main.h.

#define VXGE_MAX_REQUESTED_MSIX   68

Definition at line 366 of file vxge-main.h.

#define VXGE_MODULE_PARAM_INT (   p,
  val 
)
Value:
static int p = val; \
module_param(p, int, 0)

Definition at line 415 of file vxge-main.h.

#define VXGE_PAUSE_CTRL_DISABLE   0

Definition at line 78 of file vxge-main.h.

#define VXGE_PAUSE_CTRL_ENABLE   1

Definition at line 79 of file vxge-main.h.

#define VXGE_RTI_BTIMER_VAL   250

Definition at line 66 of file vxge-main.h.

#define VXGE_RTI_LTIMER_VAL   100

Definition at line 67 of file vxge-main.h.

#define VXGE_RTI_RTIMER_ADAPT_VAL   15

Definition at line 69 of file vxge-main.h.

#define VXGE_RTI_RTIMER_VAL   0

Definition at line 68 of file vxge-main.h.

#define VXGE_T1A_MAX_INTERRUPT_COUNT   100

Definition at line 120 of file vxge-main.h.

#define VXGE_T1A_MAX_TX_INTERRUPT_COUNT   200

Definition at line 121 of file vxge-main.h.

#define VXGE_T1A_TTI_LTIMER_VAL   80

Definition at line 62 of file vxge-main.h.

#define VXGE_T1A_TTI_RTIMER_VAL   400

Definition at line 65 of file vxge-main.h.

#define VXGE_TIMER_DELAY   10000

Definition at line 124 of file vxge-main.h.

#define VXGE_TTI_BTIMER_VAL   250000

Definition at line 59 of file vxge-main.h.

#define VXGE_TTI_LTIMER_VAL   1000

Definition at line 61 of file vxge-main.h.

#define VXGE_TTI_RTIMER_ADAPT_VAL   10

Definition at line 64 of file vxge-main.h.

#define VXGE_TTI_RTIMER_VAL   0

Definition at line 63 of file vxge-main.h.

#define VXGE_USE_DEFAULT   0xffffffff

Definition at line 37 of file vxge-main.h.

Enumeration Type Documentation

Enumerator:
__VXGE_STATE_RESET_CARD 
__VXGE_STATE_CARD_UP 

Definition at line 142 of file vxge-main.h.

Enumerator:
VXGE_LL_MAC_ADDR_IN_LIST 
VXGE_LL_MAC_ADDR_IN_DA_TABLE 

Definition at line 147 of file vxge-main.h.

Enumerator:
VXGE_LL_VPATH_RESET 
VXGE_LL_DEVICE_RESET 
VXGE_LL_FULL_RESET 
VXGE_LL_START_RESET 
VXGE_LL_COMPL_RESET 

Definition at line 133 of file vxge-main.h.

Function Documentation

int vxge_fw_upgrade ( struct vxgedev vdev,
char fw_name,
int  override 
)

Definition at line 4137 of file vxge-main.c.

void vxge_initialize_ethtool_ops ( struct net_device ndev)

Definition at line 1129 of file vxge-ethtool.c.

enum vxge_hw_status vxge_reset_all_vpaths ( struct vxgedev vdev)

Definition at line 1973 of file vxge-main.c.

Variable Documentation