1. 21 6月, 2016 14 次提交
  2. 20 6月, 2016 4 次提交
  3. 19 6月, 2016 6 次提交
  4. 18 6月, 2016 16 次提交
    • P
      net: ethernet: et131x: use phy_ethtool_{get|set}_link_ksettings · adc01582
      Philippe Reynes 提交于
      There are two generics functions phy_ethtool_{get|set}_link_ksettings,
      so we can use them instead of defining the same code in the driver.
      Signed-off-by: NPhilippe Reynes <tremyfr@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      adc01582
    • P
      net: ethernet: et131x: use phydev from struct net_device · a0bbb9fe
      Philippe Reynes 提交于
      The private structure contain a pointer to phydev, but the structure
      net_device already contain such pointer. So we can remove the pointer
      phydev in the private structure, and update the driver to use the
      one contained in struct net_device.
      Signed-off-by: NPhilippe Reynes <tremyfr@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a0bbb9fe
    • W
      RDS: TCP: Fix non static symbol warnings · af73e72d
      Wei Yongjun 提交于
      Fixes the following sparse warnings:
      
      net/rds/tcp.c:59:5: warning:
       symbol 'rds_tcp_min_sndbuf' was not declared. Should it be static?
      net/rds/tcp.c:60:5: warning:
       symbol 'rds_tcp_min_rcvbuf' was not declared. Should it be static?
      Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Acked-by: NSowmini Varadhan <sowmini.varadhan@oracle.com>
      Acked-by: NSantosh Shilimkar <santosh.shilimkar@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      af73e72d
    • W
      net:liquidio: remove unused including <linux/version.h> · 2dce5fbf
      Wei Yongjun 提交于
      Remove including <linux/version.h> that don't need it.
      Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2dce5fbf
    • W
      gtp: remove unused including <linux/version.h> · c3f3cbfb
      Wei Yongjun 提交于
      Remove including <linux/version.h> that don't need it.
      Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c3f3cbfb
    • D
      Merge tag 'linux-can-next-for-4.8-20160617' of... · 6762ef35
      David S. Miller 提交于
      Merge tag 'linux-can-next-for-4.8-20160617' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next
      
      Marc Kleine-Budde says:
      
      ====================
      pull-request: can-next 2016-06-17
      
      this is a pull request of 14 patches for net-next/master.
      
      Geert Uytterhoeven contributes a patch that adds a file patterns for
      CAN device tree bindings to MAINTAINERS. A patch by Alexander Aring
      fixes warnings when building without proc support. A patch by me
      improves the sample point calculation. Marek Vasut's patch converts
      the slcan driver to use CAN_MTU. A patch by William Breathitt Gray
      converts the tscan1 driver to use module_isa_driver.
      
      Two patches by Maximilian Schneider for the gs_usb driver fix coding
      style and add support for set_phys_id callback. 5 patches by Oliver
      Hartkopp add support for CANFD to the bcm. And finally two patches
      by Ramesh Shanmugasundaram, which add support for the rcar_canfd
      driver.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6762ef35
    • D
      Merge branch 'cpsw-delete-rx_descs' · 59494dd6
      David S. Miller 提交于
      Ivan Khoronzhuk says:
      
      ====================
      net: ethernet: ti: cpsw: delete rx_descs property
      
      There is no reason in rx_descs property because davinici_cpdma
      driver splits pool of descriptors equally between tx and rx channels.
      So, this patch series makes driver to use available number of
      descriptors for rx channels.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      59494dd6
    • I
      Documentation: DT: cpsw: remove rx_descs property · 6774b68b
      Ivan Khoronzhuk 提交于
      There is no reason to hold s/w dependent parameter in device tree.
      Even more, there is no reason in this parameter because davinici_cpdma
      driver splits pool of descriptors equally between tx and rx channels
      anyway.
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6774b68b
    • I
      net: ethernet: ti: cpsw: remove rx_descs property · 1793331e
      Ivan Khoronzhuk 提交于
      There is no reason in rx_descs property because davinici_cpdma
      driver splits pool of descriptors equally between tx and rx channels.
      That is, if number of descriptors 256, 128 of them are for rx
      channels. While receiving, the descriptor is freed to the pool and
      then allocated with new skb. And if in DT the "rx_descs" is set to
      64, then 128 - 64 = 64 descriptors are always in the pool and cannot
      be used, for tx, for instance. It's not correct resource usage,
      better to set it to half of pool, then the rx pool can be used in
      full. It will not have any impact on performance, as anyway, the
      "redundant" descriptors were unused.
      Signed-off-by: NIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1793331e
    • D
      tipc: potential shift wrapping bug in map_set() · 0350cb48
      Dan Carpenter 提交于
      "up_map" is a u64 type but we're not using the high 32 bits.
      
      Fixes: 35c55c98 ('tipc: add neighbor monitoring framework')
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0350cb48
    • D
      Merge branch 'vrf-next' · 8c0c07a3
      David S. Miller 提交于
      David Ahern says:
      
      ====================
      net: vrf: Fix ipv6 source address selection
      
      IPv6 address selection is currently messed up for several use cases such
      as unnumbered deployments with global addresses on the VRF device and none
      on the enslaved devices.
      
      Update the source address selection to consider the real output route as
      opposed to the VRF route that sends packets to the VRF device first (ie.,
      implement get_saddr6 similar to the IPv4 method) and update the IPv6
      address selection to consider L3 domains and preference for addresses on
      the VRF device).
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8c0c07a3
    • D
      net: ipv6: Address selection needs to consider L3 domains · afbac601
      David Ahern 提交于
      IPv6 version of 3f2fb9a8 ("net: l3mdev: address selection should only
      consider devices in L3 domain") and the follow up commit, a17b693cdd876
      ("net: l3mdev: prefer VRF master for source address selection").
      
      That is, if outbound device is given then the address preference order
      is an address from that device, an address from the master device if it
      is enslaved, and then an address from a device in the same L3 domain.
      Signed-off-by: NDavid Ahern <dsa@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      afbac601
    • D
      net: vrf: Implement get_saddr for IPv6 · 0d240e78
      David Ahern 提交于
      IPv6 source address selection needs to consider the real egress route.
      Similar to IPv4 implement a get_saddr6 method which is called if
      source address has not been set.  The get_saddr6 method does a full
      lookup which means pulling a route from the VRF FIB table and properly
      considering linklocal/multicast destination addresses. Lookup failures
      (eg., unreachable) then cause the source address selection to fail
      which gets propagated back to the caller.
      Signed-off-by: NDavid Ahern <dsa@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0d240e78
    • D
      net: ipv6: Move ip6_route_get_saddr to inline · a2e2ff56
      David Ahern 提交于
      VRF driver needs access to ip6_route_get_saddr code. Since it does
      little beyond ipv6_dev_get_saddr and ipv6_dev_get_saddr is already
      exported for modules move ip6_route_get_saddr to the header as an
      inline.
      
      Code move only; no functional change.
      Signed-off-by: NDavid Ahern <dsa@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a2e2ff56
    • S
      net: lantiq_etop: remove unused variable · 0023a061
      Sudip Mukherjee 提交于
      The variable i was declared but was never used and we were getting a
      build warning for that.
      Signed-off-by: NSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0023a061
    • D
      Merge branch 'tunnel-offload-future-proof' · 832dfd1f
      David S. Miller 提交于
      Alexander Duyck says:
      
      ====================
      Future-proof tunnel offload handlers
      
      These patches are meant to address two things.  First we are currently
      using the ndo_add/del_vxlan_port calls with VXLAN-GPE tunnels and we
      cannot really support that as it is likely to cause more harm than
      good since VXLAN-GPE can support tunnels without a MAC address on the
      inner header.
      
      As such we need to add a new offload to advertise this, but in doing so it
      would mean introducing 3 new functions for the driver to request the ports,
      and then for the tunnel to push the changes to add and delete the ports to
      the device.  However instead of taking that approach I think it would be
      much better if we just made one common function for fetching the ports, and
      provided a generic means to push the tunnels to the device.  So in order to
      make this work this patch set does several things.
      
      First it merges the existing VXLAN and GENEVE functionality into one set of
      functions and passes an enum in order to specify the type of tunnel we want
      to offload.  By doing this we only have to extend this enum in the future
      if we want to add additional types.
      
      Second it goes through the drivers replacing all of the tunnel specific
      offload calls with implementations that support the generic calls so that
      we can drop the VXLAN and GENEVE specific calls entirely.
      
      Finally I go through in the last patch and replace the VXLAN specific
      offload request that was being used for VXLAN-GPE with one that specifies
      if we want to offload VXLAN or VXLAN-GPE so that the hardware can decide if
      it can actually support it or not.
      
      I also ended up with some minor clean-up built into the driver patches for
      this.  Most of it is to either fix misuse of build flags, specifying a type
      to ignore instead of the type that should be used, or in the case of ixgbe
      I actually moved a rtnl_lock/unlock in order to avoid taking it unless it
      was actually needed.
      
      v2:
      I did my best to remove the word "offload" from any of the calls or
      notifiers as this isn't really an offload.  It
       is a workaround for the fact that the drivers don't provide basic features
      like CHECKSUM_COMPLETE.  I also added a disclaimer to the section defining
      the function prototypes explaining that these are essentially workarounds.
      
      I ended up going through and stripping all of the VXLAN and GENEVE build
      flags from the drivers.  There isn't much point in carrying them.  In
      addition I dropped the use of the vxlan.h or geneve.h header files in favor
      of udp_tunnel.h in the cases where a driver didn't need anything from
      either of those headers.
      
      I updated the tunnel add/del functions so that they pass a udp_tunnel_info
      structure instead of a list of arguments.  This way we should be able to
      add additional information in the future with little impact on the other
      drivers.
      
      I updated bnxt so that it doesn't use a hard-coded port number for GENEVE.
      
      I have been able to test mlx4e, mlx5e, and i40e and verified functionality
      on these drivers.  Though there are patches for the net tree I submitted
      due to unrelated bugs I found in the mlx4e and i40e/i40evf drivers.
      
      v3:
      Fixed a typo that caused us to add geneve port when we should have been
      deleting it.
      
      Ended up dropping geneve and vxlan wrappers for
      udp_tunnel_notify_rx_add/del_port and instead just called them directly.
      
      Updated comments for functions to call out RTNL instead of port lock.
      
      Updated patch description to remove changes that were moved into a second
      patch.
      
      Rebased on latest net-next to fix merge conflict on bnxt driver.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      832dfd1f