1. 27 9月, 2018 34 次提交
  2. 26 9月, 2018 6 次提交
    • D
      net: phy: marvell: Fix build. · 4b1bd697
      David S. Miller 提交于
      Local variable 'autoneg' doesn't even exist:
      
      drivers/net/phy/marvell.c: In function 'm88e1121_config_aneg':
      drivers/net/phy/marvell.c:468:25: error: 'autoneg' undeclared (first use in this function); did you mean 'put_net'?
        if (phydev->autoneg != autoneg || changed) {
                               ^~~~~~~
      
      Fixes: d6ab9336 ("net: phy: marvell: Avoid unnecessary soft reset")
      Reported-by: NVakul Garg <vakul.garg@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4b1bd697
    • R
      bridge: br_arp_nd_proxy: set icmp6_router if neigh has NTF_ROUTER · 7aca011f
      Roopa Prabhu 提交于
      Fixes: ed842fae ("bridge: suppress nd pkts on BR_NEIGH_SUPPRESS ports")
      Signed-off-by: NRoopa Prabhu <roopa@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7aca011f
    • D
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · 105bc130
      David S. Miller 提交于
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf-next 2018-09-25
      
      The following pull-request contains BPF updates for your *net-next* tree.
      
      The main changes are:
      
      1) Allow for RX stack hardening by implementing the kernel's flow
         dissector in BPF. Idea was originally presented at netconf 2017 [0].
         Quote from merge commit:
      
           [...] Because of the rigorous checks of the BPF verifier, this
           provides significant security guarantees. In particular, the BPF
           flow dissector cannot get inside of an infinite loop, as with
           CVE-2013-4348, because BPF programs are guaranteed to terminate.
           It cannot read outside of packet bounds, because all memory accesses
           are checked. Also, with BPF the administrator can decide which
           protocols to support, reducing potential attack surface. Rarely
           encountered protocols can be excluded from dissection and the
           program can be updated without kernel recompile or reboot if a
           bug is discovered. [...]
      
         Also, a sample flow dissector has been implemented in BPF as part
         of this work, from Petar and Willem.
      
         [0] http://vger.kernel.org/netconf2017_files/rx_hardening_and_udp_gso.pdf
      
      2) Add support for bpftool to list currently active attachment
         points of BPF networking programs providing a quick overview
         similar to bpftool's perf subcommand, from Yonghong.
      
      3) Fix a verifier pruning instability bug where a union member
         from the register state was not cleared properly leading to
         branches not being pruned despite them being valid candidates,
         from Alexei.
      
      4) Various smaller fast-path optimizations in XDP's map redirect
         code, from Jesper.
      
      5) Enable to recognize BPF_MAP_TYPE_REUSEPORT_SOCKARRAY maps
         in bpftool, from Roman.
      
      6) Remove a duplicate check in libbpf that probes for function
         storage, from Taeung.
      
      7) Fix an issue in test_progs by avoid checking for errno since
         on success its value should not be checked, from Mauricio.
      
      8) Fix unused variable warning in bpf_getsockopt() helper when
         CONFIG_INET is not configured, from Anders.
      
      9) Fix a compilation failure in the BPF sample code's use of
         bpf_flow_keys, from Prashant.
      
      10) Minor cleanups in BPF code, from Yue and Zhong.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      105bc130
    • H
      net: dsa: lantiq_gswip: Depend on HAS_IOMEM · 3475372f
      Hauke Mehrtens 提交于
      The driver uses devm_ioremap_resource() which is only available when
      CONFIG_HAS_IOMEM is set, make the driver depend on this config option.
      User mode Linux does not have CONFIG_HAS_IOMEM set and the driver was
      failing on this architecture.
      
      Fixes: 14fceff4 ("net: dsa: Add Lantiq / Intel DSA driver for vrx200")
      Reported-by: Nkbuild test robot <lkp@intel.com>
      Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3475372f
    • D
      Merge branch 'net-phy-Eliminate-unnecessary-soft' · 921f432c
      David S. Miller 提交于
      Florian Fainelli says:
      
      ====================
      net: phy: Eliminate unnecessary soft
      
      This patch series eliminates unnecessary software resets of the PHY.
      This should hopefully not break anybody's hardware; but I would
      appreciate testing to make sure this is is the case.
      
      Sorry for this long email list, I wanted to make sure I reached out to
      all people who made changes to the Marvell PHY driver.
      
      Thank you!
      
      Changes since RFT:
      
      - added Tested-by tags from Wang, Dongsheng, Andrew, Chris and Clemens
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      921f432c
    • F
      net: phy: marvell: Avoid unnecessary soft reset · d6ab9336
      Florian Fainelli 提交于
      The BMCR.RESET bit on the Marvell PHYs has a special meaning in that
      it commits the register writes into the HW for it to latch and be
      configured appropriately. Doing software resets causes link drops, and
      this is unnecessary disruption if nothing changed.
      
      Determine from marvell_set_polarity()'s return code whether the register value
      was changed and if it was, propagate that to the logic that hits the software
      reset bit.
      
      This avoids doing unnecessary soft reset if the PHY is configured in
      the same state it was previously, this also eliminates the need for a
      m88e1111_config_aneg() function since it now is the same as
      marvell_config_aneg().
      Tested-by: NWang, Dongsheng <dongsheng.wang@hxt-semitech.com>
      Tested-by: NChris Healy <cphealy@gmail.com>
      Tested-by: NAndrew Lunn <andrew@lunn.ch>
      Tested-by: NClemens Gruber <clemens.gruber@pqgruber.com>
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d6ab9336