Lines Matching +full:rx +full:- +full:tx +full:- +full:swap
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",
390 [const_ilog2(SOF_TIMESTAMPING_TX_HARDWARE)] = "hardware-transmit",
391 [const_ilog2(SOF_TIMESTAMPING_TX_SOFTWARE)] = "software-transmit",
392 [const_ilog2(SOF_TIMESTAMPING_RX_HARDWARE)] = "hardware-receive",
393 [const_ilog2(SOF_TIMESTAMPING_RX_SOFTWARE)] = "software-receive",
394 [const_ilog2(SOF_TIMESTAMPING_SOFTWARE)] = "software-system-clock",
395 [const_ilog2(SOF_TIMESTAMPING_SYS_HARDWARE)] = "hardware-legacy-clock",
396 [const_ilog2(SOF_TIMESTAMPING_RAW_HARDWARE)] = "hardware-raw-clock",
397 [const_ilog2(SOF_TIMESTAMPING_OPT_ID)] = "option-id",
398 [const_ilog2(SOF_TIMESTAMPING_TX_SCHED)] = "sched-transmit",
399 [const_ilog2(SOF_TIMESTAMPING_TX_ACK)] = "ack-transmit",
400 [const_ilog2(SOF_TIMESTAMPING_OPT_CMSG)] = "option-cmsg",
401 [const_ilog2(SOF_TIMESTAMPING_OPT_TSONLY)] = "option-tsonly",
402 [const_ilog2(SOF_TIMESTAMPING_OPT_STATS)] = "option-stats",
403 [const_ilog2(SOF_TIMESTAMPING_OPT_PKTINFO)] = "option-pktinfo",
404 [const_ilog2(SOF_TIMESTAMPING_OPT_TX_SWHW)] = "option-tx-swhw",
405 [const_ilog2(SOF_TIMESTAMPING_BIND_PHC)] = "bind-phc",
412 [HWTSTAMP_TX_ONESTEP_SYNC] = "onestep-sync",
413 [HWTSTAMP_TX_ONESTEP_P2P] = "onestep-p2p",
421 [HWTSTAMP_FILTER_PTP_V1_L4_EVENT] = "ptpv1-l4-event",
422 [HWTSTAMP_FILTER_PTP_V1_L4_SYNC] = "ptpv1-l4-sync",
423 [HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ] = "ptpv1-l4-delay-req",
424 [HWTSTAMP_FILTER_PTP_V2_L4_EVENT] = "ptpv2-l4-event",
425 [HWTSTAMP_FILTER_PTP_V2_L4_SYNC] = "ptpv2-l4-sync",
426 [HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ] = "ptpv2-l4-delay-req",
427 [HWTSTAMP_FILTER_PTP_V2_L2_EVENT] = "ptpv2-l2-event",
428 [HWTSTAMP_FILTER_PTP_V2_L2_SYNC] = "ptpv2-l2-sync",
429 [HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ] = "ptpv2-l2-delay-req",
430 [HWTSTAMP_FILTER_PTP_V2_EVENT] = "ptpv2-event",
431 [HWTSTAMP_FILTER_PTP_V2_SYNC] = "ptpv2-sync",
432 [HWTSTAMP_FILTER_PTP_V2_DELAY_REQ] = "ptpv2-delay-req",
433 [HWTSTAMP_FILTER_NTP_ALL] = "ntp-all",
440 [ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE] = "vxlan-gpe",
445 /* return false if legacy contained non-0 deprecated fields
461 if (legacy_settings->maxtxpkt || in convert_legacy_settings_to_link_ksettings()
462 legacy_settings->maxrxpkt) in convert_legacy_settings_to_link_ksettings()
466 link_ksettings->link_modes.supported, in convert_legacy_settings_to_link_ksettings()
467 legacy_settings->supported); in convert_legacy_settings_to_link_ksettings()
469 link_ksettings->link_modes.advertising, in convert_legacy_settings_to_link_ksettings()
470 legacy_settings->advertising); in convert_legacy_settings_to_link_ksettings()
472 link_ksettings->link_modes.lp_advertising, in convert_legacy_settings_to_link_ksettings()
473 legacy_settings->lp_advertising); in convert_legacy_settings_to_link_ksettings()
474 link_ksettings->base.speed in convert_legacy_settings_to_link_ksettings()
476 link_ksettings->base.duplex in convert_legacy_settings_to_link_ksettings()
477 = legacy_settings->duplex; in convert_legacy_settings_to_link_ksettings()
478 link_ksettings->base.port in convert_legacy_settings_to_link_ksettings()
479 = legacy_settings->port; in convert_legacy_settings_to_link_ksettings()
480 link_ksettings->base.phy_address in convert_legacy_settings_to_link_ksettings()
481 = legacy_settings->phy_address; in convert_legacy_settings_to_link_ksettings()
482 link_ksettings->base.autoneg in convert_legacy_settings_to_link_ksettings()
483 = legacy_settings->autoneg; in convert_legacy_settings_to_link_ksettings()
484 link_ksettings->base.mdio_support in convert_legacy_settings_to_link_ksettings()
485 = legacy_settings->mdio_support; in convert_legacy_settings_to_link_ksettings()
486 link_ksettings->base.eth_tp_mdix in convert_legacy_settings_to_link_ksettings()
487 = legacy_settings->eth_tp_mdix; in convert_legacy_settings_to_link_ksettings()
488 link_ksettings->base.eth_tp_mdix_ctrl in convert_legacy_settings_to_link_ksettings()
489 = legacy_settings->eth_tp_mdix_ctrl; in convert_legacy_settings_to_link_ksettings()
495 if (!dev->ethtool_ops->get_link) in __ethtool_get_link()
496 return -EOPNOTSUPP; in __ethtool_get_link()
498 return netif_running(dev) && dev->ethtool_ops->get_link(dev); in __ethtool_get_link()
507 if (!dev->ethtool_ops->get_rxfh_indir_size || in ethtool_get_max_rxfh_channel()
508 !dev->ethtool_ops->get_rxfh) in ethtool_get_max_rxfh_channel()
509 return -EOPNOTSUPP; in ethtool_get_max_rxfh_channel()
510 dev_size = dev->ethtool_ops->get_rxfh_indir_size(dev); in ethtool_get_max_rxfh_channel()
512 return -EOPNOTSUPP; in ethtool_get_max_rxfh_channel()
516 return -ENOMEM; in ethtool_get_max_rxfh_channel()
518 ret = dev->ethtool_ops->get_rxfh(dev, indir, NULL, NULL); in ethtool_get_max_rxfh_channel()
522 while (dev_size--) in ethtool_get_max_rxfh_channel()
534 if (WARN_ON(ops->set_coalesce && !ops->supported_coalesce_params)) in ethtool_check_ops()
535 return -EINVAL; in ethtool_check_ops()
536 /* NOTE: sufficiently insane drivers may swap ethtool_ops at runtime, in ethtool_check_ops()
545 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_ts_info()
546 struct phy_device *phydev = dev->phydev; in __ethtool_get_ts_info()
549 info->cmd = ETHTOOL_GET_TS_INFO; in __ethtool_get_ts_info()
553 if (ops->get_ts_info) in __ethtool_get_ts_info()
554 return ops->get_ts_info(dev, info); in __ethtool_get_ts_info()
556 info->so_timestamping = SOF_TIMESTAMPING_RX_SOFTWARE | in __ethtool_get_ts_info()
558 info->phc_index = -1; in __ethtool_get_ts_info()
595 link_ksettings->base.speed = link_info->speed; in ethtool_params_from_link_mode()
596 link_ksettings->lanes = link_info->lanes; in ethtool_params_from_link_mode()
597 link_ksettings->base.duplex = link_info->duplex; in ethtool_params_from_link_mode()