1. 06 10月, 2020 1 次提交
    • J
      ethtool: wire up get policies to ops · 4f30974f
      Jakub Kicinski 提交于
      Wire up policies for get commands in struct nla_policy of the ethtool
      family. Make use of genetlink code attr validation and parsing, as well
      as allow dumping policies to user space.
      
      For every ETHTOOL_MSG_*_GET:
       - add 'ethnl_' prefix to policy name
       - add extern declaration in net/ethtool/netlink.h
       - wire up the policy & attr in ethtool_genl_ops[].
       - remove .request_policy and .max_attr from ethnl_request_ops.
      
      Obviously core only records the first "layer" of parsed attrs
      so we still need to parse the sub-attrs of the nested header
      attribute.
      
      v2:
       - merge of patches 1 and 2 from v1
       - remove stray empty lines in ops
       - also remove .max_attr
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4f30974f
  2. 29 9月, 2020 1 次提交
  3. 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
  4. 10 7月, 2020 1 次提交
  5. 27 5月, 2020 1 次提交
  6. 22 5月, 2020 1 次提交
  7. 11 5月, 2020 2 次提交
  8. 30 3月, 2020 10 次提交
  9. 16 3月, 2020 1 次提交
  10. 13 3月, 2020 13 次提交
  11. 27 1月, 2020 7 次提交
  12. 09 1月, 2020 1 次提交