Skip to content
  1. Mar 21, 2019
    • Vakul Garg's avatar
      net/tls: Add support of AES128-CCM based ciphers · f295b3ae
      Vakul Garg authored
      
      
      Added support for AES128-CCM based record encryption. AES128-CCM is
      similar to AES128-GCM. Both of them have same salt/iv/mac size. The
      notable difference between the two is that while invoking AES128-CCM
      operation, the salt||nonce (which is passed as IV) has to be prefixed
      with a hardcoded value '2'. Further, CCM implementation in kernel
      requires IV passed in crypto_aead_request() to be full '16' bytes.
      Therefore, the record structure 'struct tls_rec' has been modified to
      reserve '16' bytes for IV. This works for both GCM and CCM based cipher.
      
      Signed-off-by: default avatarVakul Garg <vakul.garg@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f295b3ae
    • David S. Miller's avatar
      Merge branch 'net-phy-aquantia-add-interface-mode-handling' · 6a23c0a6
      David S. Miller authored
      
      
      Heiner Kallweit says:
      
      ====================
      net: phy: aquantia: add interface mode handling
      
      These two patches add interface mode handling for the AQR107/AQCS109.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6a23c0a6
    • Nikita Yushchenko's avatar
      net: phy: aquantia: check for changed interface mode in read_status · 1e614b50
      Nikita Yushchenko authored
      
      
      Depending on the auto-negotiated speed the PHY may change the interface
      mode. Check for new mode and set phydev->interface accordingly.
      
      Signed-off-by: default avatarNikita Yushchenko <nikita.yoush@cogentembedded.com>
      Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
      [hkallweit1@gmail.com: picked from bigger patch and reworked]
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1e614b50
    • Andrew Lunn's avatar
      net: phy: aquantia: check for supported interface modes in config_init · 570c8a7d
      Andrew Lunn authored
      
      
      Let config_init check for unsupported interface modes on AQR107/AQCS109.
      
      Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
      [hkallweit1@gmail.com: adjusted for AQR107/AQCS109 specifics]
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      570c8a7d
    • Heiner Kallweit's avatar
      net: phy: improve handling link_change_notify callback · 5c5f626b
      Heiner Kallweit authored
      Currently the Phy driver's link_change_notify callback is called
      whenever the state machine is run (every second if polling), no matter
      whether the state changed or not. This isn't needed and may confuse
      users considering the name of the callback. Actually it contradicts
      its kernel-doc description. Therefore let's change the behavior and
      call this callback only in case of an actual state change.
      
      This requires changes to the at803x and rockchip drivers.
      at803x can be simplified so that it reacts on a state change to
      PHY_NOLINK only.
      The rockchip driver can also be much simplified. We simply re-init
      the AFE/DSP registers whenever we change to PHY_RUNNING and speed
      is 100Mbps. This causes very small overhead because we do this even
      if the speed was 100Mbps already. But this is negligible and
      I think justified by the much simpler code.
      
      Changes are compile-tested only.
      
      A little bit problematic seems to be to find somebody with the
      hardware to test the changes to the two PHY drivers. See also [0].
      David may be able to test the Rockchip driver.
      
      [0] https://marc.info/?t=153782508800006&r=1&w=2
      
      
      
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5c5f626b
    • David S. Miller's avatar
      Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 0b8515ed
      David S. Miller authored
      
      
      Jeff Kirsher says:
      
      ====================
      100GbE Intel Wired LAN Driver Updates 2019-03-19
      
      This series contains updates to ice driver only.
      
      Michal adds support for the pruning enable flag to avoid seeing
      broadcast packets on different VLANs.
      
      Akeem fixes an issue with VF queues being disabled and the VF netdev
      network carrier being lost after reset. Fixed an issue issue when doing
      PFR and CORER resets, where all VF VSIs need to be reset and rebuilt
      with the main VSIs before replaying all VSIs.  Resolved an issue to
      properly initialize VFs in the guest OS via PCI passthrough.
      
      Bruce adds a local variable to avoid unnecessary de-references
      throughout ice_probe().
      
      Brett cleans up the code a bit by removing the need for a local variable
      and re-designs the loop to simply return when get a successful result.
      Cleans up the code to replace loop calls with a predefined macro to make
      the code more consistent.  Updated the driver to ensure ITR granularity
      is always 2 usecs. Refactors the calculation of VSIs per PF into a
      general function that can calculate per PF allocations for not just VSIs
      but across multiple resource types.  Improve the driver performance of
      the driver when using the default settings by determining the ring size
      and the number of descriptors for transmit and receive based on a
      calculation with the PAGE_SIZE, ICE_MAX_NUM_DESC, and
      ICE_REQ_DESC_MULTIPLE.
      
      Chinh fixes an issue, where a reserved bit was possibly being set when
      it should never be set.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0b8515ed
    • David S. Miller's avatar
      Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 8d3a3048
      David S. Miller authored
      
      
      Jeff Kirsher says:
      
      ====================
      1GbE Intel Wired LAN Driver Updates 2019-03-19
      
      This series contains updates to e100, e1000, e1000e, igb, igc and
      ixgbe.
      
      Serhey Popovych fixes the return value for several of our older
      drivers for netdev_update_features() to notify of changes applied.
      
      Kai-Heng Feng fixes the WoL setting for system suspend, which should
      not set to runtime suspend settings for igb.  Then fixes a power
      management issue with e1000e for CNP+ devices.
      
      Colin Ian King fixes whitespace issue (indentation), which helps with
      readability.
      
      Sasha provides the remaining changes for igc, including the enabling of
      multi-queues to receive.  Added support for displaying and configuring
      network flow classification (NFC) via ethtool.  Added additional
      statistics and basic counters for igc.  Fixed a typo, so it aligns with
      our other drivers.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8d3a3048
  2. Mar 20, 2019