Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand MAU Type Support for 2.5G, 5G and 10G #572

Closed
wants to merge 19 commits into from

Conversation

axkar
Copy link

@axkar axkar commented Jan 15, 2024

No description provided.

troglobit and others added 19 commits March 3, 2023 15:08
Linux supports multiple IP addresses per interface.  In many cases the
first address set will be a link-local, 169.254.x.y, which is likely
not what we want to announce over PROFINET.

This change iterates over all available addresses on the given interface
comparing against 0.0.0.0, loopback, and link-local.  Returning the best
of all set at query time.

Signed-off-by: Joachim Wiberg <[email protected]>
The UNIX send() API may return an error code for many cases that are not
relevant to cause error messages to be logged.  This patch only covers
the most probably cause: the port has link down.

A log message with errno is added to identify other possible causes.

Signed-off-by: Joachim Wiberg <[email protected]>
Transparently support local mirror for cloning efficiency and possibility
for local changes.

Cherry picked from rtlabs-com/osal@82e4b0c

Signed-off-by: Joachim Wiberg <[email protected]>
The AgentX socket path needs to be set very early, before pnet_init() is
called, so the user must set this path as part of pnal_cfg setup.

Signed-off-by: Joachim Wiberg <[email protected]>
When running p-net in a virtual setup, in Qemu, with virtio drivers the
call to ethtool returns invalid/unknown values for type/speed/duplex, so
we fake it.  The virtio driver is not used for anything else so this
should be safe to keep as-is even for production.

Signed-off-by: Joachim Wiberg <[email protected]>
This patch adds rudimentary support for enabling/disabling an Ethernet
port from TIA portal, using the Activate/Deactivate adv. port setting.
Rudimentary because it only supports Linux atm.

Note, in pf_pdport_ar_connect_int() we make sure to re-enable the port
after a reset of all port settings.  Because we may not get a re-enable
command over PROFINET.  This probably applies also to P2P boundary, but
that remains to be verified.

Signed-off-by: Joachim Wiberg <[email protected]>
This patch adds rudimentary support for setting interface speed and
duplex from TIA portal, using the Transmission rate/duplex setting.
Rudimentary because it only supports Linux atm.

Note, like with port deactivate, in pf_pdport_ar_connect_int() we reset
the port speed to autoneg after a reset of all port settings.

Signed-off-by: Joachim Wiberg <[email protected]>
This allows for application specific identifaction patterns (it is quite
hard to see 1 Hz blink in a full cabinet), i.e., quicker blinking from
offloaded LEDs, or kernel space blinking instead of using a dedicated
profinet application thread.

Signed-off-by: Joachim Wiberg <[email protected]>
@axkar
Copy link
Author

axkar commented Jan 15, 2024

Sorry, managed to set the wrong upstream for my PR -- this will be reported later via Addiva Elektronik

@axkar axkar closed this Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants