diff options
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x_main.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index d3c4c1ed07ef..1bbcdb22d96f 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -1151,8 +1151,8 @@ static inline void bnx2x_init_sge_ring_bit_mask(struct bnx2x_fastpath *fp) | |||
1151 | memset(fp->sge_mask, 0xff, | 1151 | memset(fp->sge_mask, 0xff, |
1152 | (NUM_RX_SGE >> RX_SGE_MASK_ELEM_SHIFT)*sizeof(u64)); | 1152 | (NUM_RX_SGE >> RX_SGE_MASK_ELEM_SHIFT)*sizeof(u64)); |
1153 | 1153 | ||
1154 | /* Clear the two last indeces in the page to 1: | 1154 | /* Clear the two last indices in the page to 1: |
1155 | these are the indeces that correspond to the "next" element, | 1155 | these are the indices that correspond to the "next" element, |
1156 | hence will never be indicated and should be removed from | 1156 | hence will never be indicated and should be removed from |
1157 | the calculations. */ | 1157 | the calculations. */ |
1158 | bnx2x_clear_sge_mask_next_elems(fp); | 1158 | bnx2x_clear_sge_mask_next_elems(fp); |
@@ -2011,7 +2011,7 @@ static u8 bnx2x_link_test(struct bnx2x *bp) | |||
2011 | sum of vn_min_rates | 2011 | sum of vn_min_rates |
2012 | or | 2012 | or |
2013 | 0 - if all the min_rates are 0. | 2013 | 0 - if all the min_rates are 0. |
2014 | In the later case fainess algorithm should be deactivated. | 2014 | In the later case fairness algorithm should be deactivated. |
2015 | If not all min_rates are zero then those that are zeroes will | 2015 | If not all min_rates are zero then those that are zeroes will |
2016 | be set to 1. | 2016 | be set to 1. |
2017 | */ | 2017 | */ |
@@ -2134,7 +2134,7 @@ static void bnx2x_init_vn_minmax(struct bnx2x *bp, int func, | |||
2134 | FUNC_MF_CFG_MIN_BW_SHIFT) * 100; | 2134 | FUNC_MF_CFG_MIN_BW_SHIFT) * 100; |
2135 | /* If FAIRNESS is enabled (not all min rates are zeroes) and | 2135 | /* If FAIRNESS is enabled (not all min rates are zeroes) and |
2136 | if current min rate is zero - set it to 1. | 2136 | if current min rate is zero - set it to 1. |
2137 | This is a requirment of the algorithm. */ | 2137 | This is a requirement of the algorithm. */ |
2138 | if ((vn_min_rate == 0) && wsum) | 2138 | if ((vn_min_rate == 0) && wsum) |
2139 | vn_min_rate = DEF_MIN_RATE; | 2139 | vn_min_rate = DEF_MIN_RATE; |
2140 | vn_max_rate = ((vn_cfg & FUNC_MF_CFG_MAX_BW_MASK) >> | 2140 | vn_max_rate = ((vn_cfg & FUNC_MF_CFG_MAX_BW_MASK) >> |
@@ -6562,7 +6562,7 @@ static void bnx2x_reset_port(struct bnx2x *bp) | |||
6562 | val = REG_RD(bp, BRB1_REG_PORT_NUM_OCC_BLOCKS_0 + port*4); | 6562 | val = REG_RD(bp, BRB1_REG_PORT_NUM_OCC_BLOCKS_0 + port*4); |
6563 | if (val) | 6563 | if (val) |
6564 | DP(NETIF_MSG_IFDOWN, | 6564 | DP(NETIF_MSG_IFDOWN, |
6565 | "BRB1 is not empty %d blooks are occupied\n", val); | 6565 | "BRB1 is not empty %d blocks are occupied\n", val); |
6566 | 6566 | ||
6567 | /* TODO: Close Doorbell port? */ | 6567 | /* TODO: Close Doorbell port? */ |
6568 | } | 6568 | } |
@@ -6602,7 +6602,7 @@ static void bnx2x_reset_chip(struct bnx2x *bp, u32 reset_code) | |||
6602 | } | 6602 | } |
6603 | } | 6603 | } |
6604 | 6604 | ||
6605 | /* msut be called with rtnl_lock */ | 6605 | /* must be called with rtnl_lock */ |
6606 | static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode) | 6606 | static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode) |
6607 | { | 6607 | { |
6608 | int port = BP_PORT(bp); | 6608 | int port = BP_PORT(bp); |
@@ -7455,7 +7455,7 @@ static int __devinit bnx2x_get_hwinfo(struct bnx2x *bp) | |||
7455 | 7455 | ||
7456 | if (BP_NOMCP(bp)) { | 7456 | if (BP_NOMCP(bp)) { |
7457 | /* only supposed to happen on emulation/FPGA */ | 7457 | /* only supposed to happen on emulation/FPGA */ |
7458 | BNX2X_ERR("warning rendom MAC workaround active\n"); | 7458 | BNX2X_ERR("warning random MAC workaround active\n"); |
7459 | random_ether_addr(bp->dev->dev_addr); | 7459 | random_ether_addr(bp->dev->dev_addr); |
7460 | memcpy(bp->dev->perm_addr, bp->dev->dev_addr, ETH_ALEN); | 7460 | memcpy(bp->dev->perm_addr, bp->dev->dev_addr, ETH_ALEN); |
7461 | } | 7461 | } |
@@ -8907,7 +8907,7 @@ static void bnx2x_self_test(struct net_device *dev, | |||
8907 | if (!netif_running(dev)) | 8907 | if (!netif_running(dev)) |
8908 | return; | 8908 | return; |
8909 | 8909 | ||
8910 | /* offline tests are not suppoerted in MF mode */ | 8910 | /* offline tests are not supported in MF mode */ |
8911 | if (IS_E1HMF(bp)) | 8911 | if (IS_E1HMF(bp)) |
8912 | etest->flags &= ~ETH_TEST_FL_OFFLINE; | 8912 | etest->flags &= ~ETH_TEST_FL_OFFLINE; |
8913 | 8913 | ||
@@ -9216,7 +9216,7 @@ static int bnx2x_set_power_state(struct bnx2x *bp, pci_power_t state) | |||
9216 | PCI_PM_CTRL_PME_STATUS)); | 9216 | PCI_PM_CTRL_PME_STATUS)); |
9217 | 9217 | ||
9218 | if (pmcsr & PCI_PM_CTRL_STATE_MASK) | 9218 | if (pmcsr & PCI_PM_CTRL_STATE_MASK) |
9219 | /* delay required during transition out of D3hot */ | 9219 | /* delay required during transition out of D3hot */ |
9220 | msleep(20); | 9220 | msleep(20); |
9221 | break; | 9221 | break; |
9222 | 9222 | ||
@@ -9289,7 +9289,7 @@ poll_panic: | |||
9289 | 9289 | ||
9290 | 9290 | ||
9291 | /* we split the first BD into headers and data BDs | 9291 | /* we split the first BD into headers and data BDs |
9292 | * to ease the pain of our fellow micocode engineers | 9292 | * to ease the pain of our fellow microcode engineers |
9293 | * we use one mapping for both BDs | 9293 | * we use one mapping for both BDs |
9294 | * So far this has only been observed to happen | 9294 | * So far this has only been observed to happen |
9295 | * in Other Operating Systems(TM) | 9295 | * in Other Operating Systems(TM) |
@@ -9396,7 +9396,7 @@ static int bnx2x_pkt_req_lin(struct bnx2x *bp, struct sk_buff *skb, | |||
9396 | /* Check if LSO packet needs to be copied: | 9396 | /* Check if LSO packet needs to be copied: |
9397 | 3 = 1 (for headers BD) + 2 (for PBD and last BD) */ | 9397 | 3 = 1 (for headers BD) + 2 (for PBD and last BD) */ |
9398 | int wnd_size = MAX_FETCH_BD - 3; | 9398 | int wnd_size = MAX_FETCH_BD - 3; |
9399 | /* Number of widnows to check */ | 9399 | /* Number of windows to check */ |
9400 | int num_wnds = skb_shinfo(skb)->nr_frags - wnd_size; | 9400 | int num_wnds = skb_shinfo(skb)->nr_frags - wnd_size; |
9401 | int wnd_idx = 0; | 9401 | int wnd_idx = 0; |
9402 | int frag_idx = 0; | 9402 | int frag_idx = 0; |
@@ -9498,7 +9498,7 @@ static int bnx2x_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
9498 | skb->ip_summed, skb->protocol, ipv6_hdr(skb)->nexthdr, | 9498 | skb->ip_summed, skb->protocol, ipv6_hdr(skb)->nexthdr, |
9499 | ip_hdr(skb)->protocol, skb_shinfo(skb)->gso_type, xmit_type); | 9499 | ip_hdr(skb)->protocol, skb_shinfo(skb)->gso_type, xmit_type); |
9500 | 9500 | ||
9501 | /* First, check if we need to linearaize the skb | 9501 | /* First, check if we need to linearize the skb |
9502 | (due to FW restrictions) */ | 9502 | (due to FW restrictions) */ |
9503 | if (bnx2x_pkt_req_lin(bp, skb, xmit_type)) { | 9503 | if (bnx2x_pkt_req_lin(bp, skb, xmit_type)) { |
9504 | /* Statistics of linearization */ | 9504 | /* Statistics of linearization */ |