1. 24 3月, 2015 28 次提交
  2. 21 3月, 2015 12 次提交
    • H
      netlink: Remove netlink_compare_arg.trailer · 8f2ddaac
      Herbert Xu 提交于
      Instead of computing the offset from trailer, this patch computes
      netlink_compare_arg_len from the offset of portid and then adds 4
      to it.  This allows trailer to be removed.
      Reported-by: NDavid Miller <davem@davemloft.net>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8f2ddaac
    • D
      Merge branch 'netcp-next' · 69a3b16f
      David S. Miller 提交于
      Murali Karicheri says:
      
      ====================
      NetCP: Add support for version 1.5
      
      NetCP 1.5 is used in newer K2 SoCs from Texas Instruments
      such as K2E, K2L etc. This patch series add support for Ethss
      driver for this version of NetCP. While at it, fix couple of
      bugs in the original driver.
      
      One of the earlier patch "net: netcp: select davinci_mdio driver
      by default" is folded onto this series.
      
      Please review and let me know your comments.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      69a3b16f
    • W
      net: netcp: ethss: enhancement to support NetCP 1.5 ethss · 9a391c7b
      WingMan Kwok 提交于
      NetCP 1.5 available on newer K2 SoCs such as K2E and K2L introduced 3
      variants of the ethss subsystem, 9 port, 5 port and 2 port. These have
      one host port towards the CPU and N external slave ports.
      
      To customize the driver for these new ethss sub systems, multiple
      compatibility strings are introduced. Currently some of parameters that
      are different on different variants such as number of ALE ports, stats
      modules and number of ports are defined through constants. These are now
      changed to variables in gbe_priv data that get set based on the
      compatibility string. This is required as there are no hardware
      identification registers available to distinguish among the variants
      of NetCP 1.5 ethss. However there is identification register available
      to differentiate between NetCP 1.4 vs NetCP 1.5 and the same is made use
      of in the code to differentiate them.
      
      For more reading on the details of this peripheral, please refer to the
      User Guide available at http://www.ti.com/lit/pdf/spruhz3Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
      Signed-off-by: NWingMan Kwok <w-kwok2@ti.com>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: Mugunthan V N <mugunthanvnm@ti.com>
      CC: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
      CC: Grygorii Strashko <grygorii.strashko@ti.com>
      CC: Christoph Jaeger <cj@linux.com>
      CC: Lokesh Vutla <lokeshvutla@ti.com>
      CC: Markus Pargmann <mpa@pengutronix.de>
      CC: Kumar Gala <galak@codeaurora.org>
      CC: Ian Campbell <ijc+devicetree@hellion.org.uk>
      CC: Mark Rutland <mark.rutland@arm.com>
      CC: Pawel Moll <pawel.moll@arm.com>
      CC: Rob Herring <robh+dt@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9a391c7b
    • K
      net: netcp: enclose macros in parentheses · da866ba0
      Karicheri, Muralidharan 提交于
      Fix following checkpatch error. It seems to have passed checkpatch
      last time when original code was introduced.
      
       ERROR: Macros with complex values should be enclosed in parentheses
       #172: FILE: drivers/net/ethernet/ti/netcp_ethss.c:869:
      Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
      Signed-off-by: NWingMan Kwok <w-kwok2@ti.com>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: Mugunthan V N <mugunthanvnm@ti.com>
      CC: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
      CC: Grygorii Strashko <grygorii.strashko@ti.com>
      CC: Christoph Jaeger <cj@linux.com>
      CC: Lokesh Vutla <lokeshvutla@ti.com>
      CC: Markus Pargmann <mpa@pengutronix.de>
      CC: Kumar Gala <galak@codeaurora.org>
      CC: Ian Campbell <ijc+devicetree@hellion.org.uk>
      CC: Mark Rutland <mark.rutland@arm.com>
      CC: Pawel Moll <pawel.moll@arm.com>
      CC: Rob Herring <robh+dt@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      da866ba0
    • K
      net: netcp: select davinci_mdio driver by default · f49ae149
      Karicheri, Muralidharan 提交于
      Keystone netcp driver re-uses davinci mdio driver. So enable it
      by default for keystone netcp driver.
      Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
      Signed-off-by: NWingMan Kwok <w-kwok2@ti.com>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: Mugunthan V N <mugunthanvnm@ti.com>
      CC: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
      CC: Grygorii Strashko <grygorii.strashko@ti.com>
      CC: Christoph Jaeger <cj@linux.com>
      CC: Lokesh Vutla <lokeshvutla@ti.com>
      CC: Markus Pargmann <mpa@pengutronix.de>
      CC: Kumar Gala <galak@codeaurora.org>
      CC: Ian Campbell <ijc+devicetree@hellion.org.uk>
      CC: Mark Rutland <mark.rutland@arm.com>
      CC: Pawel Moll <pawel.moll@arm.com>
      CC: Rob Herring <robh+dt@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f49ae149
    • K
      net: netcp: use separate reg region for individual ethss modules · 21e0e0dd
      Karicheri, Muralidharan 提交于
      Ethss has multiple modules within the sub system
       - switch sub system
       - sgmii
       - mdio
       - switch module
      
      NetCP driver re-uses existing davinci mdio driver. It requires to
      have its own register region to map the reg space. So restructure
      the code to use separate reg region for the individual modules it
      manages. Use range property to define register space of NetCP and
      use reg property to define individual reg spaces. So MDIO will have
      its own reg space to map. This is a pre-requisite to enable MDIO
      driver for NetCP.
      Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
      Signed-off-by: NWingMan Kwok <w-kwok2@ti.com>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: Mugunthan V N <mugunthanvnm@ti.com>
      CC: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
      CC: Grygorii Strashko <grygorii.strashko@ti.com>
      CC: Christoph Jaeger <cj@linux.com>
      CC: Lokesh Vutla <lokeshvutla@ti.com>
      CC: Markus Pargmann <mpa@pengutronix.de>
      CC: Kumar Gala <galak@codeaurora.org>
      CC: Ian Campbell <ijc+devicetree@hellion.org.uk>
      CC: Mark Rutland <mark.rutland@arm.com>
      CC: Pawel Moll <pawel.moll@arm.com>
      CC: Rob Herring <robh+dt@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      21e0e0dd
    • K
      net: netcp: fix forward port number usage for 10G ethss · e170f409
      Karicheri, Muralidharan 提交于
      10G switch requires forward port number in the taginfo field,
      where as it should be in packet_info field for necp 1.4 Ethss. So
      fill this value correctly in the knav dma descriptor.
      
      Also rename dma_psflags field in struct netcp_tx_pipe to switch_to_port
      as it contain no flag, but the switch port number for forwarding the
      packet. Add a flag to hold the new flag,  SWITCH_TO_PORT_IN_TAGINFO which
      will be set for 10G. This can also used in the future for other flags for
      the tx_pipe.
      Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
      Signed-off-by: NWingMan Kwok <w-kwok2@ti.com>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: Mugunthan V N <mugunthanvnm@ti.com>
      CC: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
      CC: Grygorii Strashko <grygorii.strashko@ti.com>
      CC: Christoph Jaeger <cj@linux.com>
      CC: Lokesh Vutla <lokeshvutla@ti.com>
      CC: Markus Pargmann <mpa@pengutronix.de>
      CC: Kumar Gala <galak@codeaurora.org>
      CC: Ian Campbell <ijc+devicetree@hellion.org.uk>
      CC: Mark Rutland <mark.rutland@arm.com>
      CC: Pawel Moll <pawel.moll@arm.com>
      CC: Rob Herring <robh+dt@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e170f409
    • Y
    • Y
      net: neighbour: Add mcast_resolicit to configure the number of multicast... · 8da86466
      YOSHIFUJI Hideaki/吉藤英明 提交于
      net: neighbour: Add mcast_resolicit to configure the number of multicast resolicitations in PROBE state.
      
      We send unicast neighbor (ARP or NDP) solicitations ucast_probes
      times in PROBE state.  Zhu Yanjun reported that some implementation
      does not reply against them and the entry will become FAILED, which
      is undesirable.
      
      We had been dealt with such nodes by sending multicast probes mcast_
      solicit times after unicast probes in PROBE state.  In 2003, I made
      a change not to send them to improve compatibility with IPv6 NDP.
      
      Let's introduce per-protocol per-interface sysctl knob "mcast_
      reprobe" to configure the number of multicast (re)solicitation for
      reconfirmation in PROBE state.  The default is 0, since we have
      been doing so for 10+ years.
      Reported-by: NZhu Yanjun <Yanjun.Zhu@windriver.com>
      CC: Ulf Samuelsson <ulf.samuelsson@ericsson.com>
      Signed-off-by: NYOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
      Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8da86466
    • R
      bgmac: allow enabling on ARCH_BCM_5301X · fc300dc3
      Rafał Miłecki 提交于
      Home routers based on ARM SoCs like BCM4708 also have bcma bus with core
      supported by bgmac.
      Signed-off-by: NRafał Miłecki <zajec5@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fc300dc3
    • R
      bgmac: register fixed PHY for ARM BCM470X / BCM5301X chipsets · c25b23b8
      Rafał Miłecki 提交于
      On ARM SoCs with bgmac Ethernet hardware we don't have any normal PHY.
      There is always a switch attached but it's not even controlled over MDIO
      like in case of MIPS devices.
      We need a fixed PHY to be able to send/receive packets from the switch.
      Signed-off-by: NRafał Miłecki <zajec5@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c25b23b8
    • D
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · df814d96
      David S. Miller 提交于
      Jeff Kirsher says:
      
      ====================
      Intel Wired LAN Driver Updates 2015-03-20
      
      This series contains updates to ixgb, e1000e, igb and igbvf.
      
      Eliezer and Todd provide patches to fix a potential issue found during code
      inspection.  When bringing down an interface netif_carrier_off() should
      be one of the first things we do, since this will prevent the stack from
      queueing more packets to this interface.
      
      Yanir provides a fix for e1000e that was found in validating i219,
      where the call to e1000e_write_protect_nvm_ich8lan() is no longer
      supported in newer hardware.  Access to these registers causes a
      system freeze in early steppings and is ignored in later steppings.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      df814d96