1. 17 Jul, 2017 16 commits
  2. 16 Jul, 2017 16 commits
    • David S. Miller's avatar
      Merge branch 'atm-constify-atm-pci_device_id' · ce3dbe29
      David S. Miller authored
      Arvind Yadav says:
      
      ====================
      atm: constify atm pci_device_id.
      
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ce3dbe29
    • Arvind Yadav's avatar
      atm: idt77252: constify pci_device_id. · 97ae5c2a
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        27702	    468	     16	  28186	   6e1a	drivers/atm/idt77252.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
        27766	    404	     16	  28186	   6e1a	drivers/atm/idt77252.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      97ae5c2a
    • Arvind Yadav's avatar
      atm: eni: constify pci_device_id. · f283974c
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        21565	    352	     56	  21973	   55d5	drivers/atm/eni.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
        21661	    256	     56	  21973	   55d5	drivers/atm/eni.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f283974c
    • Arvind Yadav's avatar
      atm: firestream: constify pci_device_id. · 0fdfb33b
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        16884	    444	     28	  17356	   43cc	drivers/atm/firestream.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
        16980	    348	     28	  17356	   43cc	drivers/atm/firestream.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0fdfb33b
    • Arvind Yadav's avatar
      atm: zatm: constify pci_device_id. · aea39c7f
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        14350	    352	     40	  14742	   3996	drivers/atm/zatm.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
        14446	    256	     40	  14742	   3996	drivers/atm/zatm.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      aea39c7f
    • Arvind Yadav's avatar
      atm: lanai: constify pci_device_id. · 626e87ca
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        18074	    352	      0	  18426	   47fa	drivers/atm/lanai.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
        18170	    256	      0	  18426	   47fa	drivers/atm/lanai.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      626e87ca
    • Arvind Yadav's avatar
      atm: solos-pci: constify pci_device_id. · 6d6148b3
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        16138	   4592	     24	  20754	   5112	drivers/atm/solos-pci.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
        16218	   4528	     24	  20754	   5122	drivers/atm/solos-pci.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6d6148b3
    • Arvind Yadav's avatar
      atm: horizon: constify pci_device_id. · 77c0805d
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
         9859	    328	      6	  10193	   27d1	drivers/atm/horizon.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
         9923	    264	      6	  10193	   27d1	drivers/atm/horizon.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      77c0805d
    • Arvind Yadav's avatar
      atm: he: constify pci_device_id. · 5c007845
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        26514	    440	     48	  27002	   697a	drivers/atm/he.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
        26578	    376	     48	  27002	   697a	drivers/atm/he.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5c007845
    • Arvind Yadav's avatar
      atm: nicstar: constify pci_device_id. · 2f3e2604
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        22781	    464	    128	  23373	   5b4d	drivers/atm/nicstar.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
        22845	    400	    128	  23373	   5b4d	drivers/atm/nicstar.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2f3e2604
    • Arvind Yadav's avatar
      atm: fore200e: constify pci_device_id. · d5c5665d
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        20025	    320	     16	  20361	   4f89	drivers/atm/fore200e.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
        20089	    256	     16	  20361	   4f89	drivers/atm/fore200e.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d5c5665d
    • Arvind Yadav's avatar
      atm: ambassador: constify pci_device_id. · c21c5a7f
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        13372	    408	      4	  13784	   35d8	drivers/atm/ambassador.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
        13484	    296	      4	  13784	   35d8	drivers/atm/ambassador.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c21c5a7f
    • Arvind Yadav's avatar
      atm: iphase: constify pci_device_id. · 10244bc2
      Arvind Yadav authored
      pci_device_id are not supposed to change at runtime. All functions
      working with pci_device_id provided by <linux/pci.h> work with
      const pci_device_id. So mark the non-const structs as const.
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        23536	    432	    160	  24128	   5e40	drivers/atm/iphase.o
      
      File size After adding 'const':
         text	   data	    bss	    dec	    hex	filename
        23632	    336	    160	  24128	   5e40	drivers/atm/iphase.o
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      10244bc2
    • Vincent Bernat's avatar
      ip6: fix PMTU discovery when using /127 subnets · ccdb2d17
      Vincent Bernat authored
      The definition of an "anycast destination address" has been tweaked as a
      side-effect of commit 2647a9b0 ("ipv6: Remove external dependency on
      rt6i_gateway and RTF_ANYCAST"). The first address of a point-to-point
      /127 subnet is now considered as an anycast address. This prevents
      ICMPv6 errors to be returned to a sender of such a subnet and breaks
      PMTU discovery.
      
      This can be reproduced with:
      
          ip link add name out6 type veth peer name in6
          ip link add name out7 type veth peer name in7
          ip link set mtu 1400 dev out7
          ip link set mtu 1400 dev in7
          ip netns add next-hop
          ip netns add next-next-hop
          ip link set netns next-hop dev in6
          ip link set netns next-hop dev out7
          ip link set netns next-next-hop dev in7
          ip link set up dev out6
          ip addr add 2001:db8:1::12/127 dev out6
          ip netns exec next-hop ip link set up dev in6
          ip netns exec next-hop ip link set up dev out7
          ip netns exec next-hop ip addr add 2001:db8:1::13/127 dev in6
          ip netns exec next-hop ip addr add 2001:db8:1::14/127 dev out7
          ip netns exec next-hop ip route add default via 2001:db8:1::15
          ip netns exec next-hop sysctl -qw net.ipv6.conf.all.forwarding=1
          ip netns exec next-next-hop ip link set up dev in7
          ip netns exec next-next-hop ip addr add 2001:db8:1::15/127 dev in7
          ip netns exec next-next-hop ip addr add 2001:db8:1::50/128 dev in7
          ip netns exec next-next-hop ip route add default via 2001:db8:1::14
          ip netns exec next-next-hop sysctl -qw net.ipv6.conf.all.forwarding=1
          ip route add 2001:db8:1::48/123 via 2001:db8:1::13
          sleep 4
          ping -M do -s 1452 -c 3 2001:db8:1::50 || true
          ip route get 2001:db8:1::50
      
      Before the patch, we get:
      
          2001:db8:1::50 from :: via 2001:db8:1::13 dev out6 src 2001:db8:1::12 metric 1024  pref medium
      
      After the patch, we get:
      
          2001:db8:1::50 via 2001:db8:1::13 dev out6 src 2001:db8:1::12 metric 0
              cache  expires 578sec mtu 1400 pref medium
      
      Fixes: 2647a9b0 ("ipv6: Remove external dependency on rt6i_gateway and RTF_ANYCAST")
      Signed-off-by: default avatarVincent Bernat <vincent@bernat.im>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ccdb2d17
    • sixiao@microsoft.com's avatar
      tools: hv: ignore a NIC if it has been configured · 1c3a044c
      sixiao@microsoft.com authored
      Let bondvf.sh ignore this NIC if it has been configured, to prevent
      user configuration from being overwritten unexpectly.
      Signed-off-by: default avatarSimon Xiao <sixiao@microsoft.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1c3a044c
    • Shannon Nelson's avatar
      sunvnet: add support for IPv6 checksum offloads · 98524e04
      Shannon Nelson authored
      The original code didn't handle non-IPv4 packets very well, so the
      offload advertising had to be scaled back down to just IP.  Here we
      add the bits needed to support TCP and UDP packets over IPv6 and
      turn the offload advertising back on.
      
      Orabug: 26289579
      Signed-off-by: default avatarShannon Nelson <shannon.nelson@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      98524e04
  3. 13 Jul, 2017 3 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · edaf3825
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
      1) Fix 64-bit division in mlx5 IPSEC offload support, from Ilan Tayari
         and Arnd Bergmann.
      
      2) Fix race in statistics gathering in bnxt_en driver, from Michael
         Chan.
      
      3) Can't use a mutex in RCU reader protected section on tap driver, from
         Cong WANG.
      
      4) Fix mdb leak in bridging code, from Eduardo Valentin.
      
      5) Fix free of wrong pointer variable in nfp driver, from Dan Carpenter.
      
      6) Buffer overflow in brcmfmac driver, from Arend van SPriel.
      
      7) ioremap_nocache() return value needs to be checked in smsc911x
         driver, from Alexey Khoroshilov.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (34 commits)
        net: stmmac: revert "support future possible different internal phy mode"
        sfc: don't read beyond unicast address list
        datagram: fix kernel-doc comments
        socket: add documentation for missing elements
        smsc911x: Add check for ioremap_nocache() return code
        brcmfmac: fix possible buffer overflow in brcmf_cfg80211_mgmt_tx()
        net: hns: Bugfix for Tx timeout handling in hns driver
        net: ipmr: ipmr_get_table() returns NULL
        nfp: freeing the wrong variable
        mlxsw: spectrum_switchdev: Check status of memory allocation
        mlxsw: spectrum_switchdev: Remove unused variable
        mlxsw: spectrum_router: Fix use-after-free in route replace
        mlxsw: spectrum_router: Add missing rollback
        samples/bpf: fix a build issue
        bridge: mdb: fix leak on complete_info ptr on fail path
        tap: convert a mutex to a spinlock
        cxgb4: fix BUG() on interrupt deallocating path of ULD
        qed: Fix printk option passed when printing ipv6 addresses
        net: Fix minor code bug in timestamping.txt
        net: stmmac: Make 'alloc_dma_[rt]x_desc_resources()' look even closer
        ...
      edaf3825
    • Linus Torvalds's avatar
      disable new gcc-7.1.1 warnings for now · bd664f6b
      Linus Torvalds authored
      I made the mistake of upgrading my desktop to the new Fedora 26 that
      comes with gcc-7.1.1.
      
      There's nothing wrong per se that I've noticed, but I now have 1500
      lines of warnings, mostly from the new format-truncation warning
      triggering all over the tree.
      
      We use 'snprintf()' and friends in a lot of places, and often know that
      the numbers are fairly small (ie a controller index or similar), but gcc
      doesn't know that, and sees an 'int', and thinks that it could be some
      huge number.  And then complains when our buffers are not able to fit
      the name for the ten millionth controller.
      
      These warnings aren't necessarily bad per se, and we probably want to
      look through them subsystem by subsystem, but at least during the merge
      window they just mean that I can't even see if somebody is introducing
      any *real* problems when I pull.
      
      So warnings disabled for now.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      bd664f6b
    • Linus Torvalds's avatar
      Merge tag 'modules-for-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux · 3a75ad14
      Linus Torvalds authored
      Pull modules updates from Jessica Yu:
       "Summary of modules changes for the 4.13 merge window:
      
         - Minor code cleanups
      
         - Avoid accessing mod struct prior to checking module struct version,
           from Kees
      
         - Fix racy atomic inc/dec logic of kmod_concurrent_max in kmod, from
           Luis"
      
      * tag 'modules-for-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
        module: make the modinfo name const
        kmod: reduce atomic operations on kmod_concurrent and simplify
        module: use list_for_each_entry_rcu() on find_module_all()
        kernel/module.c: suppress warning about unused nowarn variable
        module: Add module name to modinfo
        module: Pass struct load_info into symbol checks
      3a75ad14
  4. 12 Jul, 2017 5 commits