1. 06 8月, 2021 1 次提交
  2. 05 8月, 2021 1 次提交
  3. 03 8月, 2021 3 次提交
  4. 02 7月, 2021 1 次提交
  5. 16 6月, 2021 1 次提交
    • J
      ethtool: add a stricter length check · 4d1fb7cd
      Jakub Kicinski 提交于
      There has been a few errors in the ethtool reply size calculations,
      most of those are hard to trigger during basic testing because of
      skb size rounding up and netdev names being shorter than max.
      Add a more precise check.
      
      This change will affect the value of payload length displayed in
      case of -EMSGSIZE but that should be okay, "payload length" isn't
      a well defined term here.
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4d1fb7cd
  6. 06 5月, 2021 1 次提交
  7. 17 4月, 2021 1 次提交
  8. 12 4月, 2021 1 次提交
  9. 01 4月, 2021 1 次提交
    • J
      ethtool: support FEC settings over netlink · 1e5d1f69
      Jakub Kicinski 提交于
      Add FEC API to netlink.
      
      This is not a 1-to-1 conversion.
      
      FEC settings already depend on link modes to tell user which
      modes are supported. Take this further an use link modes for
      manual configuration. Old struct ethtool_fecparam is still
      used to talk to the drivers, so we need to translate back
      and forth. We can revisit the internal API if number of FEC
      encodings starts to grow.
      
      Enforce only one active FEC bit (by using a bit position
      rather than another mask).
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1e5d1f69
  10. 09 10月, 2020 1 次提交
  11. 06 10月, 2020 5 次提交
  12. 29 9月, 2020 1 次提交
  13. 11 7月, 2020 1 次提交
    • J
      ethtool: add tunnel info interface · c7d759eb
      Jakub Kicinski 提交于
      Add an interface to report offloaded UDP ports via ethtool netlink.
      
      Now that core takes care of tracking which UDP tunnel ports the NICs
      are aware of we can quite easily export this information out to
      user space.
      
      The responsibility of writing the netlink dumps is split between
      ethtool code and udp_tunnel_nic.c - since udp_tunnel module may
      not always be loaded, yet we should always report the capabilities
      of the NIC.
      
      $ ethtool --show-tunnels eth0
      Tunnel information for eth0:
        UDP port table 0:
          Size: 4
          Types: vxlan
          No entries
        UDP port table 1:
          Size: 4
          Types: geneve, vxlan-gpe
          Entries (1):
              port 1230, vxlan-gpe
      
      v4:
       - back to v2, build fix is now directly in udp_tunnel.h
      v3:
       - don't compile ETHTOOL_MSG_TUNNEL_INFO_GET in if CONFIG_INET
         not set.
      v2:
       - fix string set count,
       - reorder enums in the uAPI,
       - fix type of ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES to bitset
         in docs and comments.
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c7d759eb
  14. 10 7月, 2020 1 次提交
  15. 27 5月, 2020 1 次提交
  16. 22 5月, 2020 1 次提交
  17. 11 5月, 2020 2 次提交
  18. 30 3月, 2020 10 次提交
  19. 16 3月, 2020 1 次提交
  20. 13 3月, 2020 5 次提交