Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
authorDavid S. Miller <davem@davemloft.net>
Sun, 19 Feb 2012 21:03:15 +0000 (16:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Feb 2012 21:03:15 +0000 (16:03 -0500)
Conflicts:
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c

Small minor conflict in bnx2x, wherein one commit changed how
statistics were stored in software, and another commit
fixed endianness bugs wrt. reading the values provided by
the chip in memory.

Signed-off-by: David S. Miller <davem@davemloft.net>
13 files changed:
1  2 
drivers/net/ethernet/3com/3c59x.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
drivers/net/ethernet/freescale/fec.c
drivers/net/ethernet/micrel/ks8851.c
drivers/net/ethernet/micrel/ks8851_mll.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
drivers/net/ethernet/ti/cpmac.c
drivers/net/veth.c
drivers/net/wireless/rtlwifi/pci.c
net/core/netpoll.c
net/mac80211/main.c

Simple merge
index abd310d715125820c5e14f935722d686b6f1a1a8,1adef266fcd50252deb5f8684d6708656a577765..14c961beaadb2a13be21c2e2a1b13ee6b98446d0
@@@ -980,43 -1006,97 +980,43 @@@ static int bnx2x_storm_stats_update(str
                                    total_transmitted_dropped_packets_error);
  
                /* TPA aggregations completed */
 -              UPDATE_EXTEND_USTAT(coalesced_events, total_tpa_aggregations);
 +              UPDATE_EXTEND_E_USTAT(coalesced_events, total_tpa_aggregations);
                /* Number of network frames aggregated by TPA */
 -              UPDATE_EXTEND_USTAT(coalesced_pkts,
 -                                  total_tpa_aggregated_frames);
 +              UPDATE_EXTEND_E_USTAT(coalesced_pkts,
 +                                    total_tpa_aggregated_frames);
                /* Total number of bytes in completed TPA aggregations */
 -              qstats->total_tpa_bytes_lo =
 -                      le32_to_cpu(uclient->coalesced_bytes.lo);
 -              qstats->total_tpa_bytes_hi =
 -                      le32_to_cpu(uclient->coalesced_bytes.hi);
 -
 -              /* TPA stats per-function */
 -              ADD_64(estats->total_tpa_aggregations_hi,
 -                     qstats->total_tpa_aggregations_hi,
 -                     estats->total_tpa_aggregations_lo,
 -                     qstats->total_tpa_aggregations_lo);
 -              ADD_64(estats->total_tpa_aggregated_frames_hi,
 -                     qstats->total_tpa_aggregated_frames_hi,
 -                     estats->total_tpa_aggregated_frames_lo,
 -                     qstats->total_tpa_aggregated_frames_lo);
 -              ADD_64(estats->total_tpa_bytes_hi,
 -                     qstats->total_tpa_bytes_hi,
 -                     estats->total_tpa_bytes_lo,
 -                     qstats->total_tpa_bytes_lo);
 -
 -              ADD_64(fstats->total_bytes_received_hi,
 -                     qstats->total_bytes_received_hi,
 -                     fstats->total_bytes_received_lo,
 -                     qstats->total_bytes_received_lo);
 -              ADD_64(fstats->total_bytes_transmitted_hi,
 -                     qstats->total_bytes_transmitted_hi,
 -                     fstats->total_bytes_transmitted_lo,
 -                     qstats->total_bytes_transmitted_lo);
 -              ADD_64(fstats->total_unicast_packets_received_hi,
 -                     qstats->total_unicast_packets_received_hi,
 -                     fstats->total_unicast_packets_received_lo,
 -                     qstats->total_unicast_packets_received_lo);
 -              ADD_64(fstats->total_multicast_packets_received_hi,
 -                     qstats->total_multicast_packets_received_hi,
 -                     fstats->total_multicast_packets_received_lo,
 -                     qstats->total_multicast_packets_received_lo);
 -              ADD_64(fstats->total_broadcast_packets_received_hi,
 -                     qstats->total_broadcast_packets_received_hi,
 -                     fstats->total_broadcast_packets_received_lo,
 -                     qstats->total_broadcast_packets_received_lo);
 -              ADD_64(fstats->total_unicast_packets_transmitted_hi,
 -                     qstats->total_unicast_packets_transmitted_hi,
 -                     fstats->total_unicast_packets_transmitted_lo,
 -                     qstats->total_unicast_packets_transmitted_lo);
 -              ADD_64(fstats->total_multicast_packets_transmitted_hi,
 -                     qstats->total_multicast_packets_transmitted_hi,
 -                     fstats->total_multicast_packets_transmitted_lo,
 -                     qstats->total_multicast_packets_transmitted_lo);
 -              ADD_64(fstats->total_broadcast_packets_transmitted_hi,
 -                     qstats->total_broadcast_packets_transmitted_hi,
 -                     fstats->total_broadcast_packets_transmitted_lo,
 -                     qstats->total_broadcast_packets_transmitted_lo);
 -              ADD_64(fstats->valid_bytes_received_hi,
 -                     qstats->valid_bytes_received_hi,
 -                     fstats->valid_bytes_received_lo,
 -                     qstats->valid_bytes_received_lo);
 -
 -              ADD_64(estats->etherstatsoverrsizepkts_hi,
 -                     qstats->etherstatsoverrsizepkts_hi,
 -                     estats->etherstatsoverrsizepkts_lo,
 -                     qstats->etherstatsoverrsizepkts_lo);
 -              ADD_64(estats->no_buff_discard_hi, qstats->no_buff_discard_hi,
 -                     estats->no_buff_discard_lo, qstats->no_buff_discard_lo);
 +              UPDATE_QSTAT(uclient->coalesced_bytes, total_tpa_bytes);
 +
 +              UPDATE_ESTAT_QSTAT_64(total_tpa_bytes);
 +
 +              UPDATE_FSTAT_QSTAT(total_bytes_received);
 +              UPDATE_FSTAT_QSTAT(total_bytes_transmitted);
 +              UPDATE_FSTAT_QSTAT(total_unicast_packets_received);
 +              UPDATE_FSTAT_QSTAT(total_multicast_packets_received);
 +              UPDATE_FSTAT_QSTAT(total_broadcast_packets_received);
 +              UPDATE_FSTAT_QSTAT(total_unicast_packets_transmitted);
 +              UPDATE_FSTAT_QSTAT(total_multicast_packets_transmitted);
 +              UPDATE_FSTAT_QSTAT(total_broadcast_packets_transmitted);
 +              UPDATE_FSTAT_QSTAT(valid_bytes_received);
        }
  
 -      ADD_64(fstats->total_bytes_received_hi,
 +      ADD_64(estats->total_bytes_received_hi,
               estats->rx_stat_ifhcinbadoctets_hi,
 -             fstats->total_bytes_received_lo,
 +             estats->total_bytes_received_lo,
               estats->rx_stat_ifhcinbadoctets_lo);
  
 -      ADD_64(fstats->total_bytes_received_hi,
 +      ADD_64(estats->total_bytes_received_hi,
-              tfunc->rcv_error_bytes.hi,
+              le32_to_cpu(tfunc->rcv_error_bytes.hi),
 -             fstats->total_bytes_received_lo,
 +             estats->total_bytes_received_lo,
-              tfunc->rcv_error_bytes.lo);
+              le32_to_cpu(tfunc->rcv_error_bytes.lo));
  
 -      memcpy(estats, &(fstats->total_bytes_received_hi),
 -             sizeof(struct host_func_stats) - 2*sizeof(u32));
 -
        ADD_64(estats->error_bytes_received_hi,
-              tfunc->rcv_error_bytes.hi,
+              le32_to_cpu(tfunc->rcv_error_bytes.hi),
               estats->error_bytes_received_lo,
-              tfunc->rcv_error_bytes.lo);
+              le32_to_cpu(tfunc->rcv_error_bytes.lo));
  
 -      ADD_64(estats->etherstatsoverrsizepkts_hi,
 -             estats->rx_stat_dot3statsframestoolong_hi,
 -             estats->etherstatsoverrsizepkts_lo,
 -             estats->rx_stat_dot3statsframestoolong_lo);
 +      UPDATE_ESTAT(etherstatsoverrsizepkts, rx_stat_dot3statsframestoolong);
 +
        ADD_64(estats->error_bytes_received_hi,
               estats->rx_stat_ifhcinbadoctets_hi,
               estats->error_bytes_received_lo,
Simple merge
Simple merge
Simple merge
Simple merge
index 5cb2199435d2382a28d2fd9028710a101bdb083f,9245d882c06a3046dfb3d052456e6174d99d2a97..653fe728e4a280a7e1ebd0ca87b0ecfb2e9067f4
@@@ -1860,10 -1870,20 +1860,10 @@@ int __devinit rtl_pci_probe(struct pci_
        }
  
        /* Init PCI sw */
-       err = !rtl_pci_init(hw, pdev);
+       err = rtl_pci_init(hw, pdev);
        if (err) {
 -              RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
 -                       ("Failed to init PCI.\n"));
 -              goto fail3;
 -      }
 -
 -      err = ieee80211_register_hw(hw);
 -      if (err) {
 -              RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
 -                       ("Can't register mac80211 hw.\n"));
 +              RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "Failed to init PCI\n");
                goto fail3;
 -      } else {
 -              rtlpriv->mac80211.mac80211_registered = 1;
        }
  
        err = sysfs_create_group(&pdev->dev.kobj, &rtl_attribute_group);
Simple merge
Simple merge