1. 04 9月, 2019 13 次提交
  2. 02 9月, 2019 21 次提交
  3. 01 9月, 2019 6 次提交
    • B
      net/ncsi: add response handlers for PLDM over NC-SI · 6f671045
      Ben Wei 提交于
      This patch adds handlers for PLDM over NC-SI command response.
      
      This enables NC-SI driver recognizes the packet type so the responses
      don't get dropped as unknown packet type.
      
      PLDM over NC-SI are not handled in kernel driver for now, but can be
      passed back to user space via Netlink for further handling.
      Signed-off-by: NBen Wei <benwei@fb.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6f671045
    • D
      Merge branch 'Minor-cleanup-in-devlink' · 38320f69
      David S. Miller 提交于
      Parav Pandit says:
      
      ====================
      Minor cleanup in devlink
      
      Two minor cleanup in devlink.
      
      Patch-1 Explicitly defines devlink port index as unsigned int
      Patch-2 Uses switch-case to handle different port flavours attributes
      ====================
      Acked-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      38320f69
    • P
      devlink: Use switch-case instead of if-else · 58b6be41
      Parav Pandit 提交于
      Make core more readable with switch-case for various port flavours.
      Acked-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NParav Pandit <parav@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      58b6be41
    • P
      devlink: Make port index data type as unsigned int · c7282b50
      Parav Pandit 提交于
      Devlink port index attribute is returned to users as u32 through
      netlink response.
      Change index data type from 'unsigned' to 'unsigned int' to avoid
      below checkpatch.pl warning.
      
      WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
      81: FILE: include/net/devlink.h:81:
      +       unsigned index;
      Acked-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NParav Pandit <parav@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c7282b50
    • D
      Merge branch 'net-tls-add-socket-diag' · 1b6ca07b
      David S. Miller 提交于
      Davide Caratti says:
      
      ====================
      net: tls: add socket diag
      
      The current kernel does not provide any diagnostic tool, except
      getsockopt(TCP_ULP), to know more about TCP sockets that have an upper
      layer protocol (ULP) on top of them. This series extends the set of
      information exported by INET_DIAG_INFO, to include data that are
      specific to the ULP (and that might be meaningful for debug/testing
      purposes).
      
      patch 1/3 ensures that the control plane reads/updates ULP specific data
      using RCU.
      
      patch 2/3 extends INET_DIAG_INFO and allows knowing the ULP name for
      each TCP socket that has done setsockopt(TCP_ULP) successfully.
      
      patch 3/3 extends kTLS to let programs like 'ss' know the protocol
      version and the cipher in use.
      
      Changes since v2:
      - remove unneeded #ifdef and fix reverse christmas tree in
        tls_get_info(), thanks to Jakub Kicinski
      
      Changes since v1:
      - don't worry about grace period when accessing ulp_ops, thanks to
        Jakub Kicinski and Eric Dumazet
      - use rcu_dereference() to access ULP data in tls get_info(), and
        test against NULL value, thanks to Jakub Kicinski
      - move RCU protected section inside tls get_info(), thanks to Jakub
        Kicinski
      
      Changes since RFC:
      - some coding style fixes, thanks to Jakub Kicinski
      - add X_UNSPEC as lowest value of uAPI enums, thanks to Jakub Kicinski
      - fix assignment of struct nlattr *start, thanks to Jakub Kicinski
      - let tls dump RXCONF and TXCONF, suggested by Jakub Kicinski
      - don't dump anything if TLS version or cipher are 0 (but still return a
        constant size in get_aux_size()), thanks to Boris Pismenny
      - constify first argument of get_info() and get_size()
      - use RCU to access access ulp_ops, like it's done for ca_ops
      - add patch 1/3, from Jakub Kicinski
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1b6ca07b
    • D
      net: tls: export protocol version, cipher, tx_conf/rx_conf to socket diag · 26811cc9
      Davide Caratti 提交于
      When an application configures kernel TLS on top of a TCP socket, it's
      now possible for inet_diag_handler() to collect information regarding the
      protocol version, the cipher type and TX / RX configuration, in case
      INET_DIAG_INFO is requested.
      Signed-off-by: NDavide Caratti <dcaratti@redhat.com>
      Reviewed-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      26811cc9