1. 27 8月, 2015 14 次提交
  2. 26 8月, 2015 6 次提交
    • G
      enic: reduce ioread in devcmd2 · dafc2199
      Govindarajulu Varadarajan 提交于
      posted_index is RO in firmware. We need not do ioread everytime to get
      posted index. Store posted index locally.
      Signed-off-by: NGovindarajulu Varadarajan <_govind@gmx.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dafc2199
    • C
      r8169: Add values missing in @get_stats64 from HW counters · 6e85d5ad
      Corinna Vinschen 提交于
      The r8169 driver collects statistical information returned by
      @get_stats64 by counting them in the driver itself, even though many
      (but not all) of the values are already collected by tally counters
      (TCs) in the NIC.  Some of these TC values are not returned by
      @get_stats64.  Especially the received multicast packages are missing
      from /proc/net/dev.
      
      Rectify this by fetching the TCs and returning them from
      rtl8169_get_stats64.
      
      The counters collected in the driver obviously disappear as soon as the
      driver is unloaded so after a driver is loaded the counters always start
      at 0. The TCs on the other hand are only reset by a power cycle.  Without
      further considerations the values collected by the driver would not match
      up against the TC values.
      
      This patch introduces a new function rtl8169_reset_counters which
      resets the TCs.  Also, since rtl8169_reset_counters shares most of
      its code with rtl8169_update_counters, refactor the shared code into
      two new functions  rtl8169_map_counters and rtl8169_unmap_counters.
      
      Unfortunately chip versions prior to RTL_GIGA_MAC_VER_19 don't allow
      to reset the TCs programatically.  Therefore introduce an addition to
      the rtl8169_private struct and a function rtl8169_init_counter_offsets
      to store the TCs at first rtl_open.  Use these values as offsets in
      rtl8169_get_stats64.  Propagate a failure to reset *and* update the
      counters up to rtl_open and emit a warning message, if so.
      Signed-off-by: NCorinna Vinschen <vinschen@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6e85d5ad
    • H
      net: sun4i-emac: Claim emac sram · 542a64c7
      Hans de Goede 提交于
      Claim the emac sram ourselves, rather then relying on the bootloader
      having mapped the sram to the emac controller during boot.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      542a64c7
    • R
      net/mlx5e: Avoid accessing NULL pointer at ndo_select_queue · 5283af89
      Rana Shahout 提交于
      To avoid multiply/division operations on the data path,
      we hold a {channel, tc}==>txq mapping table.
      We held this mapping table inside the channel object that is
      being destroyed upon some configuration operations (e.g MTU change).
      So in case ndo_select_queue occurs during such a configuration operation,
      it may access a NULL channel pointer, resulting in kernel panic.
      To fix this issue we moved the {channel, tc}==>txq mapping table
      outside the channel object so that it will be available also
      during such configuration operations.
      Signed-off-by: NRana Shahout <ranas@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5283af89
    • J
      mlxsw: fix error return code · 5c121979
      Julia Lawall 提交于
      Return a negative error code on failure.
      
      A simplified version of the semantic match that finds this problem is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      identifier ret; expression e1,e2;
      @@
      (
      if (\(ret < 0\|ret != 0\))
       { ... return ret; }
      |
      ret = 0
      )
      ... when != ret = e1
          when != &ret
      *if(...)
      {
        ... when != ret = e2
            when forall
       return ret;
      }
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5c121979
    • J
      net: davinci_emac: fix error return code · 1ef53ebf
      Julia Lawall 提交于
      Propagate error code on failure.
      
      A simplified version of the semantic match that finds this problem is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      identifier ret; expression e1,e2;
      @@
      (
      if (\(ret < 0\|ret != 0\))
       { ... return ret; }
      |
      ret = 0
      )
      ... when != ret = e1
          when != &ret
      *if(...)
      {
        ... when != ret = e2
            when forall
       return ret;
      }
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1ef53ebf
  3. 25 8月, 2015 1 次提交
  4. 24 8月, 2015 5 次提交
  5. 22 8月, 2015 1 次提交
  6. 21 8月, 2015 3 次提交
  7. 19 8月, 2015 10 次提交