Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Jul 2013 01:24:39 +0000 (18:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Jul 2013 01:24:39 +0000 (18:24 -0700)
Pull networking updates from David Miller:
 "This is a re-do of the net-next pull request for the current merge
  window.  The only difference from the one I made the other day is that
  this has Eliezer's interface renames and the timeout handling changes
  made based upon your feedback, as well as a few bug fixes that have
  trickeled in.

  Highlights:

   1) Low latency device polling, eliminating the cost of interrupt
      handling and context switches.  Allows direct polling of a network
      device from socket operations, such as recvmsg() and poll().

      Currently ixgbe, mlx4, and bnx2x support this feature.

      Full high level description, performance numbers, and design in
      commit 0a4db187a999 ("Merge branch 'll_poll'")

      From Eliezer Tamir.

   2) With the routing cache removed, ip_check_mc_rcu() gets exercised
      more than ever before in the case where we have lots of multicast
      addresses.  Use a hash table instead of a simple linked list, from
      Eric Dumazet.

   3) Add driver for Atheros CQA98xx 802.11ac wireless devices, from
      Bartosz Markowski, Janusz Dziedzic, Kalle Valo, Marek Kwaczynski,
      Marek Puzyniak, Michal Kazior, and Sujith Manoharan.

   4) Support reporting the TUN device persist flag to userspace, from
      Pavel Emelyanov.

   5) Allow controlling network device VF link state using netlink, from
      Rony Efraim.

   6) Support GRE tunneling in openvswitch, from Pravin B Shelar.

   7) Adjust SOCK_MIN_RCVBUF and SOCK_MIN_SNDBUF for modern times, from
      Daniel Borkmann and Eric Dumazet.

   8) Allow controlling of TCP quickack behavior on a per-route basis,
      from Cong Wang.

   9) Several bug fixes and improvements to vxlan from Stephen
      Hemminger, Pravin B Shelar, and Mike Rapoport.  In particular,
      support receiving on multiple UDP ports.

  10) Major cleanups, particular in the area of debugging and cookie
      lifetime handline, to the SCTP protocol code.  From Daniel
      Borkmann.

  11) Allow packets to cross network namespaces when traversing tunnel
      devices.  From Nicolas Dichtel.

  12) Allow monitoring netlink traffic via AF_PACKET sockets, in a
      manner akin to how we monitor real network traffic via ptype_all.
      From Daniel Borkmann.

  13) Several bug fixes and improvements for the new alx device driver,
      from Johannes Berg.

  14) Fix scalability issues in the netem packet scheduler's time queue,
      by using an rbtree.  From Eric Dumazet.

  15) Several bug fixes in TCP loss recovery handling, from Yuchung
      Cheng.

  16) Add support for GSO segmentation of MPLS packets, from Simon
      Horman.

  17) Make network notifiers have a real data type for the opaque
      pointer that's passed into them.  Use this to properly handle
      network device flag changes in arp_netdev_event().  From Jiri
      Pirko and Timo Teräs.

  18) Convert several drivers over to module_pci_driver(), from Peter
      Huewe.

  19) tcp_fixup_rcvbuf() can loop 500 times over loopback, just use a
      O(1) calculation instead.  From Eric Dumazet.

  20) Support setting of explicit tunnel peer addresses in ipv6, just
      like ipv4.  From Nicolas Dichtel.

  21) Protect x86 BPF JIT against spraying attacks, from Eric Dumazet.

  22) Prevent a single high rate flow from overruning an individual cpu
      during RX packet processing via selective flow shedding.  From
      Willem de Bruijn.

  23) Don't use spinlocks in TCP md5 signing fast paths, from Eric
      Dumazet.

  24) Don't just drop GSO packets which are above the TBF scheduler's
      burst limit, chop them up so they are in-bounds instead.  Also
      from Eric Dumazet.

  25) VLAN offloads are missed when configured on top of a bridge, fix
      from Vlad Yasevich.

  26) Support IPV6 in ping sockets.  From Lorenzo Colitti.

  27) Receive flow steering targets should be updated at poll() time
      too, from David Majnemer.

  28) Fix several corner case regressions in PMTU/redirect handling due
      to the routing cache removal, from Timo Teräs.

  29) We have to be mindful of ipv4 mapped ipv6 sockets in
      upd_v6_push_pending_frames().  From Hannes Frederic Sowa.

  30) Fix L2TP sequence number handling bugs, from James Chapman."

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1214 commits)
  drivers/net: caif: fix wrong rtnl_is_locked() usage
  drivers/net: enic: release rtnl_lock on error-path
  vhost-net: fix use-after-free in vhost_net_flush
  net: mv643xx_eth: do not use port number as platform device id
  net: sctp: confirm route during forward progress
  virtio_net: fix race in RX VQ processing
  virtio: support unlocked queue poll
  net/cadence/macb: fix bug/typo in extracting gem_irq_read_clear bit
  Documentation: Fix references to defunct linux-net@vger.kernel.org
  net/fs: change busy poll time accounting
  net: rename low latency sockets functions to busy poll
  bridge: fix some kernel warning in multicast timer
  sfc: Fix memory leak when discarding scattered packets
  sit: fix tunnel update via netlink
  dt:net:stmmac: Add dt specific phy reset callback support.
  dt:net:stmmac: Add support to dwmac version 3.610 and 3.710
  dt:net:stmmac: Allocate platform data only if its NULL.
  net:stmmac: fix memleak in the open method
  ipv6: rt6_check_neigh should successfully verify neigh if no NUD information are available
  net: ipv6: fix wrong ping_v6_sendmsg return value
  ...

50 files changed:
1  2 
Documentation/devicetree/bindings/vendor-prefixes.txt
Documentation/networking/netlink_mmap.txt
Documentation/sysctl/net.txt
MAINTAINERS
arch/arm/boot/dts/am335x-bone.dts
arch/arm/boot/dts/am335x-evm.dts
arch/arm/boot/dts/am335x-evmsk.dts
arch/arm/boot/dts/sun4i-a10-cubieboard.dts
arch/arm/boot/dts/sun4i-a10.dtsi
arch/arm/configs/omap2plus_defconfig
arch/arm/mach-imx/Kconfig
arch/arm/mach-mxs/Kconfig
arch/arm/mach-mxs/mach-mxs.c
arch/arm/mach-shmobile/board-armadillo800eva.c
arch/arm/mach-shmobile/clock-r8a7740.c
arch/arm/mach-shmobile/clock-r8a7778.c
arch/arm/mach-shmobile/clock-r8a7779.c
arch/cris/arch-v32/drivers/Kconfig
arch/powerpc/Kconfig
drivers/net/ethernet/ibm/ehea/ehea_main.c
drivers/net/ethernet/intel/igb/e1000_phy.c
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/davinci_mdio.c
drivers/net/netconsole.c
drivers/net/phy/phy.c
drivers/net/wireless/ath/ath9k/Kconfig
drivers/net/wireless/ipw2x00/ipw2200.c
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rtlwifi/base.c
drivers/nfc/pn533.c
drivers/s390/net/qeth_core_main.c
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
drivers/scsi/libiscsi_tcp.c
drivers/staging/csr/netdev.c
drivers/staging/rtl8192u/r8192U_core.c
drivers/staging/silicom/bpctl_mod.c
drivers/virtio/virtio_ring.c
fs/select.c
include/linux/ktime.h
include/linux/sched.h
include/linux/virtio.h
lib/vsprintf.c
net/Kconfig
net/bluetooth/hci_core.c
net/bluetooth/hidp/core.c
net/core/netpoll.c
net/ipv4/inet_fragment.c
net/mac80211/main.c

@@@ -113,8 -113,8 +113,8 @@@ Some parameters are constrained, specif
  
  - nm_frame_nr must equal the actual number of frames as specified above.
  
 -When the kernel can't allocate phsyically continuous memory for a ring block,
 +When the kernel can't allocate physically continuous memory for a ring block,
- it will fall back to use physically discontinous memory. This might affect
+ it will fall back to use physically discontinuous memory. This might affect
  performance negatively, in order to avoid this the nm_frame_size parameter
  should be chosen to be as small as possible for the required frame size and
  the number of blocks should be increased instead.
Simple merge
diff --cc MAINTAINERS
Simple merge
  
  &cpsw_emac1 {
        phy_id = <&davinci_mdio>, <1>;
+       phy-mode = "mii";
  };
 +
 +&mac {
 +      pinctrl-names = "default", "sleep";
 +      pinctrl-0 = <&cpsw_default>;
 +      pinctrl-1 = <&cpsw_sleep>;
 +
 +};
 +
 +&davinci_mdio {
 +      pinctrl-names = "default", "sleep";
 +      pinctrl-0 = <&davinci_mdio_default>;
 +      pinctrl-1 = <&davinci_mdio_sleep>;
 +};
        };
  };
  
 +&mac {
 +      pinctrl-names = "default", "sleep";
 +      pinctrl-0 = <&cpsw_default>;
 +      pinctrl-1 = <&cpsw_sleep>;
 +};
 +
 +&davinci_mdio {
 +      pinctrl-names = "default", "sleep";
 +      pinctrl-0 = <&davinci_mdio_default>;
 +      pinctrl-1 = <&davinci_mdio_sleep>;
 +};
 +
  &cpsw_emac0 {
        phy_id = <&davinci_mdio>, <0>;
+       phy-mode = "rgmii-txid";
  };
  
  &cpsw_emac1 {
        };
  };
  
 +&mac {
 +      pinctrl-names = "default", "sleep";
 +      pinctrl-0 = <&cpsw_default>;
 +      pinctrl-1 = <&cpsw_sleep>;
 +};
 +
 +&davinci_mdio {
 +      pinctrl-names = "default", "sleep";
 +      pinctrl-0 = <&davinci_mdio_default>;
 +      pinctrl-1 = <&davinci_mdio_sleep>;
 +};
++
+ &cpsw_emac0 {
+       phy_id = <&davinci_mdio>, <0>;
+       phy-mode = "rgmii-txid";
+ };
+ &cpsw_emac1 {
+       phy_id = <&davinci_mdio>, <1>;
+       phy-mode = "rgmii-txid";
+ };
                                allwinner,pull = <0>;
                        };
  
 +                      i2c0_pins_a: i2c0@0 {
 +                              allwinner,pins = "PB0", "PB1";
 +                              allwinner,function = "i2c0";
 +                              allwinner,drive = <0>;
 +                              allwinner,pull = <0>;
 +                      };
 +
 +                      i2c1_pins_a: i2c1@0 {
 +                              allwinner,pins = "PB18", "PB19";
 +                              allwinner,function = "i2c1";
 +                              allwinner,drive = <0>;
 +                              allwinner,pull = <0>;
 +                      };
 +
 +                      i2c2_pins_a: i2c2@0 {
 +                              allwinner,pins = "PB20", "PB21";
 +                              allwinner,function = "i2c2";
 +                              allwinner,drive = <0>;
 +                              allwinner,pull = <0>;
 +                      };
++
+                       emac_pins_a: emac0@0 {
+                               allwinner,pins = "PA0", "PA1", "PA2",
+                                               "PA3", "PA4", "PA5", "PA6",
+                                               "PA7", "PA8", "PA9", "PA10",
+                                               "PA11", "PA12", "PA13", "PA14",
+                                               "PA15", "PA16";
+                               allwinner,function = "emac";
+                               allwinner,drive = <0>;
+                               allwinner,pull = <0>;
+                       };
                };
  
                timer@01c20c00 {
Simple merge
Simple merge
@@@ -10,7 -11,7 +10,6 @@@ config SOC_IMX2
        select ARM_AMBA
        select ARM_CPU_SUSPEND if PM
        select CPU_ARM926T
-       select HAVE_CAN_FLEXCAN if CAN
 -      select HAVE_PWM
        select PINCTRL_IMX28
  
  config ARCH_MXS
@@@ -478,14 -323,13 +433,14 @@@ static void __init mxs_machine_init(voi
                imx28_evk_init();
        else if (of_machine_is_compatible("bluegiga,apx4devkit"))
                apx4devkit_init();
 -      else if (of_machine_is_compatible("crystalfontz,cfa10037"))
 -              cfa10037_init();
 -      else if (of_machine_is_compatible("crystalfontz,cfa10049"))
 -              cfa10049_init();
 +      else if (of_machine_is_compatible("crystalfontz,cfa10037") ||
 +               of_machine_is_compatible("crystalfontz,cfa10049") ||
 +               of_machine_is_compatible("crystalfontz,cfa10055") ||
 +               of_machine_is_compatible("crystalfontz,cfa10057"))
 +              crystalfontz_init();
  
        of_platform_populate(NULL, of_default_bus_match_table,
-                            mxs_auxdata_lookup, parent);
 -                           NULL, NULL);
++                           NULL, parent);
  
        if (of_machine_is_compatible("karo,tx28"))
                tx28_post_init();
@@@ -594,9 -591,7 +594,9 @@@ static struct clk_lookup lookups[] = 
        CLKDEV_DEV_ID("e6860000.sdhi",          &mstp_clks[MSTP313]),
        CLKDEV_DEV_ID("sh_mmcif",               &mstp_clks[MSTP312]),
        CLKDEV_DEV_ID("e6bd0000.mmcif",         &mstp_clks[MSTP312]),
-       CLKDEV_DEV_ID("sh-eth",                 &mstp_clks[MSTP309]),
+       CLKDEV_DEV_ID("r8a7740-gether",         &mstp_clks[MSTP309]),
 +      CLKDEV_DEV_ID("e9a00000.sh-eth",        &mstp_clks[MSTP309]),
 +      CLKDEV_DEV_ID("renesas_tpu_pwm",        &mstp_clks[MSTP304]),
  
        CLKDEV_DEV_ID("sh_mobile_sdhi.2",       &mstp_clks[MSTP415]),
        CLKDEV_DEV_ID("e6870000.sdhi",          &mstp_clks[MSTP415]),
@@@ -136,22 -76,8 +136,22 @@@ static struct clk mstp_clks[MSTP_NR] = 
  };
  
  static struct clk_lookup lookups[] = {
 +      /* main */
 +      CLKDEV_CON_ID("shyway_clk",     &s_clk),
 +      CLKDEV_CON_ID("peripheral_clk", &p_clk),
 +
        /* MSTP32 clocks */
-       CLKDEV_DEV_ID("sh-eth", &mstp_clks[MSTP114]), /* Ether */
 +      CLKDEV_DEV_ID("sh_mmcif", &mstp_clks[MSTP331]), /* MMC */
 +      CLKDEV_DEV_ID("sh_mobile_sdhi.0", &mstp_clks[MSTP323]), /* SDHI0 */
 +      CLKDEV_DEV_ID("sh_mobile_sdhi.1", &mstp_clks[MSTP322]), /* SDHI1 */
 +      CLKDEV_DEV_ID("sh_mobile_sdhi.2", &mstp_clks[MSTP321]), /* SDHI2 */
+       CLKDEV_DEV_ID("r8a777x-ether", &mstp_clks[MSTP114]), /* Ether */
 +      CLKDEV_DEV_ID("ehci-platform", &mstp_clks[MSTP100]), /* USB EHCI port0/1 */
 +      CLKDEV_DEV_ID("ohci-platform", &mstp_clks[MSTP100]), /* USB OHCI port0/1 */
 +      CLKDEV_DEV_ID("i2c-rcar.0", &mstp_clks[MSTP030]), /* I2C0 */
 +      CLKDEV_DEV_ID("i2c-rcar.1", &mstp_clks[MSTP029]), /* I2C1 */
 +      CLKDEV_DEV_ID("i2c-rcar.2", &mstp_clks[MSTP028]), /* I2C2 */
 +      CLKDEV_DEV_ID("i2c-rcar.3", &mstp_clks[MSTP027]), /* I2C3 */
        CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP026]), /* SCIF0 */
        CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP025]), /* SCIF1 */
        CLKDEV_DEV_ID("sh-sci.2", &mstp_clks[MSTP024]), /* SCIF2 */
@@@ -162,10 -161,9 +162,10 @@@ static struct clk_lookup lookups[] = 
        CLKDEV_CON_ID("peripheral_clk", &clkp_clk),
  
        /* MSTP32 clocks */
 +      CLKDEV_DEV_ID("rcar-pcie", &mstp_clks[MSTP116]), /* PCIe */
        CLKDEV_DEV_ID("sata_rcar", &mstp_clks[MSTP115]), /* SATA */
        CLKDEV_DEV_ID("fc600000.sata", &mstp_clks[MSTP115]), /* SATA w/DT */
-       CLKDEV_DEV_ID("sh-eth", &mstp_clks[MSTP114]), /* Ether */
+       CLKDEV_DEV_ID("r8a777x-ether", &mstp_clks[MSTP114]), /* Ether */
        CLKDEV_DEV_ID("ehci-platform.1", &mstp_clks[MSTP101]), /* USB EHCI port2 */
        CLKDEV_DEV_ID("ohci-platform.1", &mstp_clks[MSTP101]), /* USB OHCI port2 */
        CLKDEV_DEV_ID("ehci-platform.0", &mstp_clks[MSTP100]), /* USB EHCI port0/1 */
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -918,10 -916,17 +916,18 @@@ void phy_state_machine(struct work_stru
        if (err < 0)
                phy_error(phydev);
  
 -      schedule_delayed_work(&phydev->state_queue, PHY_STATE_TIME * HZ);
 +      queue_delayed_work(system_power_efficient_wq, &phydev->state_queue,
 +                      PHY_STATE_TIME * HZ);
  }
  
+ void phy_mac_interrupt(struct phy_device *phydev, int new_link)
+ {
+       cancel_work_sync(&phydev->phy_queue);
+       phydev->link = new_link;
+       schedule_work(&phydev->phy_queue);
+ }
+ EXPORT_SYMBOL(phy_mac_interrupt);
  static inline void mmd_phy_indirect(struct mii_bus *bus, int prtad, int devad,
                                    int addr)
  {
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -1144,12 -1271,12 +1144,12 @@@ struct sk_buff *DrvAggr_Aggregation(str
                /* Subframe drv Tx descriptor and firmware info setting */
                skb = pSendList->tx_agg_frames[i];
                tcb_desc = (cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE);
-               tx_agg_desc = (tx_desc_819x_usb_aggr_subframe *)agg_skb->tail;
-               tx_fwinfo = (tx_fwinfo_819x_usb *)(agg_skb->tail + sizeof(tx_desc_819x_usb_aggr_subframe));
+               tx_agg_desc = (tx_desc_819x_usb_aggr_subframe *)skb_tail_pointer(agg_skb);
+               tx_fwinfo = (tx_fwinfo_819x_usb *)(skb_tail_pointer(agg_skb) + sizeof(tx_desc_819x_usb_aggr_subframe));
  
 -              memset(tx_fwinfo,0,sizeof(tx_fwinfo_819x_usb));
 +              memset(tx_fwinfo, 0, sizeof(tx_fwinfo_819x_usb));
                /* DWORD 0 */
 -              tx_fwinfo->TxHT = (tcb_desc->data_rate&0x80)?1:0;
 +              tx_fwinfo->TxHT = (tcb_desc->data_rate&0x80) ? 1 : 0;
                tx_fwinfo->TxRate = MRateToHwRate8190Pci(tcb_desc->data_rate);
                tx_fwinfo->EnableCPUDur = tcb_desc->bTxEnableFwCalcDur;
                tx_fwinfo->Short = QueryIsShort(tx_fwinfo->TxHT, tx_fwinfo->TxRate, tcb_desc);
@@@ -128,8 -133,8 +128,8 @@@ static unsigned long str_to_hex(char *p
  static int bp_device_event(struct notifier_block *unused,
                           unsigned long event, void *ptr)
  {
-       struct net_device *dev = ptr;
+       struct net_device *dev = netdev_notifier_info_to_dev(ptr);
 -      static bpctl_dev_t *pbpctl_dev = NULL, *pbpctl_dev_m = NULL;
 +      static bpctl_dev_t *pbpctl_dev, *pbpctl_dev_m;
        int dev_num = 0, ret = 0, ret_d = 0, time_left = 0;
        /* printk("BP_PROC_SUPPORT event =%d %s %d\n", event,dev->name, dev->ifindex ); */
        /* return NOTIFY_DONE; */
Simple merge
diff --cc fs/select.c
@@@ -27,7 -27,7 +27,8 @@@
  #include <linux/rcupdate.h>
  #include <linux/hrtimer.h>
  #include <linux/sched/rt.h>
 +#include <linux/freezer.h>
+ #include <net/ll_poll.h>
  
  #include <asm/uaccess.h>
  
@@@ -321,12 -320,17 +321,17 @@@ static inline s64 ktime_us_delta(const 
  
  static inline ktime_t ktime_add_us(const ktime_t kt, const u64 usec)
  {
 -      return ktime_add_ns(kt, usec * 1000);
 +      return ktime_add_ns(kt, usec * NSEC_PER_USEC);
  }
  
+ static inline ktime_t ktime_add_ms(const ktime_t kt, const u64 msec)
+ {
+       return ktime_add_ns(kt, msec * NSEC_PER_MSEC);
+ }
  static inline ktime_t ktime_sub_us(const ktime_t kt, const u64 usec)
  {
 -      return ktime_sub_ns(kt, usec * 1000);
 +      return ktime_sub_ns(kt, usec * NSEC_PER_USEC);
  }
  
  extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
Simple merge
Simple merge
diff --cc lib/vsprintf.c
Simple merge
diff --cc net/Kconfig
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge