1. 17 9月, 2018 6 次提交
  2. 14 9月, 2018 23 次提交
  3. 13 9月, 2018 11 次提交
    • A
      ipv6: Add sockopt IPV6_MULTICAST_ALL analogue to IP_MULTICAST_ALL · 15033f04
      Andre Naujoks 提交于
      The socket option will be enabled by default to ensure current behaviour
      is not changed. This is the same for the IPv4 version.
      
      A socket bound to in6addr_any and a specific port will receive all traffic
      on that port. Analogue to IP_MULTICAST_ALL, disable this behaviour, if
      one or more multicast groups were joined (using said socket) and only
      pass on multicast traffic from groups, which were explicitly joined via
      this socket.
      
      Without this option disabled a socket (system even) joined to multiple
      multicast groups is very hard to get right. Filtering by destination
      address has to take place in user space to avoid receiving multicast
      traffic from other multicast groups, which might have traffic on the same
      port.
      
      The extension of the IP_MULTICAST_ALL socketoption to just apply to ipv6,
      too, is not done to avoid changing the behaviour of current applications.
      Signed-off-by: NAndre Naujoks <nautsch2@gmail.com>
      Acked-By: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      15033f04
    • D
      Merge branch 'Lantiq-Intel-vrx200-support' · d03790f5
      David S. Miller 提交于
      Hauke Mehrtens says:
      
      ====================
      Add support for Lantiq / Intel vrx200 network
      
      This adds basic support for the GSWIP (Gigabit Switch) found in the
      VRX200 SoC.
      There are different versions of this IP core used in different SoCs, but
      this driver was currently only tested on the VRX200 SoC line, for other
      SoCs this driver probably need some adoptions to work.
      
      I also plan to add Layer 2 offloading to the DSA driver and later also
      layer 3 offloading which is supported by the PPE HW block.
      
      All these patches should go through the net-next tree.
      
      This depends on the patch "MIPS: lantiq: dma: add dev pointer" which
      should go into 4.19.
      
      Changes since:
      v2:
       * Send patch "MIPS: lantiq: dma: add dev pointer" separately
       * all: removed return in register write functions
       * switch: uses phylink
       * switch: uses hardware MDIO auto polling
       * switch: use usleep_range() in MDIO busy check
       * switch: configure MDIO bus to 2.5 MHz
       * switch: disable xMII link when it is not used
       * Ethernet: use NAPI for TX cleanups
       * Ethernet: enable clock in open callback
       * Ethernet: improve skb allocation
       * Ethernet: use net_dev->stats
      
      v1:
       * Add "MIPS: lantiq: dma: add dev pointer"
       * checkpatch fixes a all patches
       * Added binding documentation
       * use readx_poll_timeout function and ETIMEOUT error code
       * integrate GPHY firmware loading into DSA driver
       * renamed to NET_DSA_LANTIQ_GSWIP
       * removed some needed casts
       * added of_device_id.data information about the detected switch
       * fixed John's email address
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d03790f5
    • H
      net: dsa: Add Lantiq / Intel DSA driver for vrx200 · 14fceff4
      Hauke Mehrtens 提交于
      This adds the DSA driver for the GSWIP Switch found in the VRX200 SoC.
      This switch is integrated in the DSL SoC, this SoC uses a GSWIP version
      2.1, there are other SoCs using different versions of this IP block, but
      this driver was only tested with the version found in the VRX200.
      Currently only the basic features are implemented which will forward all
      packages to the CPU and let the CPU do the forwarding. The hardware also
      support Layer 2 offloading which is not yet implemented in this driver.
      
      The GPHY FW loaded is now done by this driver and not any more by the
      separate driver in drivers/soc/lantiq/gphy.c, I will remove this driver
      is a separate patch. to make use of the GPHY this switch driver is
      needed anyway. Other SoCs have more embedded GPHYs so this driver should
      support a variable number of GPHYs. After the firmware was loaded the
      GPHY can be probed on the MDIO bus and it behaves like an external GPHY,
      without the firmware it can not be probed on the MDIO bus.
      
      The clock names in the sysctrl.c file have to be changed because the
      clocks are now used by a different driver. This should be cleaned up and
      a real common clock driver should provide the clocks instead.
      Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      14fceff4
    • H
      dt-bindings: net: dsa: Add lantiq, xrx200-gswip DT bindings · 86ce2bc7
      Hauke Mehrtens 提交于
      This adds the binding for the GSWIP (Gigabit switch) core found in the
      xrx200 / VR9 Lantiq / Intel SoC.
      
      This part takes care of the switch, MDIO bus, and loading the FW into
      the embedded GPHYs.
      Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
      Cc: devicetree@vger.kernel.org
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      86ce2bc7
    • H
      net: lantiq: Add Lantiq / Intel VRX200 Ethernet driver · fe1a5642
      Hauke Mehrtens 提交于
      This drives the PMAC between the GSWIP Switch and the CPU in the VRX200
      SoC. This is currently only the very basic version of the Ethernet
      driver.
      
      When the DMA channel is activated we receive some packets which were
      send to the SoC while it was still in U-Boot, these packets have the
      wrong header. Resetting the IP cores did not work so we read out the
      extra packets at the beginning and discard them.
      
      This also adapts the clock code in sysctrl.c to use the default name of
      the device node so that the driver gets the correct clock. sysctrl.c
      should be replaced with a proper common clock driver later.
      Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fe1a5642
    • H
      dt-bindings: net: Add lantiq, xrx200-net DT bindings · 839790e8
      Hauke Mehrtens 提交于
      This adds the binding for the PMAC core between the CPU and the GSWIP
      switch found on the xrx200 / VR9 Lantiq / Intel SoC.
      Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
      Cc: devicetree@vger.kernel.org
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      839790e8
    • H
      net: dsa: Add Lantiq / Intel GSWIP tag support · 79691192
      Hauke Mehrtens 提交于
      This handles the tag added by the PMAC on the VRX200 SoC line.
      
      The GSWIP uses internally a GSWIP special tag which is located after the
      Ethernet header. The PMAC which connects the GSWIP to the CPU converts
      this special tag used by the GSWIP into the PMAC special tag which is
      added in front of the Ethernet header.
      
      This was tested with GSWIP 2.1 found in the VRX200 SoCs, other GSWIP
      versions use slightly different PMAC special tags.
      Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      79691192
    • H
      MIPS: lantiq: Do not enable IRQs in dma open · cc973aec
      Hauke Mehrtens 提交于
      When a DMA channel is opened the IRQ should not get activated
      automatically, this allows it to pull data out manually without the help
      of interrupts. This is needed for a workaround in the vrx200 Ethernet
      driver.
      Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
      Acked-by: NPaul Burton <paul.burton@mips.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cc973aec
    • D
      aaf92530
    • T
      docs: net: Remove TCP congestion document · a20625e4
      Tobin C. Harding 提交于
      Document is stale, let's remove it.
      
      Remove TCP congestion document.
      Signed-off-by: NTobin C. Harding <me@tobin.cc>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a20625e4
    • H
      geneve: add ttl inherit support · 52d0d404
      Hangbin Liu 提交于
      Similar with commit 72f6d71e ("vxlan: add ttl inherit support"),
      currently ttl == 0 means "use whatever default value" on geneve instead
      of inherit inner ttl. To respect compatibility with old behavior, let's
      add a new IFLA_GENEVE_TTL_INHERIT for geneve ttl inherit support.
      Reported-by: NJianlin Shi <jishi@redhat.com>
      Suggested-by: NJiri Benc <jbenc@redhat.com>
      Signed-off-by: NHangbin Liu <liuhangbin@gmail.com>
      Reviewed-by: NJiri Benc <jbenc@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      52d0d404