1. 31 12月, 2015 16 次提交
    • D
      Merge branch 'ethtool-phy-stats' · ccac0425
      David S. Miller 提交于
      Andrew Lunn says:
      
      ====================
      Ethtool support for phy stats
      
      This patchset add ethtool support for reading statistics from the PHY.
      The Marvell and Micrel Phys are then extended to report receiver
      packet errors and idle errors.
      
      v2:
        Fix linking when phylib is not enabled.
      v3:
        Inline helpers into ethtool.c, so fixing when phylib is a module.
      v4:
        Add missing static
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ccac0425
    • A
      phy: micrel: Add ethtool statistics counters · 2b2427d0
      Andrew Lunn 提交于
      The PHY counters receiver errors and errors while idle.
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2b2427d0
    • A
      phy: marvell: Add ethtool statistics counters · d2fa47d9
      Andrew Lunn 提交于
      The PHY counters receiver errors and errors while idle.
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d2fa47d9
    • A
      ethtool: Add phy statistics · f3a40945
      Andrew Lunn 提交于
      Ethernet PHYs can maintain statistics, for example errors while idle
      and receive errors. Add an ethtool mechanism to retrieve these
      statistics, using the same model as MAC statistics.
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f3a40945
    • D
      Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · a3748a9c
      David S. Miller 提交于
      Jeff Kirsher says:
      
      ====================
      10GbE Intel Wired LAN Driver Updates 2015-12-29
      
      This series contains updates to ixgbe and ixgbevf.
      
      William Dauchy provides a fix for ixgbevf that was implemented for ixgbe,
      commit 5d6002b7 ("ixgbe: Fix handling of NAPI budget when multiple
      queues are enabled per vector"). The issue was that the polling routine
      would increase the budget for receive to at least 1 per queue if multiple
      queues were present, which resulted in receive packets being processed
      when the budget was 0.
      
      Emil provides minor cleanups for ixgbevf, one being that we need to
      check rx_itr_setting with == and not &, since it is not a mask.  Added
      QSFP PHY support in ixgbe to allow for more accurate reporting of port
      settings.  Fixed the max RSS limit for X550 which is 63, not 64.
      
      Veola fixes ixgbe ethtool reporting of backplane type interfaces as
      1000/10000baseT link modes, instead, report the media as KR, KX or KX4
      based on the backplane interface present.
      
      Mark cleans up redundancy in the setting of hw_enc_features that makes
      it appear that X550 has more encapsulation features than other devices.
      Also do not set NETIF_F_SG any longer since that is set by the
      register_netdev() call.  Also fixed the X550EM_x revision check, which
      needs to check a value, not just a bit.
      
      Alex Duyck fixes additional bugs in ixgbe_clear_vf_vlans(), one being
      that the mask was using a divide instead of a modulus, which resulted
      in the mask bit being incorrectly set to 0 or 1 based on the value of
      the VF being tested.  Alex also found that he was not consistent in
      using the "word" argument as an offset or as a register offset, so
      made the code consistently use word as the offset in the array.
      
      v2: dropped patch 8 of the original series, as it was undoing a part of
          the fix Alex Duyck was doing in patch 9 of the original series.
          Dropped based on feedback from Emil (the author).
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a3748a9c
    • D
      Merge branch 'be2net-next' · 1ab8c11f
      David S. Miller 提交于
      Sathya Perla says:
      
      ====================
      be2net: patch set
      
      The following patch set contains some feature additions, code re-organization
      and cleanup and a few non-critical fixes. Pls consider applying this to
      the net-next tree. Thanks.
      
      v3 changes: add a default case to the switch statement in patch 5 to
      satisfy the compiler (-Wswitch).
      v2 changes: replaced an if/else block that checks for error values with a
      switch/case statement in patch 5.
      
      Patch 1 fixes VF link state transition from disabled to auto that did
      not work due to an issue in the FW. This issue could not be fixed in FW due
      to some backward compatibility issues it causes with released drivers.
      The issue has been fixed by introducing a new version (v2) of the cmd
      from 10.6 FW onwards. This patch adds support for v2 version of this cmd.
      
      Patch 2 reports a EOPNOTSUPP status to ethtool when the user tries to
      configure BE3/SRIOV in VEPA mode as it is not supported by the chip.
      
      Patch 3 cleansup FW flash image related constant definitions. Many of these
      definitions (such as section offset values) were defined in decimal format
      rather than hexa-decimal. This makes this part of the code un-readable.
      Also some defines related to BE2 are labeld "g2" and defines related to BE3
      are labeled "g3".  This patch cleans up all of this to make this code more
      readable.
      
      Patch 4 moves the FW cmd code to be_cmds.c. All code relating to FW cmds
      has been in be_cmds.[ch], excepting FW flash cmd related code.
      This patch moves these routines from be_main.c to be_cmds.c.
      
      Patch 5 adds a log message to report digital signature errors while
      flashing a FW image. From FW version 11.0 onwards, the FW supports a new
      "secure mode" feature (based on a jumper setting on the adapter.) In this
      mode, the FW image when flashed is authenticated with a digital signature.
      
      Patch 6 removes a line of code that has no effect.
      
      Patch 7 removes some unused variables.
      
      Patch 8 fixes port resource descriptor query via the GET_PROFILE FW cmd.
      An earlier commit passed a specific pf_num while issuing this cmd as FW
      returns descriptors for all functions when pf_num is zero. But, when pf_num
      is set to a non-zero value, FW does not return the port resource descriptor.
      This patch fixes this by setting pf_num to 0 while issuing the query cmd
      and adds code to pick the correct NIC resource descriptor from the list of
      descriptors returned by FW.
      
      Patch 9 adds support for ethtool get-dump feature. In the past when this
      option was not yet available, this feature was supported via the
      --register-dump option as a workaround.  This patch removes support for
      FW-dump via --register-dump option as it is now available via --get-dump
      option. Even though the "ethtool --register-dump" cmd which used to work
      earlier, will now fail with ENOTSUPP error, we feel it is not an issue as
      this is used only for diagnostics purpose.
      
      Patch 10 bumps up the driver version.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1ab8c11f
    • S
    • V
      be2net: support ethtool get-dump option · fd7ff6f0
      Venkat Duvvuru 提交于
      This patch adds support for ethtool's --get-dump option in be2net,
      to retrieve FW dump. In the past when this option was not yet available,
      this feature was supported via the --register-dump option as a workaround.
      This patch removes support for FW-dump via --register-dump option as it is
      now available via --get-dump option. Even though the
      "ethtool --register-dump" cmd which used to work earlier, will now fail
      with ENOTSUPP error, we feel it is not an issue as this is used only
      for diagnostics purpose.
      Signed-off-by: NVenkat Duvvuru <venkatkumar.duvvuru@avagotech.com>
      Signed-off-by: NSathya Perla <sathya.perla@avagotech.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fd7ff6f0
    • S
      be2net: fix port-res desc query of GET_PROFILE_CONFIG FW cmd · 980df249
      Suresh Reddy 提交于
      Commit 72ef3a88 ("be2net: set pci_func_num while issuing
      GET_PROFILE_CONFIG cmd") passed a specific pf_num while issuing a
      GET_PROFILE_CONFIG cmd as FW returns descriptors for all functions when
      pf_num is zero. But, when pf_num is set to a non-zero value, FW does not
      return the Port resource descriptor.
      This patch fixes this by setting pf_num to 0 while issuing the query cmd
      and adds code to pick the correct NIC resource descriptor from the list of
      descriptors returned by FW.
      
      Fixes: 72ef3a88 ("be2net: set pci_func_num while issuing
      		     GET_PROFILE_CONFIG cmd")
      Signed-off-by: NSuresh Reddy <suresh.reddy@avagotech.com>
      Signed-off-by: NSathya Perla <sathya.perla@avagotech.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      980df249
    • V
      be2net: remove unused error variables · 04e888de
      Venkat Duvvuru 提交于
      eeh_error, fw_timeout, hw_error variables in the be_adapter structure are
      not used anymore. An earlier patch that introduced adapter->err_flags to
      store this information missed removing these variables.
      Signed-off-by: NVenkat Duvvuru <venkatkumar.duvvuru@avagotech.com>
      Signed-off-by: NSathya Perla <sathya.perla@avagotech.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      04e888de
    • S
      be2net: remove a line of code that has no effect · fdf81bfb
      Sathya Perla 提交于
      This patch removes a line of code that changes adapter->recommended_prio
      value followed by yet another assignment.
      Also, the variable is used to store the vlan priority value that is already
      shifted to the PCP bits position in the vlan tag format. Hence, the name of
      this variable is changed to recommended_prio_bits.
      Signed-off-by: NSathya Perla <sathya.perla@avagotech.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fdf81bfb
    • S
      be2net: log digital signature errors while flashing FW image · 6b525782
      Suresh Reddy 提交于
      (based on a jumper setting on the adapter.) In this mode, the FW image when
      flashed is authenticated with a digital signature. This patch logs
      appropriate error messages and return a status to ethtool when errors
      relating to FW image authentication occur.
      Signed-off-by: NSuresh Reddy <suresh.reddy@avagotech.com>
      Signed-off-by: NSathya Perla <sathya.perla@avagotech.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6b525782
    • S
      be2net: move FW flash cmd code to be_cmds.c · a23113b5
      Suresh Reddy 提交于
      All code relating to FW cmds is in be_cmds.[ch] excepting FW flash cmd
      related code. This patch moves these routines from be_main.c to be_cmds.c
      Signed-off-by: NSuresh Reddy <suresh.reddy@avagotech.com>
      Signed-off-by: NSathya Perla <sathya.perla@avagotech.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a23113b5
    • S
      be2net: cleanup FW flash image related macro defines · 8836ff48
      Suresh Reddy 提交于
      Many constant definitions relating to the FW-image layout
      (such as section offset values) were defined in decimal format rather than
      hexa-decimal. This makes this part of the code un-readable. Also some
      defines related to BE2 are labeld "g2" and defines related to BE3 are
      labeled "g3".  This patch cleans up all of this to make this code more
      readable.
      Signed-off-by: NSuresh Reddy <suresh.reddy@avagotech.com>
      Signed-off-by: NSathya Perla <sathya.perla@avagotech.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8836ff48
    • S
      be2net: avoid configuring VEPA mode on BE3 · ac0f5fba
      Suresh Reddy 提交于
      BE3 chip doesn't support VEPA mode.
      Signed-off-by: NSuresh Reddy <suresh.reddy@avagotech.com>
      Signed-off-by: NSathya Perla <sathya.perla@avagotech.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ac0f5fba
    • S
      be2net: fix VF link state transition from disabled to auto · d9d426af
      Suresh Reddy 提交于
      The VF link state setting transition from "disable" to "auto" does not work
      due to a bug in SET_LOGICAL_LINK_CONFIG_V1 cmd in FW. This issue could not
      be fixed in FW due to some backward compatibility issues it causes with
      some released drivers. The issue has been fixed by introducing a new
      version (v2) of the cmd from 10.6 FW onwards. In v2, to set the VF link
      state to auto, both PLINK_ENABLE and PLINK_TRACK bits have to be set to 1.
      
      The VF link state setting feature now works on Lancer chips too from
      FW ver 10.6.315.0 onwards.
      Signed-off-by: NSuresh Reddy <suresh.reddy@avagotech.com>
      Signed-off-by: NSathya Perla <sathya.perla@avagotech.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d9d426af
  2. 30 12月, 2015 14 次提交
  3. 28 12月, 2015 10 次提交