Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341730
b: refs/heads/master
c: 049b467
h: refs/heads/master
v: v3
  • Loading branch information
Barak Witkowski authored and David S. Miller committed Dec 3, 2012
1 parent 549288c commit e2d74f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: cd1dfce2ed571bc3d1962987b5c7d2d6e936bb27
refs/heads/master: 049b467d7a57e7b978ce063ee3639670f383fb5c
7 changes: 5 additions & 2 deletions trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2052,10 +2052,13 @@ static void bnx2x_dcbnl_set_pfc_cfg(struct net_device *netdev, int prio,
if (!bnx2x_dcbnl_set_valid(bp) || prio >= MAX_PFC_PRIORITIES)
return;

bp->dcbx_config_params.admin_pfc_bitmap |= ((setting ? 1 : 0) << prio);

if (setting)
if (setting) {
bp->dcbx_config_params.admin_pfc_bitmap |= (1 << prio);
bp->dcbx_config_params.admin_pfc_tx_enable = 1;
} else {
bp->dcbx_config_params.admin_pfc_bitmap &= ~(1 << prio);
}
}

static void bnx2x_dcbnl_get_pfc_cfg(struct net_device *netdev, int prio,
Expand Down

0 comments on commit e2d74f9

Please sign in to comment.