Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ibmveth.h File Reference

Go to the source code of this file.

Data Structures

struct  ibmveth_buff_pool
 
struct  ibmveth_rx_q
 
struct  ibmveth_adapter
 
struct  ibmveth_buf_desc_fields
 
union  ibmveth_buf_desc
 
struct  ibmveth_rx_q_entry
 

Macros

#define IbmVethMcastReceptionModifyBit   0x80000UL
 
#define IbmVethMcastReceptionEnableBit   0x20000UL
 
#define IbmVethMcastFilterModifyBit   0x40000UL
 
#define IbmVethMcastFilterEnableBit   0x10000UL
 
#define IbmVethMcastEnableRecv   (IbmVethMcastReceptionModifyBit | IbmVethMcastReceptionEnableBit)
 
#define IbmVethMcastDisableRecv   (IbmVethMcastReceptionModifyBit)
 
#define IbmVethMcastEnableFiltering   (IbmVethMcastFilterModifyBit | IbmVethMcastFilterEnableBit)
 
#define IbmVethMcastDisableFiltering   (IbmVethMcastFilterModifyBit)
 
#define IbmVethMcastAddFilter   0x1UL
 
#define IbmVethMcastRemoveFilter   0x2UL
 
#define IbmVethMcastClearFilterTable   0x3UL
 
#define IBMVETH_ILLAN_PADDED_PKT_CSUM   0x0000000000002000UL
 
#define IBMVETH_ILLAN_TRUNK_PRI_MASK   0x0000000000000F00UL
 
#define IBMVETH_ILLAN_IPV6_TCP_CSUM   0x0000000000000004UL
 
#define IBMVETH_ILLAN_IPV4_TCP_CSUM   0x0000000000000002UL
 
#define IBMVETH_ILLAN_ACTIVE_TRUNK   0x0000000000000001UL
 
#define h_register_logical_lan(ua, buflst, rxq, fltlst, mac)   plpar_hcall_norets(H_REGISTER_LOGICAL_LAN, ua, buflst, rxq, fltlst, mac)
 
#define h_free_logical_lan(ua)   plpar_hcall_norets(H_FREE_LOGICAL_LAN, ua)
 
#define h_add_logical_lan_buffer(ua, buf)   plpar_hcall_norets(H_ADD_LOGICAL_LAN_BUFFER, ua, buf)
 
#define h_multicast_ctrl(ua, cmd, mac)   plpar_hcall_norets(H_MULTICAST_CTRL, ua, cmd, mac)
 
#define h_change_logical_lan_mac(ua, mac)   plpar_hcall_norets(H_CHANGE_LOGICAL_LAN_MAC, ua, mac)
 
#define IBMVETH_NUM_BUFF_POOLS   5
 
#define IBMVETH_IO_ENTITLEMENT_DEFAULT   4243456 /* MTU of 1500 needs 4.2Mb */
 
#define IBMVETH_BUFF_OH   22 /* Overhead: 14 ethernet header + 8 opaque handle */
 
#define IBMVETH_MIN_MTU   68
 
#define IBMVETH_MAX_POOL_COUNT   4096
 
#define IBMVETH_BUFF_LIST_SIZE   4096
 
#define IBMVETH_FILT_LIST_SIZE   4096
 
#define IBMVETH_MAX_BUF_SIZE   (1024 * 128)
 
#define IBM_VETH_INVALID_MAP   ((u16)0xffff)
 
#define IBMVETH_BUF_VALID   0x80000000
 
#define IBMVETH_BUF_TOGGLE   0x40000000
 
#define IBMVETH_BUF_NO_CSUM   0x02000000
 
#define IBMVETH_BUF_CSUM_GOOD   0x01000000
 
#define IBMVETH_BUF_LEN_MASK   0x00FFFFFF
 
#define IBMVETH_RXQ_TOGGLE   0x80000000
 
#define IBMVETH_RXQ_TOGGLE_SHIFT   31
 
#define IBMVETH_RXQ_VALID   0x40000000
 
#define IBMVETH_RXQ_NO_CSUM   0x02000000
 
#define IBMVETH_RXQ_CSUM_GOOD   0x01000000
 
#define IBMVETH_RXQ_OFF_MASK   0x0000FFFF
 

Macro Definition Documentation

#define h_add_logical_lan_buffer (   ua,
  buf 
)    plpar_hcall_norets(H_ADD_LOGICAL_LAN_BUFFER, ua, buf)

Definition at line 57 of file ibmveth.h.

#define h_change_logical_lan_mac (   ua,
  mac 
)    plpar_hcall_norets(H_CHANGE_LOGICAL_LAN_MAC, ua, mac)

Definition at line 94 of file ibmveth.h.

#define h_free_logical_lan (   ua)    plpar_hcall_norets(H_FREE_LOGICAL_LAN, ua)

Definition at line 54 of file ibmveth.h.

#define h_multicast_ctrl (   ua,
  cmd,
  mac 
)    plpar_hcall_norets(H_MULTICAST_CTRL, ua, cmd, mac)

Definition at line 91 of file ibmveth.h.

#define h_register_logical_lan (   ua,
  buflst,
  rxq,
  fltlst,
  mac 
)    plpar_hcall_norets(H_REGISTER_LOGICAL_LAN, ua, buflst, rxq, fltlst, mac)

Definition at line 51 of file ibmveth.h.

#define IBM_VETH_INVALID_MAP   ((u16)0xffff)

Definition at line 110 of file ibmveth.h.

#define IBMVETH_BUF_CSUM_GOOD   0x01000000

Definition at line 172 of file ibmveth.h.

#define IBMVETH_BUF_LEN_MASK   0x00FFFFFF

Definition at line 173 of file ibmveth.h.

#define IBMVETH_BUF_NO_CSUM   0x02000000

Definition at line 171 of file ibmveth.h.

#define IBMVETH_BUF_TOGGLE   0x40000000

Definition at line 170 of file ibmveth.h.

#define IBMVETH_BUF_VALID   0x80000000

Definition at line 169 of file ibmveth.h.

#define IBMVETH_BUFF_LIST_SIZE   4096

Definition at line 102 of file ibmveth.h.

#define IBMVETH_BUFF_OH   22 /* Overhead: 14 ethernet header + 8 opaque handle */

Definition at line 99 of file ibmveth.h.

#define IBMVETH_FILT_LIST_SIZE   4096

Definition at line 103 of file ibmveth.h.

#define IBMVETH_ILLAN_ACTIVE_TRUNK   0x0000000000000001UL

Definition at line 48 of file ibmveth.h.

#define IBMVETH_ILLAN_IPV4_TCP_CSUM   0x0000000000000002UL

Definition at line 47 of file ibmveth.h.

#define IBMVETH_ILLAN_IPV6_TCP_CSUM   0x0000000000000004UL

Definition at line 46 of file ibmveth.h.

#define IBMVETH_ILLAN_PADDED_PKT_CSUM   0x0000000000002000UL

Definition at line 44 of file ibmveth.h.

#define IBMVETH_ILLAN_TRUNK_PRI_MASK   0x0000000000000F00UL

Definition at line 45 of file ibmveth.h.

#define IBMVETH_IO_ENTITLEMENT_DEFAULT   4243456 /* MTU of 1500 needs 4.2Mb */

Definition at line 98 of file ibmveth.h.

#define IBMVETH_MAX_BUF_SIZE   (1024 * 128)

Definition at line 104 of file ibmveth.h.

#define IBMVETH_MAX_POOL_COUNT   4096

Definition at line 101 of file ibmveth.h.

#define IBMVETH_MIN_MTU   68

Definition at line 100 of file ibmveth.h.

#define IBMVETH_NUM_BUFF_POOLS   5

Definition at line 97 of file ibmveth.h.

#define IBMVETH_RXQ_CSUM_GOOD   0x01000000

Definition at line 188 of file ibmveth.h.

#define IBMVETH_RXQ_NO_CSUM   0x02000000

Definition at line 187 of file ibmveth.h.

#define IBMVETH_RXQ_OFF_MASK   0x0000FFFF

Definition at line 189 of file ibmveth.h.

#define IBMVETH_RXQ_TOGGLE   0x80000000

Definition at line 184 of file ibmveth.h.

#define IBMVETH_RXQ_TOGGLE_SHIFT   31

Definition at line 185 of file ibmveth.h.

#define IBMVETH_RXQ_VALID   0x40000000

Definition at line 186 of file ibmveth.h.

#define IbmVethMcastAddFilter   0x1UL

Definition at line 40 of file ibmveth.h.

#define IbmVethMcastClearFilterTable   0x3UL

Definition at line 42 of file ibmveth.h.

#define IbmVethMcastDisableFiltering   (IbmVethMcastFilterModifyBit)

Definition at line 39 of file ibmveth.h.

#define IbmVethMcastDisableRecv   (IbmVethMcastReceptionModifyBit)

Definition at line 37 of file ibmveth.h.

#define IbmVethMcastEnableFiltering   (IbmVethMcastFilterModifyBit | IbmVethMcastFilterEnableBit)

Definition at line 38 of file ibmveth.h.

#define IbmVethMcastEnableRecv   (IbmVethMcastReceptionModifyBit | IbmVethMcastReceptionEnableBit)

Definition at line 36 of file ibmveth.h.

#define IbmVethMcastFilterEnableBit   0x10000UL

Definition at line 34 of file ibmveth.h.

#define IbmVethMcastFilterModifyBit   0x40000UL

Definition at line 33 of file ibmveth.h.

#define IbmVethMcastReceptionEnableBit   0x20000UL

Definition at line 32 of file ibmveth.h.

#define IbmVethMcastReceptionModifyBit   0x80000UL

Definition at line 31 of file ibmveth.h.

#define IbmVethMcastRemoveFilter   0x2UL

Definition at line 41 of file ibmveth.h.