1. 01 10月, 2017 6 次提交
    • M
      bpf: Fix compiler warning on info.map_ids for 32bit platform · 721e08da
      Martin KaFai Lau 提交于
      This patch uses u64_to_user_ptr() to cast info.map_ids to a userspace ptr.
      It also tags the user_map_ids with '__user' for sparse check.
      
      Fixes: cb4d2b3f ("bpf: Add name, load_time, uid and map_ids to bpf_prog_info")
      Signed-off-by: NMartin KaFai Lau <kafai@fb.com>
      Acked-by: NDaniel Borkmann <daniel@iogearbox.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      721e08da
    • C
      net_sched: remove redundant assignment to ret · b1c49d14
      Colin Ian King 提交于
      The assignment of -EINVAL to variable ret is redundant as it
      is being overwritten on the following error exit paths or
      to the return value from the following call to basic_set_parms.
      Fix this up by removing it. Cleans up clang warning message:
      
      net/sched/cls_basic.c:185:2: warning: Value stored to 'err' is never read
      
      Fixes: 1d8134fe ("net_sched: use idr to allocate basic filter handles")
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Acked-by: NCong Wang <xiyou.wangcong@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b1c49d14
    • C
      net: ipmr: make function ipmr_notifier_init static · ef739d8a
      Colin Ian King 提交于
      The function ipmr_notifier_init is local to the source and does
      not need to be in global scope, so make it static.
      
      Cleans up sparse warning:
      warning: symbol 'ipmr_notifier_init' was not declared. Should it be static?
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ef739d8a
    • M
      ibmvnic: Set state UP · e876a8a7
      Mick Tarsel 提交于
      State is initially reported as UNKNOWN. Before register call
      netif_carrier_off(). Once the device is opened, call netif_carrier_on() in
      order to set the state to UP.
      Signed-off-by: NMick Tarsel <mjtarsel@linux.vnet.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e876a8a7
    • F
      Revert "net: dsa: bcm_sf2: Defer port enabling to calling port_enable" · 21a2774e
      Florian Fainelli 提交于
      This reverts commit e85ec74a ("net: dsa: bcm_sf2: Defer port
      enabling to calling port_enable") because this now makes an unbind
      followed by a bind to fail connecting to the ingrated PHY.
      
      What this patch missed is that we need the PHY to be enabled with
      bcm_sf2_gphy_enable_set() before probing it on the MDIO bus. This is
      correctly done in the ops->setup() function, but by the time
      ops->port_enable() runs, this is too late. Upon unbind we would power
      down the PHY, and so when we would bind again, the PHY would be left
      powered off.
      
      Fixes: e85ec74a ("net: dsa: bcm_sf2: Defer port enabling to calling port_enable")
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      21a2774e
    • D
      Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · a6992ebe
      David S. Miller 提交于
      Jeff Kirsher says:
      
      ====================
      40GbE Intel Wired LAN Driver Updates 2017-09-29
      
      This series contains updates to i40e and i40evf only.
      
      Jake provides several of the changes starting with the renaming of a
      variable to clarify what the value is actually calculating. Found we
      were misusing the __I40E_RECOVERY_PENDING bit to determine when we
      should actually request a new IRQ in i40e_setup_misc_vector(), which
      lead to a design mistake, so to resolve the issue, use a separate
      state bit for miscellaneous IRQ setup and fix up the design while we
      are at it.  Cleaned up the old legacy PM support in the driver since
      we support the newer generic PM callbacks.  Fixed a failure to
      hibernate issue, where on some platforms with a large number of CPUs,
      we would allocate many IRQ vectors which we would try to migrate to
      CPU0 when hibernating.
      
      Sudheer cleans up a check for unqualified module inside i40e_up_complete()
      because the link state information is in flux at time, so log messages
      are getting logged with incorrect link state information.  Also provided
      additional log message cleanups and simplify member variable access in
      the printing of the link messages.
      
      Mariusz relaxes the firmware check since Fortville and Fort Park NICs
      can and do have different firmware versions, so only warn for older
      Fortville firmware.  Fixed an errata with a flow director statistic that
      was not wrapping as expected, simply reset after reading.
      
      Mitch prevents consternation by lowering the log level to debug on a
      message seen regularly on VF reset or unload, which is meaningless under
      normal circumstances.  Refactor the firmware version checking since
      Fortville and Fort Park devices can have different firmware versions.
      
      Alan fixes a ring to vector mapping, where the past implementation
      attempted to map each Tx and Rx ring to its own vector, however we use
      combined queues so we should be mapping the Tx/Rx rings together on one
      vector.  Adds the ability for the VF to request a different number of
      queues allocated to it.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a6992ebe
  2. 30 9月, 2017 18 次提交
  3. 29 9月, 2017 16 次提交