diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/octeon/ethernet-mem.c | 7 | ||||
-rw-r--r-- | drivers/staging/octeon/ethernet-rgmii.c | 4 | ||||
-rw-r--r-- | drivers/staging/octeon/ethernet-rx.c | 5 |
3 files changed, 3 insertions, 13 deletions
diff --git a/drivers/staging/octeon/ethernet-mem.c b/drivers/staging/octeon/ethernet-mem.c index 78b6cb743769..199059d64c9b 100644 --- a/drivers/staging/octeon/ethernet-mem.c +++ b/drivers/staging/octeon/ethernet-mem.c | |||
@@ -48,13 +48,8 @@ static int cvm_oct_fill_hw_skbuff(int pool, int size, int elements) | |||
48 | while (freed) { | 48 | while (freed) { |
49 | 49 | ||
50 | struct sk_buff *skb = dev_alloc_skb(size + 256); | 50 | struct sk_buff *skb = dev_alloc_skb(size + 256); |
51 | if (unlikely(skb == NULL)) { | 51 | if (unlikely(skb == NULL)) |
52 | pr_warning | ||
53 | ("Failed to allocate skb for hardware pool %d\n", | ||
54 | pool); | ||
55 | break; | 52 | break; |
56 | } | ||
57 | |||
58 | skb_reserve(skb, 256 - (((unsigned long)skb->data) & 0x7f)); | 53 | skb_reserve(skb, 256 - (((unsigned long)skb->data) & 0x7f)); |
59 | *(struct sk_buff **)(skb->data - sizeof(void *)) = skb; | 54 | *(struct sk_buff **)(skb->data - sizeof(void *)) = skb; |
60 | cvmx_fpa_free(skb->data, pool, DONT_WRITEBACK(size / 128)); | 55 | cvmx_fpa_free(skb->data, pool, DONT_WRITEBACK(size / 128)); |
diff --git a/drivers/staging/octeon/ethernet-rgmii.c b/drivers/staging/octeon/ethernet-rgmii.c index d8f5f694ec35..ea53af30dfa7 100644 --- a/drivers/staging/octeon/ethernet-rgmii.c +++ b/drivers/staging/octeon/ethernet-rgmii.c | |||
@@ -373,9 +373,7 @@ int cvm_oct_rgmii_init(struct net_device *dev) | |||
373 | * Enable interrupts on inband status changes | 373 | * Enable interrupts on inband status changes |
374 | * for this port. | 374 | * for this port. |
375 | */ | 375 | */ |
376 | gmx_rx_int_en.u64 = | 376 | gmx_rx_int_en.u64 = 0; |
377 | cvmx_read_csr(CVMX_GMXX_RXX_INT_EN | ||
378 | (index, interface)); | ||
379 | gmx_rx_int_en.s.phy_dupx = 1; | 377 | gmx_rx_int_en.s.phy_dupx = 1; |
380 | gmx_rx_int_en.s.phy_link = 1; | 378 | gmx_rx_int_en.s.phy_link = 1; |
381 | gmx_rx_int_en.s.phy_spd = 1; | 379 | gmx_rx_int_en.s.phy_spd = 1; |
diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c index 34afc16bc493..e14a1bb04361 100644 --- a/drivers/staging/octeon/ethernet-rx.c +++ b/drivers/staging/octeon/ethernet-rx.c | |||
@@ -303,6 +303,7 @@ static int cvm_oct_napi_poll(struct napi_struct *napi, int budget) | |||
303 | if (backlog > budget * cores_in_use && napi != NULL) | 303 | if (backlog > budget * cores_in_use && napi != NULL) |
304 | cvm_oct_enable_one_cpu(); | 304 | cvm_oct_enable_one_cpu(); |
305 | } | 305 | } |
306 | rx_count++; | ||
306 | 307 | ||
307 | skb_in_hw = USE_SKBUFFS_IN_HW && work->word2.s.bufs == 1; | 308 | skb_in_hw = USE_SKBUFFS_IN_HW && work->word2.s.bufs == 1; |
308 | if (likely(skb_in_hw)) { | 309 | if (likely(skb_in_hw)) { |
@@ -336,9 +337,6 @@ static int cvm_oct_napi_poll(struct napi_struct *napi, int budget) | |||
336 | */ | 337 | */ |
337 | skb = dev_alloc_skb(work->len); | 338 | skb = dev_alloc_skb(work->len); |
338 | if (!skb) { | 339 | if (!skb) { |
339 | printk_ratelimited("Port %d failed to allocate " | ||
340 | "skbuff, packet dropped\n", | ||
341 | work->ipprt); | ||
342 | cvm_oct_free_work(work); | 340 | cvm_oct_free_work(work); |
343 | continue; | 341 | continue; |
344 | } | 342 | } |
@@ -429,7 +427,6 @@ static int cvm_oct_napi_poll(struct napi_struct *napi, int budget) | |||
429 | #endif | 427 | #endif |
430 | } | 428 | } |
431 | netif_receive_skb(skb); | 429 | netif_receive_skb(skb); |
432 | rx_count++; | ||
433 | } else { | 430 | } else { |
434 | /* Drop any packet received for a device that isn't up */ | 431 | /* Drop any packet received for a device that isn't up */ |
435 | /* | 432 | /* |