Lines Matching +full:1000 +full:base +full:- +full:t

1 // SPDX-License-Identifier: GPL-2.0-only
12 [NETIF_F_SG_BIT] = "tx-scatter-gather",
13 [NETIF_F_IP_CSUM_BIT] = "tx-checksum-ipv4",
14 [NETIF_F_HW_CSUM_BIT] = "tx-checksum-ip-generic",
15 [NETIF_F_IPV6_CSUM_BIT] = "tx-checksum-ipv6",
17 [NETIF_F_FRAGLIST_BIT] = "tx-scatter-gather-fraglist",
18 [NETIF_F_HW_VLAN_CTAG_TX_BIT] = "tx-vlan-hw-insert",
20 [NETIF_F_HW_VLAN_CTAG_RX_BIT] = "rx-vlan-hw-parse",
21 [NETIF_F_HW_VLAN_CTAG_FILTER_BIT] = "rx-vlan-filter",
22 [NETIF_F_HW_VLAN_STAG_TX_BIT] = "tx-vlan-stag-hw-insert",
23 [NETIF_F_HW_VLAN_STAG_RX_BIT] = "rx-vlan-stag-hw-parse",
24 [NETIF_F_HW_VLAN_STAG_FILTER_BIT] = "rx-vlan-stag-filter",
25 [NETIF_F_VLAN_CHALLENGED_BIT] = "vlan-challenged",
26 [NETIF_F_GSO_BIT] = "tx-generic-segmentation",
27 [NETIF_F_LLTX_BIT] = "tx-lockless",
28 [NETIF_F_NETNS_LOCAL_BIT] = "netns-local",
29 [NETIF_F_GRO_BIT] = "rx-gro",
30 [NETIF_F_GRO_HW_BIT] = "rx-gro-hw",
31 [NETIF_F_LRO_BIT] = "rx-lro",
33 [NETIF_F_TSO_BIT] = "tx-tcp-segmentation",
34 [NETIF_F_GSO_ROBUST_BIT] = "tx-gso-robust",
35 [NETIF_F_TSO_ECN_BIT] = "tx-tcp-ecn-segmentation",
36 [NETIF_F_TSO_MANGLEID_BIT] = "tx-tcp-mangleid-segmentation",
37 [NETIF_F_TSO6_BIT] = "tx-tcp6-segmentation",
38 [NETIF_F_FSO_BIT] = "tx-fcoe-segmentation",
39 [NETIF_F_GSO_GRE_BIT] = "tx-gre-segmentation",
40 [NETIF_F_GSO_GRE_CSUM_BIT] = "tx-gre-csum-segmentation",
41 [NETIF_F_GSO_IPXIP4_BIT] = "tx-ipxip4-segmentation",
42 [NETIF_F_GSO_IPXIP6_BIT] = "tx-ipxip6-segmentation",
43 [NETIF_F_GSO_UDP_TUNNEL_BIT] = "tx-udp_tnl-segmentation",
44 [NETIF_F_GSO_UDP_TUNNEL_CSUM_BIT] = "tx-udp_tnl-csum-segmentation",
45 [NETIF_F_GSO_PARTIAL_BIT] = "tx-gso-partial",
46 [NETIF_F_GSO_TUNNEL_REMCSUM_BIT] = "tx-tunnel-remcsum-segmentation",
47 [NETIF_F_GSO_SCTP_BIT] = "tx-sctp-segmentation",
48 [NETIF_F_GSO_ESP_BIT] = "tx-esp-segmentation",
49 [NETIF_F_GSO_UDP_L4_BIT] = "tx-udp-segmentation",
50 [NETIF_F_GSO_FRAGLIST_BIT] = "tx-gso-list",
52 [NETIF_F_FCOE_CRC_BIT] = "tx-checksum-fcoe-crc",
53 [NETIF_F_SCTP_CRC_BIT] = "tx-checksum-sctp",
54 [NETIF_F_FCOE_MTU_BIT] = "fcoe-mtu",
55 [NETIF_F_NTUPLE_BIT] = "rx-ntuple-filter",
56 [NETIF_F_RXHASH_BIT] = "rx-hashing",
57 [NETIF_F_RXCSUM_BIT] = "rx-checksum",
58 [NETIF_F_NOCACHE_COPY_BIT] = "tx-nocache-copy",
60 [NETIF_F_RXFCS_BIT] = "rx-fcs",
61 [NETIF_F_RXALL_BIT] = "rx-all",
62 [NETIF_F_HW_L2FW_DOFFLOAD_BIT] = "l2-fwd-offload",
63 [NETIF_F_HW_TC_BIT] = "hw-tc-offload",
64 [NETIF_F_HW_ESP_BIT] = "esp-hw-offload",
65 [NETIF_F_HW_ESP_TX_CSUM_BIT] = "esp-tx-csum-hw-offload",
66 [NETIF_F_RX_UDP_TUNNEL_PORT_BIT] = "rx-udp_tunnel-port-offload",
67 [NETIF_F_HW_TLS_RECORD_BIT] = "tls-hw-record",
68 [NETIF_F_HW_TLS_TX_BIT] = "tls-hw-tx-offload",
69 [NETIF_F_HW_TLS_RX_BIT] = "tls-hw-rx-offload",
70 [NETIF_F_GRO_FRAGLIST_BIT] = "rx-gro-list",
71 [NETIF_F_HW_MACSEC_BIT] = "macsec-hw-offload",
72 [NETIF_F_GRO_UDP_FWD_BIT] = "rx-udp-gro-forwarding",
73 [NETIF_F_HW_HSR_TAG_INS_BIT] = "hsr-tag-ins-offload",
74 [NETIF_F_HW_HSR_TAG_RM_BIT] = "hsr-tag-rm-offload",
75 [NETIF_F_HW_HSR_FWD_BIT] = "hsr-fwd-offload",
76 [NETIF_F_HW_HSR_DUP_BIT] = "hsr-dup-offload",
89 [ETHTOOL_RX_COPYBREAK] = "rx-copybreak",
90 [ETHTOOL_TX_COPYBREAK] = "tx-copybreak",
91 [ETHTOOL_PFC_PREVENTION_TOUT] = "pfc-prevention-tout",
92 [ETHTOOL_TX_COPYBREAK_BUF_SIZE] = "tx-copybreak-buf-size",
98 [ETHTOOL_PHY_DOWNSHIFT] = "phy-downshift",
99 [ETHTOOL_PHY_FAST_LINK_DOWN] = "phy-fast-link-down",
100 [ETHTOOL_PHY_EDPD] = "phy-energy-detect-power-down",
104 #speed "base" #type "/" #duplex
112 __DEFINE_LINK_MODE_NAME(10, T, Half),
113 __DEFINE_LINK_MODE_NAME(10, T, Full),
114 __DEFINE_LINK_MODE_NAME(100, T, Half),
115 __DEFINE_LINK_MODE_NAME(100, T, Full),
116 __DEFINE_LINK_MODE_NAME(1000, T, Half),
117 __DEFINE_LINK_MODE_NAME(1000, T, Full),
124 __DEFINE_LINK_MODE_NAME(10000, T, Full),
129 __DEFINE_LINK_MODE_NAME(1000, KX, Full),
153 __DEFINE_LINK_MODE_NAME(1000, X, Full),
159 __DEFINE_LINK_MODE_NAME(2500, T, Full),
160 __DEFINE_LINK_MODE_NAME(5000, T, Full),
180 __DEFINE_LINK_MODE_NAME(1000, T1, Full),
271 __DEFINE_LINK_MODE_PARAMS(10, T, Half),
272 __DEFINE_LINK_MODE_PARAMS(10, T, Full),
273 __DEFINE_LINK_MODE_PARAMS(100, T, Half),
274 __DEFINE_LINK_MODE_PARAMS(100, T, Full),
275 __DEFINE_LINK_MODE_PARAMS(1000, T, Half),
276 __DEFINE_LINK_MODE_PARAMS(1000, T, Full),
283 __DEFINE_LINK_MODE_PARAMS(10000, T, Full),
288 __DEFINE_LINK_MODE_PARAMS(1000, KX, Full),
316 __DEFINE_LINK_MODE_PARAMS(1000, X, Full),
322 __DEFINE_LINK_MODE_PARAMS(2500, T, Full),
323 __DEFINE_LINK_MODE_PARAMS(5000, T, Full),
343 __DEFINE_LINK_MODE_PARAMS(1000, T1, Full),
412 [const_ilog2(SOF_TIMESTAMPING_TX_HARDWARE)] = "hardware-transmit",
413 [const_ilog2(SOF_TIMESTAMPING_TX_SOFTWARE)] = "software-transmit",
414 [const_ilog2(SOF_TIMESTAMPING_RX_HARDWARE)] = "hardware-receive",
415 [const_ilog2(SOF_TIMESTAMPING_RX_SOFTWARE)] = "software-receive",
416 [const_ilog2(SOF_TIMESTAMPING_SOFTWARE)] = "software-system-clock",
417 [const_ilog2(SOF_TIMESTAMPING_SYS_HARDWARE)] = "hardware-legacy-clock",
418 [const_ilog2(SOF_TIMESTAMPING_RAW_HARDWARE)] = "hardware-raw-clock",
419 [const_ilog2(SOF_TIMESTAMPING_OPT_ID)] = "option-id",
420 [const_ilog2(SOF_TIMESTAMPING_TX_SCHED)] = "sched-transmit",
421 [const_ilog2(SOF_TIMESTAMPING_TX_ACK)] = "ack-transmit",
422 [const_ilog2(SOF_TIMESTAMPING_OPT_CMSG)] = "option-cmsg",
423 [const_ilog2(SOF_TIMESTAMPING_OPT_TSONLY)] = "option-tsonly",
424 [const_ilog2(SOF_TIMESTAMPING_OPT_STATS)] = "option-stats",
425 [const_ilog2(SOF_TIMESTAMPING_OPT_PKTINFO)] = "option-pktinfo",
426 [const_ilog2(SOF_TIMESTAMPING_OPT_TX_SWHW)] = "option-tx-swhw",
427 [const_ilog2(SOF_TIMESTAMPING_BIND_PHC)] = "bind-phc",
428 [const_ilog2(SOF_TIMESTAMPING_OPT_ID_TCP)] = "option-id-tcp",
435 [HWTSTAMP_TX_ONESTEP_SYNC] = "onestep-sync",
436 [HWTSTAMP_TX_ONESTEP_P2P] = "onestep-p2p",
444 [HWTSTAMP_FILTER_PTP_V1_L4_EVENT] = "ptpv1-l4-event",
445 [HWTSTAMP_FILTER_PTP_V1_L4_SYNC] = "ptpv1-l4-sync",
446 [HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ] = "ptpv1-l4-delay-req",
447 [HWTSTAMP_FILTER_PTP_V2_L4_EVENT] = "ptpv2-l4-event",
448 [HWTSTAMP_FILTER_PTP_V2_L4_SYNC] = "ptpv2-l4-sync",
449 [HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ] = "ptpv2-l4-delay-req",
450 [HWTSTAMP_FILTER_PTP_V2_L2_EVENT] = "ptpv2-l2-event",
451 [HWTSTAMP_FILTER_PTP_V2_L2_SYNC] = "ptpv2-l2-sync",
452 [HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ] = "ptpv2-l2-delay-req",
453 [HWTSTAMP_FILTER_PTP_V2_EVENT] = "ptpv2-event",
454 [HWTSTAMP_FILTER_PTP_V2_SYNC] = "ptpv2-sync",
455 [HWTSTAMP_FILTER_PTP_V2_DELAY_REQ] = "ptpv2-delay-req",
456 [HWTSTAMP_FILTER_NTP_ALL] = "ntp-all",
463 [ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE] = "vxlan-gpe",
468 /* return false if legacy contained non-0 deprecated fields
484 if (legacy_settings->maxtxpkt || in convert_legacy_settings_to_link_ksettings()
485 legacy_settings->maxrxpkt) in convert_legacy_settings_to_link_ksettings()
489 link_ksettings->link_modes.supported, in convert_legacy_settings_to_link_ksettings()
490 legacy_settings->supported); in convert_legacy_settings_to_link_ksettings()
492 link_ksettings->link_modes.advertising, in convert_legacy_settings_to_link_ksettings()
493 legacy_settings->advertising); in convert_legacy_settings_to_link_ksettings()
495 link_ksettings->link_modes.lp_advertising, in convert_legacy_settings_to_link_ksettings()
496 legacy_settings->lp_advertising); in convert_legacy_settings_to_link_ksettings()
497 link_ksettings->base.speed in convert_legacy_settings_to_link_ksettings()
499 link_ksettings->base.duplex in convert_legacy_settings_to_link_ksettings()
500 = legacy_settings->duplex; in convert_legacy_settings_to_link_ksettings()
501 link_ksettings->base.port in convert_legacy_settings_to_link_ksettings()
502 = legacy_settings->port; in convert_legacy_settings_to_link_ksettings()
503 link_ksettings->base.phy_address in convert_legacy_settings_to_link_ksettings()
504 = legacy_settings->phy_address; in convert_legacy_settings_to_link_ksettings()
505 link_ksettings->base.autoneg in convert_legacy_settings_to_link_ksettings()
506 = legacy_settings->autoneg; in convert_legacy_settings_to_link_ksettings()
507 link_ksettings->base.mdio_support in convert_legacy_settings_to_link_ksettings()
508 = legacy_settings->mdio_support; in convert_legacy_settings_to_link_ksettings()
509 link_ksettings->base.eth_tp_mdix in convert_legacy_settings_to_link_ksettings()
510 = legacy_settings->eth_tp_mdix; in convert_legacy_settings_to_link_ksettings()
511 link_ksettings->base.eth_tp_mdix_ctrl in convert_legacy_settings_to_link_ksettings()
512 = legacy_settings->eth_tp_mdix_ctrl; in convert_legacy_settings_to_link_ksettings()
518 if (!dev->ethtool_ops->get_link) in __ethtool_get_link()
519 return -EOPNOTSUPP; in __ethtool_get_link()
521 return netif_running(dev) && dev->ethtool_ops->get_link(dev); in __ethtool_get_link()
526 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_rxnfc_rule_count()
532 err = ops->get_rxnfc(dev, &info, NULL); in ethtool_get_rxnfc_rule_count()
541 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_max_rxnfc_channel()
546 if (!ops->get_rxnfc) in ethtool_get_max_rxnfc_channel()
547 return -EOPNOTSUPP; in ethtool_get_max_rxnfc_channel()
551 return -EINVAL; in ethtool_get_max_rxnfc_channel()
555 return -ENOMEM; in ethtool_get_max_rxnfc_channel()
557 info->cmd = ETHTOOL_GRXCLSRLALL; in ethtool_get_max_rxnfc_channel()
558 info->rule_cnt = rule_cnt; in ethtool_get_max_rxnfc_channel()
559 err = ops->get_rxnfc(dev, info, info->rule_locs); in ethtool_get_max_rxnfc_channel()
566 .fs.location = info->rule_locs[i], in ethtool_get_max_rxnfc_channel()
569 err = ops->get_rxnfc(dev, &rule_info, NULL); in ethtool_get_max_rxnfc_channel()
596 if (!dev->ethtool_ops->get_rxfh_indir_size || in ethtool_get_max_rxfh_channel()
597 !dev->ethtool_ops->get_rxfh) in ethtool_get_max_rxfh_channel()
598 return -EOPNOTSUPP; in ethtool_get_max_rxfh_channel()
599 dev_size = dev->ethtool_ops->get_rxfh_indir_size(dev); in ethtool_get_max_rxfh_channel()
601 return -EOPNOTSUPP; in ethtool_get_max_rxfh_channel()
605 return -ENOMEM; in ethtool_get_max_rxfh_channel()
607 ret = dev->ethtool_ops->get_rxfh(dev, indir, NULL, NULL); in ethtool_get_max_rxfh_channel()
611 while (dev_size--) in ethtool_get_max_rxfh_channel()
623 if (WARN_ON(ops->set_coalesce && !ops->supported_coalesce_params)) in ethtool_check_ops()
624 return -EINVAL; in ethtool_check_ops()
634 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_ts_info()
635 struct phy_device *phydev = dev->phydev; in __ethtool_get_ts_info()
638 info->cmd = ETHTOOL_GET_TS_INFO; in __ethtool_get_ts_info()
642 if (ops->get_ts_info) in __ethtool_get_ts_info()
643 return ops->get_ts_info(dev, info); in __ethtool_get_ts_info()
645 info->so_timestamping = SOF_TIMESTAMPING_RX_SOFTWARE | in __ethtool_get_ts_info()
647 info->phc_index = -1; in __ethtool_get_ts_info()
683 link_ksettings->base.speed = link_info->speed; in ethtool_params_from_link_mode()
684 link_ksettings->lanes = link_info->lanes; in ethtool_params_from_link_mode()
685 link_ksettings->base.duplex = link_info->duplex; in ethtool_params_from_link_mode()