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

Multi port updated #318

Merged
merged 4 commits into from
Feb 4, 2021
Merged

Multi port updated #318

merged 4 commits into from
Feb 4, 2021

Conversation

olbjo
Copy link
Collaborator

@olbjo olbjo commented Jan 27, 2021

Misc updates to pass Automated RT test suite on Raspberry Pi with an usb/ethernet dongle as a second port.

Includes / rebased on #319

@olbjo olbjo requested a review from pyhys January 27, 2021 16:47
@olbjo olbjo force-pushed the multi_port_updated branch from cb4e194 to 0b2fcea Compare January 27, 2021 16:59
Copy link
Collaborator

@pyhys pyhys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!
My only comment is that maybe we should change the GSDML filename (date part) when modifying the file.

@olbjo olbjo force-pushed the multi_port_updated branch 2 times, most recently from ef5da6b to cb1f00a Compare February 2, 2021 11:09
- Handle lldp name of station mode
- Default name of station mode set to standard
- In lldp replace zero-len station name with mac
- Update tests
@olbjo olbjo force-pushed the multi_port_updated branch from cb1f00a to 3b09d41 Compare February 4, 2021 10:56
@@ -96,11 +96,16 @@ Run ``ifconfig`` to check that the bridge is up and its network interfaces are a
Configuration of p-net stack and sample application
---------------------------------------------------------
To run p-net and the sample application with multiple ports a couple
of things need to be done:
of things need to be done. Note that the settings described in the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we explain ccmake then you should maybe also mention that options can be set on the command line when configuring (-DPNET_MAX_PORTS=2), which is probably how you would set it in a build script or similar.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -56,15 +56,25 @@
</InterfaceSubmoduleItem>
<PortSubmoduleItem ID="IDS_P1" SubmoduleIdentNumber="0x00008001" SubslotNumber="32769" TextId="IDT_NAME_PS1" MaxPortRxDelay="350" MaxPortTxDelay="160">
<MAUTypeList>
<!--
MAUTypeItems shall match the actual network interfaces of the device.
Current list is works for Raspberry Pi, Linksys usb/ethernet dongle and xmc sample targets
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

list works?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -101,13 +101,13 @@ const pnet_port_cfg_t * pf_port_get_config (pnet_t * net, int loc_port_num)
uint16_t pf_port_loc_port_num_to_dap_subslot (int loc_port_num)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These functions should have tests (or regression tests for the problem being fixed).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests added.
Done

@olbjo olbjo force-pushed the multi_port_updated branch from 3b09d41 to ee307d4 Compare February 4, 2021 14:12
@olbjo olbjo force-pushed the multi_port_updated branch from ee307d4 to c7915fc Compare February 4, 2021 14:42
@hefloryd hefloryd merged commit b276cf7 into rtlabs-com:master Feb 4, 2021
@olbjo olbjo deleted the multi_port_updated branch May 19, 2021 06:33
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.

3 participants