Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225166
b: refs/heads/master
c: e4901dd
h: refs/heads/master
v: v3
  • Loading branch information
Vladislav Zolotarov authored and David S. Miller committed Dec 16, 2010
1 parent 3155ba7 commit e31fd23
Show file tree
Hide file tree
Showing 10 changed files with 2,051 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8307fa3e86a83924dd7f8310ce1e051f34986fe8
refs/heads/master: e4901dde12d92b70dd13fa8b3bbc9df7a6129aab
2 changes: 1 addition & 1 deletion trunk/drivers/net/bnx2x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

obj-$(CONFIG_BNX2X) += bnx2x.o

bnx2x-objs := bnx2x_main.o bnx2x_link.o bnx2x_cmn.o bnx2x_ethtool.o bnx2x_stats.o
bnx2x-objs := bnx2x_main.o bnx2x_link.o bnx2x_cmn.o bnx2x_ethtool.o bnx2x_stats.o bnx2x_dcb.o
15 changes: 15 additions & 0 deletions trunk/drivers/net/bnx2x/bnx2x.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#include "bnx2x_fw_defs.h"
#include "bnx2x_hsi.h"
#include "bnx2x_link.h"
#include "bnx2x_dcb.h"
#include "bnx2x_stats.h"

/* error/debug prints */
Expand Down Expand Up @@ -820,6 +821,8 @@ struct bnx2x_slowpath {

u32 wb_comp;
u32 wb_data[4];
/* pfc configuration for DCBX ramrod */
struct flow_control_configuration pfc_config;
};

#define bnx2x_sp(bp, var) (&bp->slowpath->var)
Expand Down Expand Up @@ -1180,6 +1183,18 @@ struct bnx2x {

char fw_ver[32];
const struct firmware *firmware;
/* LLDP params */
struct bnx2x_config_lldp_params lldp_config_params;

/* DCBX params */
struct bnx2x_config_dcbx_params dcbx_config_params;

struct bnx2x_dcbx_port_params dcbx_port_params;
int dcb_version;

/* DCBX Negotation results */
struct dcbx_features dcbx_local_feat;
u32 dcbx_error;
};

/**
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/bnx2x/bnx2x_cmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,8 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
}
}

bnx2x_dcbx_init(bp);

bp->state = BNX2X_STATE_OPENING_WAIT4_PORT;

rc = bnx2x_func_start(bp);
Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/net/bnx2x/bnx2x_cmn.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,13 @@ int bnx2x_func_start(struct bnx2x *bp);
*/
void bnx2x_ilt_set_info(struct bnx2x *bp);

/**
* Inintialize dcbx protocol
*
* @param bp
*/
void bnx2x_dcbx_init(struct bnx2x *bp);

/**
* Set power state to the requested value. Currently only D0 and
* D3hot are supported.
Expand Down
Loading

0 comments on commit e31fd23

Please sign in to comment.