Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273532
b: refs/heads/master
c: 8599e25
h: refs/heads/master
v: v3
  • Loading branch information
John Fastabend authored and Jeff Kirsher committed Nov 2, 2011
1 parent 478b4af commit d41f2d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 331bcf45feb76d507a769d9d3b26ff5626804117
refs/heads/master: 8599e251b3dd18c7bcb342d5b4acecc420f43606
10 changes: 6 additions & 4 deletions trunk/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,12 @@ static int ixgbe_dcbnl_ieee_getets(struct net_device *dev,
struct ixgbe_adapter *adapter = netdev_priv(dev);
struct ieee_ets *my_ets = adapter->ixgbe_ieee_ets;

ets->ets_cap = adapter->dcb_cfg.num_tcs.pg_tcs;

/* No IEEE PFC settings available */
if (!my_ets)
return -EINVAL;
return 0;

ets->ets_cap = adapter->dcb_cfg.num_tcs.pg_tcs;
ets->cbs = my_ets->cbs;
memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw));
memcpy(ets->tc_rx_bw, my_ets->tc_rx_bw, sizeof(ets->tc_rx_bw));
Expand Down Expand Up @@ -621,11 +622,12 @@ static int ixgbe_dcbnl_ieee_getpfc(struct net_device *dev,
struct ieee_pfc *my_pfc = adapter->ixgbe_ieee_pfc;
int i;

pfc->pfc_cap = adapter->dcb_cfg.num_tcs.pfc_tcs;

/* No IEEE PFC settings available */
if (!my_pfc)
return -EINVAL;
return 0;

pfc->pfc_cap = adapter->dcb_cfg.num_tcs.pfc_tcs;
pfc->pfc_en = my_pfc->pfc_en;
pfc->mbc = my_pfc->mbc;
pfc->delay = my_pfc->delay;
Expand Down

0 comments on commit d41f2d5

Please sign in to comment.