Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bnx2x_dcb.c File Reference
#include <linux/netdevice.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/rtnetlink.h>
#include <net/dcbnl.h>
#include "bnx2x.h"
#include "bnx2x_cmn.h"
#include "bnx2x_dcb.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DCBX_LOCAL_MIB_MAX_TRY_READ   (100)
 
#define LLDP_ADMIN_MIB_OFFSET(bp)
 
#define POWER_OF_2(x)   ((0 != x) && (0 == (x & (x-1))))
 

Functions

void bnx2x_dcbx_set_params (struct bnx2x *bp, u32 state)
 
void bnx2x_dcbx_set_state (struct bnx2x *bp, bool dcb_on, u32 dcbx_enabled)
 
void bnx2x_dcbx_init_params (struct bnx2x *bp)
 
void bnx2x_dcbx_init (struct bnx2x *bp, bool update_shmem)
 
void bnx2x_dcbx_pmf_update (struct bnx2x *bp)
 

Macro Definition Documentation

#define DCBX_LOCAL_MIB_MAX_TRY_READ   (100)

Definition at line 359 of file bnx2x_dcb.c.

#define LLDP_ADMIN_MIB_OFFSET (   bp)
Value:
(PORT_MAX*sizeof(struct lldp_params) + \
BP_PORT(bp)*sizeof(struct lldp_admin_mib))

Definition at line 770 of file bnx2x_dcb.c.

#define POWER_OF_2 (   x)    ((0 != x) && (0 == (x & (x-1))))

Definition at line 1178 of file bnx2x_dcb.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 20 of file bnx2x_dcb.c.

Function Documentation

void bnx2x_dcbx_init ( struct bnx2x bp,
bool  update_shmem 
)

bnx2x_dcbx_init - initialize dcbx protocol.

: driver handle

Definition at line 971 of file bnx2x_dcb.c.

void bnx2x_dcbx_init_params ( struct bnx2x bp)

Definition at line 917 of file bnx2x_dcb.c.

void bnx2x_dcbx_pmf_update ( struct bnx2x bp)

Definition at line 1838 of file bnx2x_dcb.c.

void bnx2x_dcbx_set_params ( struct bnx2x bp,
u32  state 
)

Definition at line 693 of file bnx2x_dcb.c.

void bnx2x_dcbx_set_state ( struct bnx2x bp,
bool  dcb_on,
u32  dcbx_enabled 
)

Definition at line 900 of file bnx2x_dcb.c.