1. Jul 30, 2013
  2. Jul 29, 2013
    • Yevgeny Petrilin's avatar
      net/mlx4_core: Respond to operation request by firmware · fe6f700d
      Yevgeny Petrilin authored
      
      
      This commit adds new firmware command and new firmware event.  The firmware
      raises the MLX4_EVENT_TYPE_OP_REQUIRED event in order to signal the driver it
      needs to perform an administrative operation throughout the MLX4_CMD_GET_OP_REQ
      command. At the moment the supported operation is adding/removing multicast
      entries which are used by the firmware for handling NCSI traffic in B0
      steering mode.
      
      Also, had to swap the order of mlx4_init_mcg_table() and
      mlx4_init_eq_table() to make sure that driver will get events only after
      resources are initialized to handle it.
      
      Signed-off-by: default avatarYevgeny Petrilin <yevgenyp@mellanox.com>
      Signed-off-by: default avatarJack Morgenstein <jackm@dev.mellanox.com>
      Signed-off-by: default avatarEugenia Emantayev <eugenia@mellanox.com>
      Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fe6f700d
    • Eugenia Emantayev's avatar
      net/mlx4_en: Fix BlueFlame race · 2d4b6466
      Eugenia Emantayev authored
      
      
      Fix a race between BlueFlame flow and stamping in post send flow.
      Example:
      	SW: Build WQE 0 on the TX buffer, except the ownership bit
      	SW: Set ownership for WQE 0 on the TX buffer
      	SW: Ring doorbell for WQE 0
      	SW: Build WQE 1 on the TX buffer, except the ownership bit
      	SW: Set ownership for WQE 1 on the TX buffer
      	HW: Read WQE 0 and then WQE 1, before doorbell was rung/BF was done for WQE 1
      	HW: Produce CQEs for WQE 0 and WQE 1
      	SW: Process the CQEs, and stamp WQE 0 and WQE 1 accordingly (on the TX buffer)
      	SW: Copy WQE 1 from the TX buffer to the BF register - ALREADY STAMPED!
      	HW: CQE error with index 0xFFFF  - the BF WQE's control segment is STAMPED,
      		so the BF index is 0xFFFF. Error: Invalid Opcode.
      As a result QP enters the error state and no traffic can be sent.
      
      Solution:
      When stamping - do not stamp last completed wqe.
      
      Signed-off-by: default avatarEugenia Emantayev <eugenia@mellanox.com>
      Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2d4b6466
    • Stephen Rothwell's avatar
      pktgen: add needed include file · 73d94e94
      Stephen Rothwell authored
      
      
      Fixes this on PowerPC (at least):
      
      net/core/pktgen.c: In function 'fill_packet_ipv6':
      net/core/pktgen.c:2906:3: error: implicit declaration of function 'csum_ipv6_magic' [-Werror=implicit-function-declaration]
         udph->check = ~csum_ipv6_magic(&iph->saddr, &iph->daddr, udplen, IPPROTO_UDP, 0);
         ^
      
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      73d94e94
    • David S. Miller's avatar
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next · 34d073fc
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      This series contains updates to e100 and e1000e.
      
      The e100 patch from Andy simply updates the netif_printk() to use
      %*ph to dump small buffers.
      
      The changes to e1000e include a fix from Dean Nelson to resolve a
      issue where a pci_clear_master() was accidentally dropped during a
      conflict resolution. Wei Young provides 2 patches, one removes an
      assignment of the default ring size because it was a duplicate. The
      second changes the packet split receive structure to use
      PS_PAGE_BUFFERS macro for the length so that problems won't occur
      when the length is changed.
      
      The remaining patches for e1000e are from Bruce Allan, where he
      provides a number of fixes and updates for I218.  In addition, a
      fix for 82583 which can disappear off the PCIe bus, to resolve this,
      disable ASPM L1.  Bruce also provides a fix to a previous commit
      (commit e60b22c5
      
       e1000e: fix accessing to suspended device) so that
      devices are only taken out of runtime power management for those
      ethtool operations that must access device registers.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      34d073fc
    • Hannes Frederic Sowa's avatar
      ipv4, ipv6: send igmpv3/mld packets with TC_PRIO_CONTROL · 9d4a0314
      Hannes Frederic Sowa authored
      
      
      v2:
      a) Also send ipv4 igmp messages with TC_PRIO_CONTROL
      
      Cc: William Manley <william.manley@youview.com>
      Cc: Lukas Tribus <luky-37@hotmail.com>
      Acked-by: default avatarBenjamin LaHaise <bcrl@kvack.org>
      Signed-off-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9d4a0314
  3. Jul 28, 2013
  4. Jul 27, 2013
  5. Jul 25, 2013
    • Darren Hart's avatar
      pch_gbe: Add MinnowBoard support · f1a26fdf
      Darren Hart authored
      
      
      The MinnowBoard uses an AR803x PHY with the PCH GBE which requires
      special handling. Use the MinnowBoard PCI Subsystem ID to detect this
      and add a pci_device_id.driver_data structure and functions to handle
      platform setup.
      
      The AR803x does not implement the RGMII 2ns TX clock delay in the trace
      routing nor via strapping. Add a detection method for the board and the
      PHY and enable the TX clock delay via the registers.
      
      This PHY will hibernate without link for 10 seconds. Ensure the PHY is
      awake for probe and then disable hibernation. A future improvement would
      be to convert pch_gbe to using PHYLIB and making sure we can wake the
      PHY at the necessary times rather than permanently disabling it.
      
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Peter Waskiewicz <peter.p.waskiewicz.jr@intel.com>
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      Cc: Joe Perches <joe@perches.com>
      Cc: netdev@vger.kernel.org
      f1a26fdf