diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_82599.c | 2 | ||||
-rw-r--r-- | drivers/net/ixgbe/ixgbe_common.h | 19 | ||||
-rw-r--r-- | drivers/net/ixgbe/ixgbe_dcb_nl.c | 2 | ||||
-rw-r--r-- | drivers/net/ixgbe/ixgbe_ethtool.c | 40 | ||||
-rw-r--r-- | drivers/net/ixgbe/ixgbe_fcoe.c | 26 | ||||
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 79 | ||||
-rw-r--r-- | drivers/net/ixgbe/ixgbe_sriov.c | 7 |
7 files changed, 89 insertions, 86 deletions
diff --git a/drivers/net/ixgbe/ixgbe_82599.c b/drivers/net/ixgbe/ixgbe_82599.c index 0ee175a289ee..3e06a61da921 100644 --- a/drivers/net/ixgbe/ixgbe_82599.c +++ b/drivers/net/ixgbe/ixgbe_82599.c | |||
@@ -715,7 +715,7 @@ static s32 ixgbe_setup_mac_link_smartspeed(struct ixgbe_hw *hw, | |||
715 | 715 | ||
716 | out: | 716 | out: |
717 | if (link_up && (link_speed == IXGBE_LINK_SPEED_1GB_FULL)) | 717 | if (link_up && (link_speed == IXGBE_LINK_SPEED_1GB_FULL)) |
718 | e_info("Smartspeed has downgraded the link speed from " | 718 | e_info(hw, "Smartspeed has downgraded the link speed from " |
719 | "the maximum advertised\n"); | 719 | "the maximum advertised\n"); |
720 | return status; | 720 | return status; |
721 | } | 721 | } |
diff --git a/drivers/net/ixgbe/ixgbe_common.h b/drivers/net/ixgbe/ixgbe_common.h index d5d3aae8524b..5cf15aa11cac 100644 --- a/drivers/net/ixgbe/ixgbe_common.h +++ b/drivers/net/ixgbe/ixgbe_common.h | |||
@@ -108,16 +108,6 @@ s32 ixgbe_blink_led_stop_generic(struct ixgbe_hw *hw, u32 index); | |||
108 | extern struct net_device *ixgbe_get_hw_dev(struct ixgbe_hw *hw); | 108 | extern struct net_device *ixgbe_get_hw_dev(struct ixgbe_hw *hw); |
109 | #define hw_dbg(hw, format, arg...) \ | 109 | #define hw_dbg(hw, format, arg...) \ |
110 | netdev_dbg(ixgbe_get_hw_dev(hw), format, ##arg) | 110 | netdev_dbg(ixgbe_get_hw_dev(hw), format, ##arg) |
111 | #define e_err(format, arg...) \ | ||
112 | netdev_err(adapter->netdev, format, ## arg) | ||
113 | #define e_info(format, arg...) \ | ||
114 | netdev_info(adapter->netdev, format, ## arg) | ||
115 | #define e_warn(format, arg...) \ | ||
116 | netdev_warn(adapter->netdev, format, ## arg) | ||
117 | #define e_notice(format, arg...) \ | ||
118 | netdev_notice(adapter->netdev, format, ## arg) | ||
119 | #define e_crit(format, arg...) \ | ||
120 | netdev_crit(adapter->netdev, format, ## arg) | ||
121 | #define e_dev_info(format, arg...) \ | 111 | #define e_dev_info(format, arg...) \ |
122 | dev_info(&adapter->pdev->dev, format, ## arg) | 112 | dev_info(&adapter->pdev->dev, format, ## arg) |
123 | #define e_dev_warn(format, arg...) \ | 113 | #define e_dev_warn(format, arg...) \ |
@@ -126,5 +116,12 @@ extern struct net_device *ixgbe_get_hw_dev(struct ixgbe_hw *hw); | |||
126 | dev_err(&adapter->pdev->dev, format, ## arg) | 116 | dev_err(&adapter->pdev->dev, format, ## arg) |
127 | #define e_dev_notice(format, arg...) \ | 117 | #define e_dev_notice(format, arg...) \ |
128 | dev_notice(&adapter->pdev->dev, format, ## arg) | 118 | dev_notice(&adapter->pdev->dev, format, ## arg) |
129 | 119 | #define e_info(msglvl, format, arg...) \ | |
120 | netif_info(adapter, msglvl, adapter->netdev, format, ## arg) | ||
121 | #define e_err(msglvl, format, arg...) \ | ||
122 | netif_err(adapter, msglvl, adapter->netdev, format, ## arg) | ||
123 | #define e_warn(msglvl, format, arg...) \ | ||
124 | netif_warn(adapter, msglvl, adapter->netdev, format, ## arg) | ||
125 | #define e_crit(msglvl, format, arg...) \ | ||
126 | netif_crit(adapter, msglvl, adapter->netdev, format, ## arg) | ||
130 | #endif /* IXGBE_COMMON */ | 127 | #endif /* IXGBE_COMMON */ |
diff --git a/drivers/net/ixgbe/ixgbe_dcb_nl.c b/drivers/net/ixgbe/ixgbe_dcb_nl.c index 657623589d53..b53b465e24af 100644 --- a/drivers/net/ixgbe/ixgbe_dcb_nl.c +++ b/drivers/net/ixgbe/ixgbe_dcb_nl.c | |||
@@ -121,7 +121,7 @@ static u8 ixgbe_dcbnl_set_state(struct net_device *netdev, u8 state) | |||
121 | goto out; | 121 | goto out; |
122 | 122 | ||
123 | if (!(adapter->flags & IXGBE_FLAG_MSIX_ENABLED)) { | 123 | if (!(adapter->flags & IXGBE_FLAG_MSIX_ENABLED)) { |
124 | e_err("Enable failed, needs MSI-X\n"); | 124 | e_err(drv, "Enable failed, needs MSI-X\n"); |
125 | err = 1; | 125 | err = 1; |
126 | goto out; | 126 | goto out; |
127 | } | 127 | } |
diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c index 5275e9c95039..b35ef36741ef 100644 --- a/drivers/net/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ixgbe/ixgbe_ethtool.c | |||
@@ -301,7 +301,7 @@ static int ixgbe_set_settings(struct net_device *netdev, | |||
301 | hw->mac.autotry_restart = true; | 301 | hw->mac.autotry_restart = true; |
302 | err = hw->mac.ops.setup_link(hw, advertised, true, true); | 302 | err = hw->mac.ops.setup_link(hw, advertised, true, true); |
303 | if (err) { | 303 | if (err) { |
304 | e_info("setup link failed with code %d\n", err); | 304 | e_info(probe, "setup link failed with code %d\n", err); |
305 | hw->mac.ops.setup_link(hw, old, true, true); | 305 | hw->mac.ops.setup_link(hw, old, true, true); |
306 | } | 306 | } |
307 | } else { | 307 | } else { |
@@ -1194,8 +1194,8 @@ static struct ixgbe_reg_test reg_test_82598[] = { | |||
1194 | writel((_test[pat] & W), (adapter->hw.hw_addr + R)); \ | 1194 | writel((_test[pat] & W), (adapter->hw.hw_addr + R)); \ |
1195 | val = readl(adapter->hw.hw_addr + R); \ | 1195 | val = readl(adapter->hw.hw_addr + R); \ |
1196 | if (val != (_test[pat] & W & M)) { \ | 1196 | if (val != (_test[pat] & W & M)) { \ |
1197 | e_err("pattern test reg %04X failed: got " \ | 1197 | e_err(drv, "pattern test reg %04X failed: got " \ |
1198 | "0x%08X expected 0x%08X\n", \ | 1198 | "0x%08X expected 0x%08X\n", \ |
1199 | R, val, (_test[pat] & W & M)); \ | 1199 | R, val, (_test[pat] & W & M)); \ |
1200 | *data = R; \ | 1200 | *data = R; \ |
1201 | writel(before, adapter->hw.hw_addr + R); \ | 1201 | writel(before, adapter->hw.hw_addr + R); \ |
@@ -1212,8 +1212,8 @@ static struct ixgbe_reg_test reg_test_82598[] = { | |||
1212 | writel((W & M), (adapter->hw.hw_addr + R)); \ | 1212 | writel((W & M), (adapter->hw.hw_addr + R)); \ |
1213 | val = readl(adapter->hw.hw_addr + R); \ | 1213 | val = readl(adapter->hw.hw_addr + R); \ |
1214 | if ((W & M) != (val & M)) { \ | 1214 | if ((W & M) != (val & M)) { \ |
1215 | e_err("set/check reg %04X test failed: got 0x%08X " \ | 1215 | e_err(drv, "set/check reg %04X test failed: got 0x%08X " \ |
1216 | "expected 0x%08X\n", R, (val & M), (W & M)); \ | 1216 | "expected 0x%08X\n", R, (val & M), (W & M)); \ |
1217 | *data = R; \ | 1217 | *data = R; \ |
1218 | writel(before, (adapter->hw.hw_addr + R)); \ | 1218 | writel(before, (adapter->hw.hw_addr + R)); \ |
1219 | return 1; \ | 1219 | return 1; \ |
@@ -1246,8 +1246,8 @@ static int ixgbe_reg_test(struct ixgbe_adapter *adapter, u64 *data) | |||
1246 | IXGBE_WRITE_REG(&adapter->hw, IXGBE_STATUS, toggle); | 1246 | IXGBE_WRITE_REG(&adapter->hw, IXGBE_STATUS, toggle); |
1247 | after = IXGBE_READ_REG(&adapter->hw, IXGBE_STATUS) & toggle; | 1247 | after = IXGBE_READ_REG(&adapter->hw, IXGBE_STATUS) & toggle; |
1248 | if (value != after) { | 1248 | if (value != after) { |
1249 | e_err("failed STATUS register test got: 0x%08X expected: " | 1249 | e_err(drv, "failed STATUS register test got: 0x%08X " |
1250 | "0x%08X\n", after, value); | 1250 | "expected: 0x%08X\n", after, value); |
1251 | *data = 1; | 1251 | *data = 1; |
1252 | return 1; | 1252 | return 1; |
1253 | } | 1253 | } |
@@ -1347,8 +1347,8 @@ static int ixgbe_intr_test(struct ixgbe_adapter *adapter, u64 *data) | |||
1347 | *data = 1; | 1347 | *data = 1; |
1348 | return -1; | 1348 | return -1; |
1349 | } | 1349 | } |
1350 | e_info("testing %s interrupt\n", shared_int ? | 1350 | e_info(hw, "testing %s interrupt\n", shared_int ? |
1351 | "shared" : "unshared"); | 1351 | "shared" : "unshared"); |
1352 | 1352 | ||
1353 | /* Disable all the interrupts */ | 1353 | /* Disable all the interrupts */ |
1354 | IXGBE_WRITE_REG(&adapter->hw, IXGBE_EIMC, 0xFFFFFFFF); | 1354 | IXGBE_WRITE_REG(&adapter->hw, IXGBE_EIMC, 0xFFFFFFFF); |
@@ -1853,7 +1853,7 @@ static void ixgbe_diag_test(struct net_device *netdev, | |||
1853 | if (eth_test->flags == ETH_TEST_FL_OFFLINE) { | 1853 | if (eth_test->flags == ETH_TEST_FL_OFFLINE) { |
1854 | /* Offline tests */ | 1854 | /* Offline tests */ |
1855 | 1855 | ||
1856 | e_info("offline testing starting\n"); | 1856 | e_info(hw, "offline testing starting\n"); |
1857 | 1857 | ||
1858 | /* Link test performed before hardware reset so autoneg doesn't | 1858 | /* Link test performed before hardware reset so autoneg doesn't |
1859 | * interfere with test result */ | 1859 | * interfere with test result */ |
@@ -1886,17 +1886,17 @@ static void ixgbe_diag_test(struct net_device *netdev, | |||
1886 | else | 1886 | else |
1887 | ixgbe_reset(adapter); | 1887 | ixgbe_reset(adapter); |
1888 | 1888 | ||
1889 | e_info("register testing starting\n"); | 1889 | e_info(hw, "register testing starting\n"); |
1890 | if (ixgbe_reg_test(adapter, &data[0])) | 1890 | if (ixgbe_reg_test(adapter, &data[0])) |
1891 | eth_test->flags |= ETH_TEST_FL_FAILED; | 1891 | eth_test->flags |= ETH_TEST_FL_FAILED; |
1892 | 1892 | ||
1893 | ixgbe_reset(adapter); | 1893 | ixgbe_reset(adapter); |
1894 | e_info("eeprom testing starting\n"); | 1894 | e_info(hw, "eeprom testing starting\n"); |
1895 | if (ixgbe_eeprom_test(adapter, &data[1])) | 1895 | if (ixgbe_eeprom_test(adapter, &data[1])) |
1896 | eth_test->flags |= ETH_TEST_FL_FAILED; | 1896 | eth_test->flags |= ETH_TEST_FL_FAILED; |
1897 | 1897 | ||
1898 | ixgbe_reset(adapter); | 1898 | ixgbe_reset(adapter); |
1899 | e_info("interrupt testing starting\n"); | 1899 | e_info(hw, "interrupt testing starting\n"); |
1900 | if (ixgbe_intr_test(adapter, &data[2])) | 1900 | if (ixgbe_intr_test(adapter, &data[2])) |
1901 | eth_test->flags |= ETH_TEST_FL_FAILED; | 1901 | eth_test->flags |= ETH_TEST_FL_FAILED; |
1902 | 1902 | ||
@@ -1904,13 +1904,14 @@ static void ixgbe_diag_test(struct net_device *netdev, | |||
1904 | * loopback diagnostic. */ | 1904 | * loopback diagnostic. */ |
1905 | if (adapter->flags & (IXGBE_FLAG_SRIOV_ENABLED | | 1905 | if (adapter->flags & (IXGBE_FLAG_SRIOV_ENABLED | |
1906 | IXGBE_FLAG_VMDQ_ENABLED)) { | 1906 | IXGBE_FLAG_VMDQ_ENABLED)) { |
1907 | e_info("Skip MAC loopback diagnostic in VT mode\n"); | 1907 | e_info(hw, "Skip MAC loopback diagnostic in VT " |
1908 | "mode\n"); | ||
1908 | data[3] = 0; | 1909 | data[3] = 0; |
1909 | goto skip_loopback; | 1910 | goto skip_loopback; |
1910 | } | 1911 | } |
1911 | 1912 | ||
1912 | ixgbe_reset(adapter); | 1913 | ixgbe_reset(adapter); |
1913 | e_info("loopback testing starting\n"); | 1914 | e_info(hw, "loopback testing starting\n"); |
1914 | if (ixgbe_loopback_test(adapter, &data[3])) | 1915 | if (ixgbe_loopback_test(adapter, &data[3])) |
1915 | eth_test->flags |= ETH_TEST_FL_FAILED; | 1916 | eth_test->flags |= ETH_TEST_FL_FAILED; |
1916 | 1917 | ||
@@ -1921,7 +1922,7 @@ skip_loopback: | |||
1921 | if (if_running) | 1922 | if (if_running) |
1922 | dev_open(netdev); | 1923 | dev_open(netdev); |
1923 | } else { | 1924 | } else { |
1924 | e_info("online testing starting\n"); | 1925 | e_info(hw, "online testing starting\n"); |
1925 | /* Online tests */ | 1926 | /* Online tests */ |
1926 | if (ixgbe_link_test(adapter, &data[4])) | 1927 | if (ixgbe_link_test(adapter, &data[4])) |
1927 | eth_test->flags |= ETH_TEST_FL_FAILED; | 1928 | eth_test->flags |= ETH_TEST_FL_FAILED; |
@@ -2139,7 +2140,8 @@ static int ixgbe_set_coalesce(struct net_device *netdev, | |||
2139 | adapter->flags2 &= ~IXGBE_FLAG2_RSC_ENABLED; | 2140 | adapter->flags2 &= ~IXGBE_FLAG2_RSC_ENABLED; |
2140 | if (netdev->features & NETIF_F_LRO) { | 2141 | if (netdev->features & NETIF_F_LRO) { |
2141 | netdev->features &= ~NETIF_F_LRO; | 2142 | netdev->features &= ~NETIF_F_LRO; |
2142 | e_info("rx-usecs set to 0, disabling RSC\n"); | 2143 | e_info(probe, "rx-usecs set to 0, " |
2144 | "disabling RSC\n"); | ||
2143 | } | 2145 | } |
2144 | need_reset = true; | 2146 | need_reset = true; |
2145 | } | 2147 | } |
@@ -2239,8 +2241,8 @@ static int ixgbe_set_flags(struct net_device *netdev, u32 data) | |||
2239 | } else if (!adapter->rx_itr_setting) { | 2241 | } else if (!adapter->rx_itr_setting) { |
2240 | netdev->features &= ~NETIF_F_LRO; | 2242 | netdev->features &= ~NETIF_F_LRO; |
2241 | if (data & ETH_FLAG_LRO) | 2243 | if (data & ETH_FLAG_LRO) |
2242 | e_info("rx-usecs set to 0, " | 2244 | e_info(probe, "rx-usecs set to 0, " |
2243 | "LRO/RSC cannot be enabled.\n"); | 2245 | "LRO/RSC cannot be enabled.\n"); |
2244 | } | 2246 | } |
2245 | } | 2247 | } |
2246 | 2248 | ||
diff --git a/drivers/net/ixgbe/ixgbe_fcoe.c b/drivers/net/ixgbe/ixgbe_fcoe.c index 84e1194e0833..f6ef4cd0a12a 100644 --- a/drivers/net/ixgbe/ixgbe_fcoe.c +++ b/drivers/net/ixgbe/ixgbe_fcoe.c | |||
@@ -164,20 +164,20 @@ int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid, | |||
164 | 164 | ||
165 | adapter = netdev_priv(netdev); | 165 | adapter = netdev_priv(netdev); |
166 | if (xid >= IXGBE_FCOE_DDP_MAX) { | 166 | if (xid >= IXGBE_FCOE_DDP_MAX) { |
167 | e_warn("xid=0x%x out-of-range\n", xid); | 167 | e_warn(drv, "xid=0x%x out-of-range\n", xid); |
168 | return 0; | 168 | return 0; |
169 | } | 169 | } |
170 | 170 | ||
171 | fcoe = &adapter->fcoe; | 171 | fcoe = &adapter->fcoe; |
172 | if (!fcoe->pool) { | 172 | if (!fcoe->pool) { |
173 | e_warn("xid=0x%x no ddp pool for fcoe\n", xid); | 173 | e_warn(drv, "xid=0x%x no ddp pool for fcoe\n", xid); |
174 | return 0; | 174 | return 0; |
175 | } | 175 | } |
176 | 176 | ||
177 | ddp = &fcoe->ddp[xid]; | 177 | ddp = &fcoe->ddp[xid]; |
178 | if (ddp->sgl) { | 178 | if (ddp->sgl) { |
179 | e_err("xid 0x%x w/ non-null sgl=%p nents=%d\n", | 179 | e_err(drv, "xid 0x%x w/ non-null sgl=%p nents=%d\n", |
180 | xid, ddp->sgl, ddp->sgc); | 180 | xid, ddp->sgl, ddp->sgc); |
181 | return 0; | 181 | return 0; |
182 | } | 182 | } |
183 | ixgbe_fcoe_clear_ddp(ddp); | 183 | ixgbe_fcoe_clear_ddp(ddp); |
@@ -185,14 +185,14 @@ int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid, | |||
185 | /* setup dma from scsi command sgl */ | 185 | /* setup dma from scsi command sgl */ |
186 | dmacount = pci_map_sg(adapter->pdev, sgl, sgc, DMA_FROM_DEVICE); | 186 | dmacount = pci_map_sg(adapter->pdev, sgl, sgc, DMA_FROM_DEVICE); |
187 | if (dmacount == 0) { | 187 | if (dmacount == 0) { |
188 | e_err("xid 0x%x DMA map error\n", xid); | 188 | e_err(drv, "xid 0x%x DMA map error\n", xid); |
189 | return 0; | 189 | return 0; |
190 | } | 190 | } |
191 | 191 | ||
192 | /* alloc the udl from our ddp pool */ | 192 | /* alloc the udl from our ddp pool */ |
193 | ddp->udl = pci_pool_alloc(fcoe->pool, GFP_KERNEL, &ddp->udp); | 193 | ddp->udl = pci_pool_alloc(fcoe->pool, GFP_KERNEL, &ddp->udp); |
194 | if (!ddp->udl) { | 194 | if (!ddp->udl) { |
195 | e_err("failed allocated ddp context\n"); | 195 | e_err(drv, "failed allocated ddp context\n"); |
196 | goto out_noddp_unmap; | 196 | goto out_noddp_unmap; |
197 | } | 197 | } |
198 | ddp->sgl = sgl; | 198 | ddp->sgl = sgl; |
@@ -205,7 +205,7 @@ int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid, | |||
205 | while (len) { | 205 | while (len) { |
206 | /* max number of buffers allowed in one DDP context */ | 206 | /* max number of buffers allowed in one DDP context */ |
207 | if (j >= IXGBE_BUFFCNT_MAX) { | 207 | if (j >= IXGBE_BUFFCNT_MAX) { |
208 | e_err("xid=%x:%d,%d,%d:addr=%llx " | 208 | e_err(drv, "xid=%x:%d,%d,%d:addr=%llx " |
209 | "not enough descriptors\n", | 209 | "not enough descriptors\n", |
210 | xid, i, j, dmacount, (u64)addr); | 210 | xid, i, j, dmacount, (u64)addr); |
211 | goto out_noddp_free; | 211 | goto out_noddp_free; |
@@ -385,7 +385,7 @@ int ixgbe_fso(struct ixgbe_adapter *adapter, | |||
385 | struct fc_frame_header *fh; | 385 | struct fc_frame_header *fh; |
386 | 386 | ||
387 | if (skb_is_gso(skb) && (skb_shinfo(skb)->gso_type != SKB_GSO_FCOE)) { | 387 | if (skb_is_gso(skb) && (skb_shinfo(skb)->gso_type != SKB_GSO_FCOE)) { |
388 | e_err("Wrong gso type %d:expecting SKB_GSO_FCOE\n", | 388 | e_err(drv, "Wrong gso type %d:expecting SKB_GSO_FCOE\n", |
389 | skb_shinfo(skb)->gso_type); | 389 | skb_shinfo(skb)->gso_type); |
390 | return -EINVAL; | 390 | return -EINVAL; |
391 | } | 391 | } |
@@ -412,7 +412,7 @@ int ixgbe_fso(struct ixgbe_adapter *adapter, | |||
412 | fcoe_sof_eof |= IXGBE_ADVTXD_FCOEF_SOF; | 412 | fcoe_sof_eof |= IXGBE_ADVTXD_FCOEF_SOF; |
413 | break; | 413 | break; |
414 | default: | 414 | default: |
415 | e_warn("unknown sof = 0x%x\n", sof); | 415 | e_warn(drv, "unknown sof = 0x%x\n", sof); |
416 | return -EINVAL; | 416 | return -EINVAL; |
417 | } | 417 | } |
418 | 418 | ||
@@ -439,7 +439,7 @@ int ixgbe_fso(struct ixgbe_adapter *adapter, | |||
439 | fcoe_sof_eof |= IXGBE_ADVTXD_FCOEF_EOF_A; | 439 | fcoe_sof_eof |= IXGBE_ADVTXD_FCOEF_EOF_A; |
440 | break; | 440 | break; |
441 | default: | 441 | default: |
442 | e_warn("unknown eof = 0x%x\n", eof); | 442 | e_warn(drv, "unknown eof = 0x%x\n", eof); |
443 | return -EINVAL; | 443 | return -EINVAL; |
444 | } | 444 | } |
445 | 445 | ||
@@ -515,7 +515,7 @@ void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter) | |||
515 | adapter->pdev, IXGBE_FCPTR_MAX, | 515 | adapter->pdev, IXGBE_FCPTR_MAX, |
516 | IXGBE_FCPTR_ALIGN, PAGE_SIZE); | 516 | IXGBE_FCPTR_ALIGN, PAGE_SIZE); |
517 | if (!fcoe->pool) | 517 | if (!fcoe->pool) |
518 | e_err("failed to allocated FCoE DDP pool\n"); | 518 | e_err(drv, "failed to allocated FCoE DDP pool\n"); |
519 | 519 | ||
520 | spin_lock_init(&fcoe->lock); | 520 | spin_lock_init(&fcoe->lock); |
521 | } | 521 | } |
@@ -611,7 +611,7 @@ int ixgbe_fcoe_enable(struct net_device *netdev) | |||
611 | if (adapter->flags & IXGBE_FLAG_FCOE_ENABLED) | 611 | if (adapter->flags & IXGBE_FLAG_FCOE_ENABLED) |
612 | goto out_enable; | 612 | goto out_enable; |
613 | 613 | ||
614 | e_info("Enabling FCoE offload features.\n"); | 614 | e_info(drv, "Enabling FCoE offload features.\n"); |
615 | if (netif_running(netdev)) | 615 | if (netif_running(netdev)) |
616 | netdev->netdev_ops->ndo_stop(netdev); | 616 | netdev->netdev_ops->ndo_stop(netdev); |
617 | 617 | ||
@@ -657,7 +657,7 @@ int ixgbe_fcoe_disable(struct net_device *netdev) | |||
657 | if (!(adapter->flags & IXGBE_FLAG_FCOE_ENABLED)) | 657 | if (!(adapter->flags & IXGBE_FLAG_FCOE_ENABLED)) |
658 | goto out_disable; | 658 | goto out_disable; |
659 | 659 | ||
660 | e_info("Disabling FCoE offload features.\n"); | 660 | e_info(drv, "Disabling FCoE offload features.\n"); |
661 | if (netif_running(netdev)) | 661 | if (netif_running(netdev)) |
662 | netdev->netdev_ops->ndo_stop(netdev); | 662 | netdev->netdev_ops->ndo_stop(netdev); |
663 | 663 | ||
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index ebc4b04fdef2..55099a50cca4 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -696,7 +696,7 @@ static inline bool ixgbe_check_tx_hang(struct ixgbe_adapter *adapter, | |||
696 | /* detected Tx unit hang */ | 696 | /* detected Tx unit hang */ |
697 | union ixgbe_adv_tx_desc *tx_desc; | 697 | union ixgbe_adv_tx_desc *tx_desc; |
698 | tx_desc = IXGBE_TX_DESC_ADV(*tx_ring, eop); | 698 | tx_desc = IXGBE_TX_DESC_ADV(*tx_ring, eop); |
699 | e_err("Detected Tx Unit Hang\n" | 699 | e_err(drv, "Detected Tx Unit Hang\n" |
700 | " Tx Queue <%d>\n" | 700 | " Tx Queue <%d>\n" |
701 | " TDH, TDT <%x>, <%x>\n" | 701 | " TDH, TDT <%x>, <%x>\n" |
702 | " next_to_use <%x>\n" | 702 | " next_to_use <%x>\n" |
@@ -812,8 +812,8 @@ static bool ixgbe_clean_tx_irq(struct ixgbe_q_vector *q_vector, | |||
812 | if (adapter->detect_tx_hung) { | 812 | if (adapter->detect_tx_hung) { |
813 | if (ixgbe_check_tx_hang(adapter, tx_ring, i)) { | 813 | if (ixgbe_check_tx_hang(adapter, tx_ring, i)) { |
814 | /* schedule immediate reset if we believe we hung */ | 814 | /* schedule immediate reset if we believe we hung */ |
815 | e_info("tx hang %d detected, resetting adapter\n", | 815 | e_info(probe, "tx hang %d detected, resetting " |
816 | adapter->tx_timeout_count + 1); | 816 | "adapter\n", adapter->tx_timeout_count + 1); |
817 | ixgbe_tx_timeout(adapter->netdev); | 817 | ixgbe_tx_timeout(adapter->netdev); |
818 | } | 818 | } |
819 | } | 819 | } |
@@ -1652,8 +1652,8 @@ static void ixgbe_check_overtemp_task(struct work_struct *work) | |||
1652 | return; | 1652 | return; |
1653 | break; | 1653 | break; |
1654 | } | 1654 | } |
1655 | e_crit("Network adapter has been stopped because it " | 1655 | e_crit(drv, "Network adapter has been stopped because it has " |
1656 | "has over heated. Restart the computer. If the problem " | 1656 | "over heated. Restart the computer. If the problem " |
1657 | "persists, power off the system and replace the " | 1657 | "persists, power off the system and replace the " |
1658 | "adapter\n"); | 1658 | "adapter\n"); |
1659 | /* write to clear the interrupt */ | 1659 | /* write to clear the interrupt */ |
@@ -1667,7 +1667,7 @@ static void ixgbe_check_fan_failure(struct ixgbe_adapter *adapter, u32 eicr) | |||
1667 | 1667 | ||
1668 | if ((adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) && | 1668 | if ((adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) && |
1669 | (eicr & IXGBE_EICR_GPI_SDP1)) { | 1669 | (eicr & IXGBE_EICR_GPI_SDP1)) { |
1670 | e_crit("Fan has stopped, replace the adapter\n"); | 1670 | e_crit(probe, "Fan has stopped, replace the adapter\n"); |
1671 | /* write to clear the interrupt */ | 1671 | /* write to clear the interrupt */ |
1672 | IXGBE_WRITE_REG(hw, IXGBE_EICR, IXGBE_EICR_GPI_SDP1); | 1672 | IXGBE_WRITE_REG(hw, IXGBE_EICR, IXGBE_EICR_GPI_SDP1); |
1673 | } | 1673 | } |
@@ -2153,7 +2153,7 @@ static int ixgbe_request_msix_irqs(struct ixgbe_adapter *adapter) | |||
2153 | handler, 0, adapter->name[vector], | 2153 | handler, 0, adapter->name[vector], |
2154 | adapter->q_vector[vector]); | 2154 | adapter->q_vector[vector]); |
2155 | if (err) { | 2155 | if (err) { |
2156 | e_err("request_irq failed for MSIX interrupt: " | 2156 | e_err(probe, "request_irq failed for MSIX interrupt " |
2157 | "Error: %d\n", err); | 2157 | "Error: %d\n", err); |
2158 | goto free_queue_irqs; | 2158 | goto free_queue_irqs; |
2159 | } | 2159 | } |
@@ -2163,7 +2163,7 @@ static int ixgbe_request_msix_irqs(struct ixgbe_adapter *adapter) | |||
2163 | err = request_irq(adapter->msix_entries[vector].vector, | 2163 | err = request_irq(adapter->msix_entries[vector].vector, |
2164 | ixgbe_msix_lsc, 0, adapter->name[vector], netdev); | 2164 | ixgbe_msix_lsc, 0, adapter->name[vector], netdev); |
2165 | if (err) { | 2165 | if (err) { |
2166 | e_err("request_irq for msix_lsc failed: %d\n", err); | 2166 | e_err(probe, "request_irq for msix_lsc failed: %d\n", err); |
2167 | goto free_queue_irqs; | 2167 | goto free_queue_irqs; |
2168 | } | 2168 | } |
2169 | 2169 | ||
@@ -2349,7 +2349,7 @@ static int ixgbe_request_irq(struct ixgbe_adapter *adapter) | |||
2349 | } | 2349 | } |
2350 | 2350 | ||
2351 | if (err) | 2351 | if (err) |
2352 | e_err("request_irq failed, Error %d\n", err); | 2352 | e_err(probe, "request_irq failed, Error %d\n", err); |
2353 | 2353 | ||
2354 | return err; | 2354 | return err; |
2355 | } | 2355 | } |
@@ -2420,7 +2420,7 @@ static void ixgbe_configure_msi_and_legacy(struct ixgbe_adapter *adapter) | |||
2420 | map_vector_to_rxq(adapter, 0, 0); | 2420 | map_vector_to_rxq(adapter, 0, 0); |
2421 | map_vector_to_txq(adapter, 0, 0); | 2421 | map_vector_to_txq(adapter, 0, 0); |
2422 | 2422 | ||
2423 | e_info("Legacy interrupt IVAR setup done\n"); | 2423 | e_info(hw, "Legacy interrupt IVAR setup done\n"); |
2424 | } | 2424 | } |
2425 | 2425 | ||
2426 | /** | 2426 | /** |
@@ -3316,7 +3316,7 @@ static inline void ixgbe_rx_desc_queue_enable(struct ixgbe_adapter *adapter, | |||
3316 | msleep(1); | 3316 | msleep(1); |
3317 | } | 3317 | } |
3318 | if (k >= IXGBE_MAX_RX_DESC_POLL) { | 3318 | if (k >= IXGBE_MAX_RX_DESC_POLL) { |
3319 | e_err("RXDCTL.ENABLE on Rx queue %d not set within " | 3319 | e_err(drv, "RXDCTL.ENABLE on Rx queue %d not set within " |
3320 | "the polling period\n", rxr); | 3320 | "the polling period\n", rxr); |
3321 | } | 3321 | } |
3322 | ixgbe_release_rx_desc(&adapter->hw, adapter->rx_ring[rxr], | 3322 | ixgbe_release_rx_desc(&adapter->hw, adapter->rx_ring[rxr], |
@@ -3446,7 +3446,7 @@ static int ixgbe_up_complete(struct ixgbe_adapter *adapter) | |||
3446 | } while (--wait_loop && | 3446 | } while (--wait_loop && |
3447 | !(txdctl & IXGBE_TXDCTL_ENABLE)); | 3447 | !(txdctl & IXGBE_TXDCTL_ENABLE)); |
3448 | if (!wait_loop) | 3448 | if (!wait_loop) |
3449 | e_err("Could not enable Tx Queue %d\n", j); | 3449 | e_err(drv, "Could not enable Tx Queue %d\n", j); |
3450 | } | 3450 | } |
3451 | } | 3451 | } |
3452 | 3452 | ||
@@ -3494,7 +3494,7 @@ static int ixgbe_up_complete(struct ixgbe_adapter *adapter) | |||
3494 | if (adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) { | 3494 | if (adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) { |
3495 | u32 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); | 3495 | u32 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); |
3496 | if (esdp & IXGBE_ESDP_SDP1) | 3496 | if (esdp & IXGBE_ESDP_SDP1) |
3497 | e_crit("Fan has stopped, replace the adapter\n"); | 3497 | e_crit(drv, "Fan has stopped, replace the adapter\n"); |
3498 | } | 3498 | } |
3499 | 3499 | ||
3500 | /* | 3500 | /* |
@@ -3523,7 +3523,7 @@ static int ixgbe_up_complete(struct ixgbe_adapter *adapter) | |||
3523 | } else { | 3523 | } else { |
3524 | err = ixgbe_non_sfp_link_config(hw); | 3524 | err = ixgbe_non_sfp_link_config(hw); |
3525 | if (err) | 3525 | if (err) |
3526 | e_err("link_config FAILED %d\n", err); | 3526 | e_err(probe, "link_config FAILED %d\n", err); |
3527 | } | 3527 | } |
3528 | 3528 | ||
3529 | for (i = 0; i < adapter->num_tx_queues; i++) | 3529 | for (i = 0; i < adapter->num_tx_queues; i++) |
@@ -3977,12 +3977,12 @@ static inline bool ixgbe_set_fcoe_queues(struct ixgbe_adapter *adapter) | |||
3977 | adapter->num_tx_queues = 1; | 3977 | adapter->num_tx_queues = 1; |
3978 | #ifdef CONFIG_IXGBE_DCB | 3978 | #ifdef CONFIG_IXGBE_DCB |
3979 | if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) { | 3979 | if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) { |
3980 | e_info("FCoE enabled with DCB\n"); | 3980 | e_info(probe, "FCoE enabled with DCB\n"); |
3981 | ixgbe_set_dcb_queues(adapter); | 3981 | ixgbe_set_dcb_queues(adapter); |
3982 | } | 3982 | } |
3983 | #endif | 3983 | #endif |
3984 | if (adapter->flags & IXGBE_FLAG_RSS_ENABLED) { | 3984 | if (adapter->flags & IXGBE_FLAG_RSS_ENABLED) { |
3985 | e_info("FCoE enabled with RSS\n"); | 3985 | e_info(probe, "FCoE enabled with RSS\n"); |
3986 | if ((adapter->flags & IXGBE_FLAG_FDIR_HASH_CAPABLE) || | 3986 | if ((adapter->flags & IXGBE_FLAG_FDIR_HASH_CAPABLE) || |
3987 | (adapter->flags & IXGBE_FLAG_FDIR_PERFECT_CAPABLE)) | 3987 | (adapter->flags & IXGBE_FLAG_FDIR_PERFECT_CAPABLE)) |
3988 | ixgbe_set_fdir_queues(adapter); | 3988 | ixgbe_set_fdir_queues(adapter); |
@@ -4633,8 +4633,8 @@ int ixgbe_init_interrupt_scheme(struct ixgbe_adapter *adapter) | |||
4633 | } | 4633 | } |
4634 | 4634 | ||
4635 | e_dev_info("Multiqueue %s: Rx Queue count = %u, Tx Queue count = %u\n", | 4635 | e_dev_info("Multiqueue %s: Rx Queue count = %u, Tx Queue count = %u\n", |
4636 | (adapter->num_rx_queues > 1) ? "Enabled" : "Disabled", | 4636 | (adapter->num_rx_queues > 1) ? "Enabled" : "Disabled", |
4637 | adapter->num_rx_queues, adapter->num_tx_queues); | 4637 | adapter->num_rx_queues, adapter->num_tx_queues); |
4638 | 4638 | ||
4639 | set_bit(__IXGBE_DOWN, &adapter->state); | 4639 | set_bit(__IXGBE_DOWN, &adapter->state); |
4640 | 4640 | ||
@@ -4711,7 +4711,7 @@ static void ixgbe_sfp_task(struct work_struct *work) | |||
4711 | "supported module.\n"); | 4711 | "supported module.\n"); |
4712 | unregister_netdev(adapter->netdev); | 4712 | unregister_netdev(adapter->netdev); |
4713 | } else { | 4713 | } else { |
4714 | e_info("detected SFP+: %d\n", hw->phy.sfp_type); | 4714 | e_info(probe, "detected SFP+: %d\n", hw->phy.sfp_type); |
4715 | } | 4715 | } |
4716 | /* don't need this routine any more */ | 4716 | /* don't need this routine any more */ |
4717 | clear_bit(__IXGBE_SFP_MODULE_NOT_FOUND, &adapter->state); | 4717 | clear_bit(__IXGBE_SFP_MODULE_NOT_FOUND, &adapter->state); |
@@ -4891,7 +4891,7 @@ int ixgbe_setup_tx_resources(struct ixgbe_adapter *adapter, | |||
4891 | err: | 4891 | err: |
4892 | vfree(tx_ring->tx_buffer_info); | 4892 | vfree(tx_ring->tx_buffer_info); |
4893 | tx_ring->tx_buffer_info = NULL; | 4893 | tx_ring->tx_buffer_info = NULL; |
4894 | e_err("Unable to allocate memory for the Tx descriptor ring\n"); | 4894 | e_err(probe, "Unable to allocate memory for the Tx descriptor ring\n"); |
4895 | return -ENOMEM; | 4895 | return -ENOMEM; |
4896 | } | 4896 | } |
4897 | 4897 | ||
@@ -4913,7 +4913,7 @@ static int ixgbe_setup_all_tx_resources(struct ixgbe_adapter *adapter) | |||
4913 | err = ixgbe_setup_tx_resources(adapter, adapter->tx_ring[i]); | 4913 | err = ixgbe_setup_tx_resources(adapter, adapter->tx_ring[i]); |
4914 | if (!err) | 4914 | if (!err) |
4915 | continue; | 4915 | continue; |
4916 | e_err("Allocation for Tx Queue %u failed\n", i); | 4916 | e_err(probe, "Allocation for Tx Queue %u failed\n", i); |
4917 | break; | 4917 | break; |
4918 | } | 4918 | } |
4919 | 4919 | ||
@@ -4938,7 +4938,8 @@ int ixgbe_setup_rx_resources(struct ixgbe_adapter *adapter, | |||
4938 | if (!rx_ring->rx_buffer_info) | 4938 | if (!rx_ring->rx_buffer_info) |
4939 | rx_ring->rx_buffer_info = vmalloc(size); | 4939 | rx_ring->rx_buffer_info = vmalloc(size); |
4940 | if (!rx_ring->rx_buffer_info) { | 4940 | if (!rx_ring->rx_buffer_info) { |
4941 | e_err("vmalloc allocation failed for the Rx desc ring\n"); | 4941 | e_err(probe, "vmalloc allocation failed for the Rx " |
4942 | "descriptor ring\n"); | ||
4942 | goto alloc_failed; | 4943 | goto alloc_failed; |
4943 | } | 4944 | } |
4944 | memset(rx_ring->rx_buffer_info, 0, size); | 4945 | memset(rx_ring->rx_buffer_info, 0, size); |
@@ -4951,7 +4952,8 @@ int ixgbe_setup_rx_resources(struct ixgbe_adapter *adapter, | |||
4951 | &rx_ring->dma, GFP_KERNEL); | 4952 | &rx_ring->dma, GFP_KERNEL); |
4952 | 4953 | ||
4953 | if (!rx_ring->desc) { | 4954 | if (!rx_ring->desc) { |
4954 | e_err("Memory allocation failed for the Rx desc ring\n"); | 4955 | e_err(probe, "Memory allocation failed for the Rx " |
4956 | "descriptor ring\n"); | ||
4955 | vfree(rx_ring->rx_buffer_info); | 4957 | vfree(rx_ring->rx_buffer_info); |
4956 | goto alloc_failed; | 4958 | goto alloc_failed; |
4957 | } | 4959 | } |
@@ -4984,7 +4986,7 @@ static int ixgbe_setup_all_rx_resources(struct ixgbe_adapter *adapter) | |||
4984 | err = ixgbe_setup_rx_resources(adapter, adapter->rx_ring[i]); | 4986 | err = ixgbe_setup_rx_resources(adapter, adapter->rx_ring[i]); |
4985 | if (!err) | 4987 | if (!err) |
4986 | continue; | 4988 | continue; |
4987 | e_err("Allocation for Rx Queue %u failed\n", i); | 4989 | e_err(probe, "Allocation for Rx Queue %u failed\n", i); |
4988 | break; | 4990 | break; |
4989 | } | 4991 | } |
4990 | 4992 | ||
@@ -5083,7 +5085,7 @@ static int ixgbe_change_mtu(struct net_device *netdev, int new_mtu) | |||
5083 | if ((new_mtu < 68) || (max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE)) | 5085 | if ((new_mtu < 68) || (max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE)) |
5084 | return -EINVAL; | 5086 | return -EINVAL; |
5085 | 5087 | ||
5086 | e_info("changing MTU from %d to %d\n", netdev->mtu, new_mtu); | 5088 | e_info(probe, "changing MTU from %d to %d\n", netdev->mtu, new_mtu); |
5087 | /* must set new MTU before calling down or up */ | 5089 | /* must set new MTU before calling down or up */ |
5088 | netdev->mtu = new_mtu; | 5090 | netdev->mtu = new_mtu; |
5089 | 5091 | ||
@@ -5597,7 +5599,7 @@ static void ixgbe_fdir_reinit_task(struct work_struct *work) | |||
5597 | set_bit(__IXGBE_FDIR_INIT_DONE, | 5599 | set_bit(__IXGBE_FDIR_INIT_DONE, |
5598 | &(adapter->tx_ring[i]->reinit_state)); | 5600 | &(adapter->tx_ring[i]->reinit_state)); |
5599 | } else { | 5601 | } else { |
5600 | e_err("failed to finish FDIR re-initialization, " | 5602 | e_err(probe, "failed to finish FDIR re-initialization, " |
5601 | "ignored adding FDIR ATR filters\n"); | 5603 | "ignored adding FDIR ATR filters\n"); |
5602 | } | 5604 | } |
5603 | /* Done FDIR Re-initialization, enable transmits */ | 5605 | /* Done FDIR Re-initialization, enable transmits */ |
@@ -5669,7 +5671,7 @@ static void ixgbe_watchdog_task(struct work_struct *work) | |||
5669 | flow_tx = !!(rmcs & IXGBE_RMCS_TFCE_802_3X); | 5671 | flow_tx = !!(rmcs & IXGBE_RMCS_TFCE_802_3X); |
5670 | } | 5672 | } |
5671 | 5673 | ||
5672 | e_info("NIC Link is Up %s, Flow Control: %s\n", | 5674 | e_info(drv, "NIC Link is Up %s, Flow Control: %s\n", |
5673 | (link_speed == IXGBE_LINK_SPEED_10GB_FULL ? | 5675 | (link_speed == IXGBE_LINK_SPEED_10GB_FULL ? |
5674 | "10 Gbps" : | 5676 | "10 Gbps" : |
5675 | (link_speed == IXGBE_LINK_SPEED_1GB_FULL ? | 5677 | (link_speed == IXGBE_LINK_SPEED_1GB_FULL ? |
@@ -5687,7 +5689,7 @@ static void ixgbe_watchdog_task(struct work_struct *work) | |||
5687 | adapter->link_up = false; | 5689 | adapter->link_up = false; |
5688 | adapter->link_speed = 0; | 5690 | adapter->link_speed = 0; |
5689 | if (netif_carrier_ok(netdev)) { | 5691 | if (netif_carrier_ok(netdev)) { |
5690 | e_info("NIC Link is Down\n"); | 5692 | e_info(drv, "NIC Link is Down\n"); |
5691 | netif_carrier_off(netdev); | 5693 | netif_carrier_off(netdev); |
5692 | } | 5694 | } |
5693 | } | 5695 | } |
@@ -5863,8 +5865,9 @@ static bool ixgbe_tx_csum(struct ixgbe_adapter *adapter, | |||
5863 | break; | 5865 | break; |
5864 | default: | 5866 | default: |
5865 | if (unlikely(net_ratelimit())) { | 5867 | if (unlikely(net_ratelimit())) { |
5866 | e_warn("partial checksum but " | 5868 | e_warn(probe, "partial checksum " |
5867 | "proto=%x!\n", skb->protocol); | 5869 | "but proto=%x!\n", |
5870 | skb->protocol); | ||
5868 | } | 5871 | } |
5869 | break; | 5872 | break; |
5870 | } | 5873 | } |
@@ -6472,7 +6475,7 @@ static void __devinit ixgbe_probe_vf(struct ixgbe_adapter *adapter, | |||
6472 | adapter->flags |= IXGBE_FLAG_SRIOV_ENABLED; | 6475 | adapter->flags |= IXGBE_FLAG_SRIOV_ENABLED; |
6473 | err = pci_enable_sriov(adapter->pdev, adapter->num_vfs); | 6476 | err = pci_enable_sriov(adapter->pdev, adapter->num_vfs); |
6474 | if (err) { | 6477 | if (err) { |
6475 | e_err("Failed to enable PCI sriov: %d\n", err); | 6478 | e_err(probe, "Failed to enable PCI sriov: %d\n", err); |
6476 | goto err_novfs; | 6479 | goto err_novfs; |
6477 | } | 6480 | } |
6478 | /* If call to enable VFs succeeded then allocate memory | 6481 | /* If call to enable VFs succeeded then allocate memory |
@@ -6496,8 +6499,8 @@ static void __devinit ixgbe_probe_vf(struct ixgbe_adapter *adapter, | |||
6496 | } | 6499 | } |
6497 | 6500 | ||
6498 | /* Oh oh */ | 6501 | /* Oh oh */ |
6499 | e_err("Unable to allocate memory for VF Data Storage - SRIOV " | 6502 | e_err(probe, "Unable to allocate memory for VF Data Storage - " |
6500 | "disabled\n"); | 6503 | "SRIOV disabled\n"); |
6501 | pci_disable_sriov(adapter->pdev); | 6504 | pci_disable_sriov(adapter->pdev); |
6502 | 6505 | ||
6503 | err_novfs: | 6506 | err_novfs: |
@@ -6667,7 +6670,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, | |||
6667 | if (adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) { | 6670 | if (adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) { |
6668 | u32 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); | 6671 | u32 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); |
6669 | if (esdp & IXGBE_ESDP_SDP1) | 6672 | if (esdp & IXGBE_ESDP_SDP1) |
6670 | e_crit("Fan has stopped, replace the adapter\n"); | 6673 | e_crit(probe, "Fan has stopped, replace the adapter\n"); |
6671 | } | 6674 | } |
6672 | 6675 | ||
6673 | /* reset_hw fills in the perm_addr as well */ | 6676 | /* reset_hw fills in the perm_addr as well */ |
@@ -6698,7 +6701,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, | |||
6698 | 6701 | ||
6699 | ixgbe_probe_vf(adapter, ii); | 6702 | ixgbe_probe_vf(adapter, ii); |
6700 | 6703 | ||
6701 | netdev->features = NETIF_F_SG | | 6704 | netdev->features = NETIF_F_SG | |
6702 | NETIF_F_IP_CSUM | | 6705 | NETIF_F_IP_CSUM | |
6703 | NETIF_F_HW_VLAN_TX | | 6706 | NETIF_F_HW_VLAN_TX | |
6704 | NETIF_F_HW_VLAN_RX | | 6707 | NETIF_F_HW_VLAN_RX | |
@@ -6851,7 +6854,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, | |||
6851 | } | 6854 | } |
6852 | #endif | 6855 | #endif |
6853 | if (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED) { | 6856 | if (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED) { |
6854 | e_info("IOV is enabled with %d VFs\n", adapter->num_vfs); | 6857 | e_info(probe, "IOV is enabled with %d VFs\n", adapter->num_vfs); |
6855 | for (i = 0; i < adapter->num_vfs; i++) | 6858 | for (i = 0; i < adapter->num_vfs; i++) |
6856 | ixgbe_vf_configuration(pdev, (i | 0x10000000)); | 6859 | ixgbe_vf_configuration(pdev, (i | 0x10000000)); |
6857 | } | 6860 | } |
@@ -6999,7 +7002,7 @@ static pci_ers_result_t ixgbe_io_slot_reset(struct pci_dev *pdev) | |||
6999 | int err; | 7002 | int err; |
7000 | 7003 | ||
7001 | if (pci_enable_device_mem(pdev)) { | 7004 | if (pci_enable_device_mem(pdev)) { |
7002 | e_err("Cannot re-enable PCI device after reset.\n"); | 7005 | e_err(probe, "Cannot re-enable PCI device after reset.\n"); |
7003 | result = PCI_ERS_RESULT_DISCONNECT; | 7006 | result = PCI_ERS_RESULT_DISCONNECT; |
7004 | } else { | 7007 | } else { |
7005 | pci_set_master(pdev); | 7008 | pci_set_master(pdev); |
@@ -7037,7 +7040,7 @@ static void ixgbe_io_resume(struct pci_dev *pdev) | |||
7037 | 7040 | ||
7038 | if (netif_running(netdev)) { | 7041 | if (netif_running(netdev)) { |
7039 | if (ixgbe_up(adapter)) { | 7042 | if (ixgbe_up(adapter)) { |
7040 | e_info("ixgbe_up failed after reset\n"); | 7043 | e_info(probe, "ixgbe_up failed after reset\n"); |
7041 | return; | 7044 | return; |
7042 | } | 7045 | } |
7043 | } | 7046 | } |
diff --git a/drivers/net/ixgbe/ixgbe_sriov.c b/drivers/net/ixgbe/ixgbe_sriov.c index 6e6dee04ff61..49661a138e22 100644 --- a/drivers/net/ixgbe/ixgbe_sriov.c +++ b/drivers/net/ixgbe/ixgbe_sriov.c | |||
@@ -185,7 +185,8 @@ int ixgbe_vf_configuration(struct pci_dev *pdev, unsigned int event_mask) | |||
185 | 185 | ||
186 | if (enable) { | 186 | if (enable) { |
187 | random_ether_addr(vf_mac_addr); | 187 | random_ether_addr(vf_mac_addr); |
188 | e_info("IOV: VF %d is enabled MAC %pM\n", vfn, vf_mac_addr); | 188 | e_info(probe, "IOV: VF %d is enabled MAC %pM\n", |
189 | vfn, vf_mac_addr); | ||
189 | /* | 190 | /* |
190 | * Store away the VF "permananet" MAC address, it will ask | 191 | * Store away the VF "permananet" MAC address, it will ask |
191 | * for it later. | 192 | * for it later. |
@@ -244,7 +245,7 @@ static int ixgbe_rcv_msg_from_vf(struct ixgbe_adapter *adapter, u32 vf) | |||
244 | if (msgbuf[0] == IXGBE_VF_RESET) { | 245 | if (msgbuf[0] == IXGBE_VF_RESET) { |
245 | unsigned char *vf_mac = adapter->vfinfo[vf].vf_mac_addresses; | 246 | unsigned char *vf_mac = adapter->vfinfo[vf].vf_mac_addresses; |
246 | u8 *addr = (u8 *)(&msgbuf[1]); | 247 | u8 *addr = (u8 *)(&msgbuf[1]); |
247 | e_info("VF Reset msg received from vf %d\n", vf); | 248 | e_info(probe, "VF Reset msg received from vf %d\n", vf); |
248 | adapter->vfinfo[vf].clear_to_send = false; | 249 | adapter->vfinfo[vf].clear_to_send = false; |
249 | ixgbe_vf_reset_msg(adapter, vf); | 250 | ixgbe_vf_reset_msg(adapter, vf); |
250 | adapter->vfinfo[vf].clear_to_send = true; | 251 | adapter->vfinfo[vf].clear_to_send = true; |
@@ -297,7 +298,7 @@ static int ixgbe_rcv_msg_from_vf(struct ixgbe_adapter *adapter, u32 vf) | |||
297 | retval = ixgbe_set_vf_vlan(adapter, add, vid, vf); | 298 | retval = ixgbe_set_vf_vlan(adapter, add, vid, vf); |
298 | break; | 299 | break; |
299 | default: | 300 | default: |
300 | e_err("Unhandled Msg %8.8x\n", msgbuf[0]); | 301 | e_err(drv, "Unhandled Msg %8.8x\n", msgbuf[0]); |
301 | retval = IXGBE_ERR_MBX; | 302 | retval = IXGBE_ERR_MBX; |
302 | break; | 303 | break; |
303 | } | 304 | } |