1. 29 Jul, 2017 17 commits
  2. 28 Jul, 2017 8 commits
  3. 27 Jul, 2017 8 commits
  4. 26 Jul, 2017 7 commits
    • David S. Miller's avatar
      Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · e27a8792
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      40GbE Intel Wired LAN Driver Updates 2017-07-25
      
      This series contains updates to i40e and i40evf only.
      
      Gustavo Silva fixes a variable assignment, where the incorrect variable
      was being used to store the error parameter.
      
      Carolyn provides a fix for a problem found in systems when entering S4
      state, by ensuring that the misc vector's IRQ is disabled as well.
      
      Jake removes the single-threaded restriction on the module workqueue,
      which was causing issues with events such as CORER.  Does some future
      proofing, by changing how the driver displays the UDP tunnel type.
      
      Paul adds a retry in releasing resources if the admin queue times out
      during the first attempt to release the resources.
      
      Jesse fixes up references to 32bit timspec, since there are a small set
      of errors on 32 bit, so we need to be using the right calls for dealing
      with timespec64 variables.  Cleaned up code indentation and corrected
      an "if" conditional check, as well as making the code flow more clear.
      Cast or changed the types to remove warnings for comparing signed and
      unsigned types.  Adds missing includes in i40evf, which were being used
      but were not being directly included.
      
      Daniel Borkmann fixes i40e to fill the XDP prog_id with the id just like
      other XDP enabled drivers, so that on dump we can retrieve the attached
      program based on the id and dump BPF insns, opcodes, etc back to user
      space.
      
      Tushar Dave adds le32_to_cpu while evaluating the hardware descriptor
      fields, since they are in little-endian format.  Also removed
      unnecessary "__packed" to a couple of i40evf structures.
      
      Stefan Assmann fixes an issue when an administratively set MAC was set
      and should now be switched back to 00:00:00:00:00:00, the pf_set_mac
      flag is not being toggled back to false.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e27a8792
    • David S. Miller's avatar
      Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 143f0cf9
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      10GbE Intel Wired LAN Driver Updates 2017-07-25
      
      This series contains updates to ixgbe only.
      
      Tony provides all of the changes in the series, starting with adding a
      check to ensure that adding a MAC filter was successful, before setting the
      MACVLAN.  In order to receive notifications of link configurations of the
      external PHY and support the configuration of the internal iXFI link on
      X552 devices, Tony enables LASI interrupts.  Update the iXFI driver code
      flow, since the MAC register NW_MNG_IF_SEL fields have been redefined for
      X553 devices, so add MAC checks for iXFI flows.  Added additional checks
      for flow control autonegotiation, since it is not support for X553 fiber
       and XFI devices.
      
      v2: removed unnecessary parens noticed by David Miller in patch 6 of the
          series.
      v3: dropped patch 6 of the original series, while we work out a more
          generic solution for malicious driver detection (MDD) support.
      v4: updated patch 1 of the series with the comments from Joe Perches which
          were:
            - switched logic to return on error
            - return 0 on success
            - declare retval as an integer
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      143f0cf9
    • Jakub Kicinski's avatar
      bpf: install libbpf headers on 'make install' · eb54e522
      Jakub Kicinski authored
      Add a new target to install the bpf.h header to $(prefix)/include/bpf/
      directory.  This is necessary to build standalone applications using
      libbpf, without the need to clone the kernel sources and point to them.
      Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      eb54e522
    • Arnd Bergmann's avatar
      hamradio: dmascc: avoid -Wformat-overflow warning · 9877e105
      Arnd Bergmann authored
      gcc warns that the device name might overflow:
      
      drivers/net/hamradio/dmascc.c: In function 'dmascc_init':
      drivers/net/hamradio/dmascc.c:584:22: error: 'sprintf' may write a terminating nul past the end of the destination [-Werror=format-overflow=]
         sprintf(dev->name, "dmascc%i", 2 * n + i);
      drivers/net/hamradio/dmascc.c:584:3: note: 'sprintf' output between 8 and 17 bytes into a destination of size 16
         sprintf(dev->name, "dmascc%i", 2 * n + i);
      
      >From the static data in this file, I can tell that the index is
      strictly limited to 16, so it won't overflow. This simply changes
      the sprintf() to snprintf(), which is a good idea in general,
      and shuts up this warning.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9877e105
    • Stefan Assmann's avatar
      i40e: handle setting administratively set MAC address back to zero · 2f1d86e4
      Stefan Assmann authored
      When an administratively set MAC was previously set and should now be
      switched back to 00:00:00:00:00:00 the pf_set_mac flag did not get
      toggled back to false.
      As a result VFs were still treated as if an administratively set MAC was
      present.
      Signed-off-by: default avatarStefan Assmann <sassmann@kpanic.de>
      Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      2f1d86e4
    • Tushar Dave's avatar
      i40evf: remove unnecessary __packed · 07c357f3
      Tushar Dave authored
      This is similar to 'commit 9588397d ("i40e: remove unnecessary
      __packed")' to avoid unaligned access.
      Signed-off-by: default avatarTushar Dave <tushar.n.dave@oracle.com>
      Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      07c357f3
    • Tushar Dave's avatar
      i40evf: Use le32_to_cpu before evaluating HW desc fields · c969ef4e
      Tushar Dave authored
      i40e hardware descriptor fields are in little-endian format. Driver
      must use le32_to_cpu while evaluating these fields otherwise on
      big-endian arch we end up evaluating incorrect values, cause errors
      like:
      i40evf 0000:03:0a.0: Expected response 24 from PF, received 402653184
      i40evf 0000:03:0a.1: Expected response 7 from PF, received 117440512
      Signed-off-by: default avatarTushar Dave <tushar.n.dave@oracle.com>
      Reviewed-by: default avatarShannon Nelson <shannon.nelson@oracle.com>
      Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      c969ef4e