Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,42 @@
ip link set eth0 promisc on
Configure interface (ethtool)

Check warning on line 526 in source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU-ICSS_Ethernet.rst

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [RedHat.Spelling] Verify the word 'ethtool'. It is not in the American English spelling dictionary used by Vale. Raw Output: {"message": "[RedHat.Spelling] Verify the word 'ethtool'. It is not in the American English spelling dictionary used by Vale.", "location": {"path": "source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU-ICSS_Ethernet.rst", "range": {"start": {"line": 526, "column": 22}}}, "severity": "WARNING"}
=============================

``ethtool -s|--change DEVNAME`` command can be used for configuring interface generic options.
The main purpose of this command is to configure physical link settings (PHY) like speed, duplex, auto-negotiation.

The PRU Ethernet driver forwards the following commands to the PHY driver:

Check warning on line 532 in source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU-ICSS_Ethernet.rst

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [RedHat.Definitions] Define acronyms and abbreviations (such as 'PHY') on first occurrence if they're likely to be unfamiliar. Raw Output: {"message": "[RedHat.Definitions] Define acronyms and abbreviations (such as 'PHY') on first occurrence if they're likely to be unfamiliar.", "location": {"path": "source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU-ICSS_Ethernet.rst", "range": {"start": {"line": 532, "column": 64}}}, "severity": "INFO"}

Check warning on line 532 in source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU-ICSS_Ethernet.rst

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [RedHat.Definitions] Define acronyms and abbreviations (such as 'PRU') on first occurrence if they're likely to be unfamiliar. Raw Output: {"message": "[RedHat.Definitions] Define acronyms and abbreviations (such as 'PRU') on first occurrence if they're likely to be unfamiliar.", "location": {"path": "source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU-ICSS_Ethernet.rst", "range": {"start": {"line": 532, "column": 5}}}, "severity": "INFO"}

.. code-block:: console
# ethtool -s <dev>
[ speed %d ]
[ duplex half|full ]
[ autoneg on|off ]
[ wol p|u|m|b|a|g|s|d... ]
[ sopass %x:%x:%x:%x:%x:%x ]
.. ifconfig:: CONFIG_part_variant in ('AM335X')

.. note::

Half Duplex is only supported for `pruss_emac0` interface. Configuring `pruss_emac1` in half duplex
is not functional. This is a known issue that is being tracked separately.

Below is an example of forcing link speed to 100M/10M and duplexity to full:

Check warning on line 550 in source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU-ICSS_Ethernet.rst

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [RedHat.Spelling] Verify the word 'duplexity'. It is not in the American English spelling dictionary used by Vale. Raw Output: {"message": "[RedHat.Spelling] Verify the word 'duplexity'. It is not in the American English spelling dictionary used by Vale.", "location": {"path": "source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU-ICSS_Ethernet.rst", "range": {"start": {"line": 550, "column": 59}}}, "severity": "WARNING"}

Check warning on line 550 in source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU-ICSS_Ethernet.rst

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [RedHat.Slash] Use either 'or' or 'and' in '100M/10M' Raw Output: {"message": "[RedHat.Slash] Use either 'or' or 'and' in '100M/10M'", "location": {"path": "source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU-ICSS_Ethernet.rst", "range": {"start": {"line": 550, "column": 46}}}, "severity": "WARNING"}

.. code-block:: console
# ethtool -s eth0 duplex half speed 100
[ 169.620032] prueth pruss-eth eth0: Link is Down
[ 171.727166] prueth pruss-eth eth0: Link is Up - 100Mbps/Half - flow control off
# ethtool -s eth0 duplex half speed 10
[ 266.901225] prueth pruss-eth eth0: Link is Down
[ 269.018796] prueth pruss-eth eth0: Link is Up - 10Mbps/Half - flow control off
PTP Ordinary Clock
==================

Expand Down