-
Notifications
You must be signed in to change notification settings - Fork 203
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
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]>
Signed-off-by: Joachim Wiberg <[email protected]>
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]>
Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
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]>
Signed-off-by: Joachim Wiberg <[email protected]>
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]>
Signed-off-by: Joachim Wiberg <[email protected]>
Sorry, managed to set the wrong upstream for my PR -- this will be reported later via Addiva Elektronik |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.