Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
fnic_res.c File Reference
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/pci.h>
#include "wq_enet_desc.h"
#include "rq_enet_desc.h"
#include "cq_enet_desc.h"
#include "vnic_resource.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 "fnic.h"

Go to the source code of this file.

Macros

#define GET_CONFIG(m)
 

Functions

int fnic_get_vnic_config (struct fnic *fnic)
 
int fnic_set_nic_config (struct fnic *fnic, 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)
 
void fnic_get_res_counts (struct fnic *fnic)
 
void fnic_free_vnic_resources (struct fnic *fnic)
 
int fnic_alloc_vnic_resources (struct fnic *fnic)
 

Macro Definition Documentation

#define GET_CONFIG (   m)
Value:
do { \
sizeof(c->m), &c->m); \
if (err) { \
shost_printk(KERN_ERR, fnic->lport->host, \
"Error getting %s, %d\n", #m, \
err); \
return err; \
} \
} while (0);

Function Documentation

int fnic_alloc_vnic_resources ( struct fnic fnic)

Definition at line 230 of file fnic_res.c.

void fnic_free_vnic_resources ( struct fnic fnic)

Definition at line 210 of file fnic_res.c.

void fnic_get_res_counts ( struct fnic fnic)

Definition at line 199 of file fnic_res.c.

int fnic_get_vnic_config ( struct fnic fnic)

Definition at line 34 of file fnic_res.c.

int fnic_set_nic_config ( struct fnic fnic,
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 180 of file fnic_res.c.