Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
enic_res.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include "wq_enet_desc.h"
#include "rq_enet_desc.h"
#include "cq_enet_desc.h"
#include "vnic_resource.h"
#include "vnic_enet.h"
#include "vnic_dev.h"
#include "vnic_wq.h"
#include "vnic_rq.h"
#include "vnic_cq.h"
#include "vnic_intr.h"
#include "vnic_stats.h"
#include "vnic_nic.h"
#include "vnic_rss.h"
#include "enic_res.h"
#include "enic.h"

Go to the source code of this file.

Macros

#define GET_CONFIG(m)
 

Functions

int enic_get_vnic_config (struct enic *enic)
 
int enic_add_vlan (struct enic *enic, u16 vlanid)
 
int enic_del_vlan (struct enic *enic, u16 vlanid)
 
int enic_set_nic_cfg (struct enic *enic, u8 rss_default_cpu, u8 rss_hash_type, u8 rss_hash_bits, u8 rss_base_cpu, u8 rss_enable, u8 tso_ipid_split_en, u8 ig_vlan_strip_en)
 
int enic_set_rss_key (struct enic *enic, dma_addr_t key_pa, u64 len)
 
int enic_set_rss_cpu (struct enic *enic, dma_addr_t cpu_pa, u64 len)
 
void enic_free_vnic_resources (struct enic *enic)
 
void enic_get_res_counts (struct enic *enic)
 
void enic_init_vnic_resources (struct enic *enic)
 
int enic_alloc_vnic_resources (struct enic *enic)
 

Macro Definition Documentation

#define GET_CONFIG (   m)
Value:
do { \
sizeof(c->m), &c->m); \
if (err) { \
dev_err(enic_get_dev(enic), \
"Error getting %s, %d\n", #m, err); \
return err; \
} \
} while (0)

Function Documentation

int enic_add_vlan ( struct enic enic,
u16  vlanid 
)

Definition at line 121 of file enic_res.c.

int enic_alloc_vnic_resources ( struct enic enic)

Definition at line 311 of file enic_res.c.

int enic_del_vlan ( struct enic enic,
u16  vlanid 
)

Definition at line 134 of file enic_res.c.

void enic_free_vnic_resources ( struct enic enic)

Definition at line 181 of file enic_res.c.

void enic_get_res_counts ( struct enic enic)

Definition at line 195 of file enic_res.c.

int enic_get_vnic_config ( struct enic enic)

Definition at line 42 of file enic_res.c.

void enic_init_vnic_resources ( struct enic enic)

Definition at line 209 of file enic_res.c.

int enic_set_nic_cfg ( struct enic enic,
u8  rss_default_cpu,
u8  rss_hash_type,
u8  rss_hash_bits,
u8  rss_base_cpu,
u8  rss_enable,
u8  tso_ipid_split_en,
u8  ig_vlan_strip_en 
)

Definition at line 147 of file enic_res.c.

int enic_set_rss_cpu ( struct enic enic,
dma_addr_t  cpu_pa,
u64  len 
)

Definition at line 173 of file enic_res.c.

int enic_set_rss_key ( struct enic enic,
dma_addr_t  key_pa,
u64  len 
)

Definition at line 165 of file enic_res.c.