forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Extra stuff to be applied after VLAN patchset #11
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
Closed
Conversation
This file contains hidden or 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
This allows creation of virtual lan (VLAN) networks. VLAN support is only available for ethernet network technology. Fixes zephyrproject-rtos#3234 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Add tests to verify the bit manipulation functions in net/vlan.h file. Also check that we can check if given network interface has VLAN enabled or not. Verify also that received network packet contains correct VLAN tag. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Add commands to add, remove or get information about VLANs attached to network interfaces. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This application just enables VLAN tag for ethernet interface. Set CONFIG_SAMPLE_VLAN_TAG option to define the desired VLAN tag. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This enables / fixes VLAN support in mcux ethernet driver. The commit contains these changes for enabling VLAN: * Increase the size of the ethernet frame if VLAN is enabled. * Enable VLAN in chip if VLAN is enabled * If VLAN is enabled, then the iface in context struct should not be used directly as there can be multiple VLAN iface related to this physical device. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This enables VLAN support in gmac ethernet driver. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Support also virtual LAN (VLAN) with native_posix ethernet driver. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This enables VLAN support in slip tap ethernet driver. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
When sending packet add the VLAN priority to the ethernet header. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Currently the VLAN priority is the same as packet priority but if such conversion is needed, then this function can be used for such conversion. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Set the received network packet priority according to VLAN priority. Currently this mapping is 1:1 but can be changed if needed. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
The DEVICE_NAME_GET() macro should be used instead of fixed string when creating a device pointer in net_if_dev structure. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
If we have multiple network interfaces and we want to send a IPv4 network packet to certain destination, then this new helper can be used to figure out what network interface to use. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Instead of always using default interface, use the IPv4 target address to select the correct network interface when sending IPv4 ping request. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
If we have multiple network interface (like in VLAN), then we need to select the proper local interface based on destination address. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
As the l2_data section might contain different size context elements like "struct ethernet_context" for Ethernet and "void *" for Dummy L2, remove the __net_l2_start and __net_l2_end variables so that user does not accidentally try to use them as that would not work. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
In IPv4 we need to select the network interface, where the packet is to be sent, using the IPv4 address instead of default network interface. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
User is able to take a network interface down or bring it up. The command syntax is "net iface [up|down] [index]" Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Although very unlikely, make sure that if the net_recv_data() is called with NULL network interface or packet, we recover that and return error to the caller. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
jukkar
pushed a commit
that referenced
this pull request
Jun 22, 2020
This makes the gatt metrics also available for gatt write-without-rsp-cb so it now prints the rate of each write: uart:~$ gatt write-without-response-cb 1e ff 10 10 Write #1: 16 bytes (0 bps) Write #2: 32 bytes (3445948416 bps) Write #3: 48 bytes (2596929536 bps) Write #4: 64 bytes (6400 bps) Write #5: 80 bytes (8533 bps) Write #6: 96 bytes (10666 bps) Write #7: 112 bytes (8533 bps) Write #8: 128 bytes (9955 bps) Write #9: 144 bytes (11377 bps) Write #10: 160 bytes (7680 bps) Write #11: 176 bytes (8533 bps) Write #12: 192 bytes (9386 bps) Write Complete (err 0) Write #13: 208 bytes (8533 bps) Write #14: 224 bytes (9244 bps) Write #15: 240 bytes (9955 bps) Write #16: 256 bytes (8000 bps) Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
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.