1. 26 Jul, 2017 4 commits
    • 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
    • Arnd Bergmann's avatar
      virtio-net: mark PM functions as __maybe_unused · 67a75194
      Arnd Bergmann authored
      After removing the reset function, the freeze and restore functions
      are now unused when CONFIG_PM_SLEEP is disabled:
      
      drivers/net/virtio_net.c:1881:12: error: 'virtnet_restore_up' defined but not used [-Werror=unused-function]
       static int virtnet_restore_up(struct virtio_device *vdev)
      drivers/net/virtio_net.c:1859:13: error: 'virtnet_freeze_down' defined but not used [-Werror=unused-function]
       static void virtnet_freeze_down(struct virtio_device *vdev)
      
      A more robust way to do this is to remove the #ifdef around the callers
      and instead mark them as __maybe_unused. The compiler will now just
      silently drop the unused code.
      
      Fixes: 4941d472 ("virtio-net: do not reset during XDP set")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarJason Wang <jasowang@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      67a75194
  2. 25 Jul, 2017 36 commits