-
Notifications
You must be signed in to change notification settings - Fork 163
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
Update Zynq Ultrascale port for V4.x and Clean up #1187
Merged
Merged
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
970911e
Update Zynq Ultrascale port for V4.x
StefanBalt e448ae8
Use MAC hash table for IPv4 LLMNR
StefanBalt 9dc75a3
Use XEmacPs_DMABLengthUpdate() API
StefanBalt 0dbda17
Remove Zynq7000 support from Ultrascale port
StefanBalt 1f71d69
Add x_emac_map to xilinx_ultrascale port
StefanBalt 2eaa162
Add Micrel PHY support to xilinx_ultrascale port
StefanBalt 3e63765
Fix Zynq7000 EMAC MAC address setup
StefanBalt 3e948ae
Merge branch 'main' into main
tony-josi-aws 60a7f1c
Uncrustify
StefanBalt 5c2e46d
Fix CI spelling errors
StefanBalt eada2d4
Merge branch 'main' into main
tony-josi-aws 0253c34
Merge branch 'main' into main
tony-josi-aws 5aa836b
Fix IPv4/6 preprocessor logic in Zynq/Ultrascale port
StefanBalt f2cf4b2
Add missing return in xilinx_ultrascale/NetworkInterface.c
StefanBalt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -256,40 +256,50 @@ static BaseType_t xZynqNetworkInterfaceInitialise( NetworkInterface_t * pxInterf | |
|
||
#if ( ipconfigUSE_LLMNR == 1 ) | ||
{ | ||
/* Also add LLMNR multicast MAC address. */ | ||
#if ( ipconfigUSE_IPv6 == 0 ) | ||
{ | ||
XEmacPs_SetHash( pxEMAC_PS, ( void * ) xLLMNR_MacAddress.ucBytes ); | ||
} | ||
#else | ||
{ | ||
NetworkEndPoint_t * pxEndPoint; | ||
NetworkInterface_t * pxInterface = pxMyInterfaces[ xEMACIndex ]; | ||
|
||
for( pxEndPoint = FreeRTOS_FirstEndPoint( pxInterface ); | ||
pxEndPoint != NULL; | ||
pxEndPoint = FreeRTOS_NextEndPoint( pxInterface, pxEndPoint ) ) | ||
{ | ||
if( pxEndPoint->bits.bIPv6 != pdFALSE_UNSIGNED ) | ||
{ | ||
unsigned char ucMACAddress[ 6 ] = { 0x33, 0x33, 0xff, 0, 0, 0 }; | ||
ucMACAddress[ 3 ] = pxEndPoint->ipv6_settings.xIPAddress.ucBytes[ 13 ]; | ||
ucMACAddress[ 4 ] = pxEndPoint->ipv6_settings.xIPAddress.ucBytes[ 14 ]; | ||
ucMACAddress[ 5 ] = pxEndPoint->ipv6_settings.xIPAddress.ucBytes[ 15 ]; | ||
XEmacPs_SetHash( pxEMAC_PS, ( void * ) ucMACAddress ); | ||
} | ||
} | ||
|
||
XEmacPs_SetHash( pxEMAC_PS, ( void * ) xLLMNR_MacAddressIPv6.ucBytes ); | ||
} | ||
#endif /* if ( ipconfigUSE_IPv6 == 0 ) */ | ||
} | ||
#endif /* ipconfigUSE_LLMNR == 1 */ | ||
|
||
#if ( ( ipconfigUSE_MDNS == 1 ) && ( ipconfigUSE_IPv6 != 0 ) ) | ||
XEmacPs_SetHash( pxEMAC_PS, ( void * ) xMDNS_MacAddress.ucBytes ); | ||
XEmacPs_SetHash( pxEMAC_PS, ( void * ) xMDNS_MacAddressIPv6.ucBytes ); | ||
#endif | ||
#if ( ipconfigUSE_MDNS == 1 ) | ||
{ | ||
#if ( ipconfigUSE_IPv6 == 0 ) | ||
{ | ||
XEmacPs_SetHash( pxEMAC_PS, ( void * ) xMDNS_MacAddress.ucBytes ); | ||
} | ||
#else | ||
{ | ||
XEmacPs_SetHash( pxEMAC_PS, ( void * ) xMDNS_MacAddressIPv6.ucBytes ); | ||
} | ||
#endif /* if ( ipconfigUSE_IPv6 == 0 ) */ | ||
} | ||
#endif /* ( ipconfigUSE_MDNS == 1 ) */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and also here:
MDNS can also be active on both IP-versions. |
||
|
||
#if ( ipconfigUSE_IPv6 != 0 ) | ||
{ | ||
/* set the solicited-node multicast address */ | ||
for( NetworkEndPoint_t * pxEndPointIter = FreeRTOS_FirstEndPoint( pxInterface ); | ||
pxEndPointIter != NULL; | ||
pxEndPointIter = FreeRTOS_NextEndPoint( pxInterface, pxEndPointIter ) ) | ||
{ | ||
if( pxEndPointIter->bits.bIPv6 != pdFALSE_UNSIGNED ) | ||
{ | ||
unsigned char ucSsolicitedNodeMAC[ 6 ] = { 0x33, 0x33, 0xff, 0, 0, 0 }; | ||
ucSsolicitedNodeMAC[ 3 ] = pxEndPointIter->ipv6_settings.xIPAddress.ucBytes[ 13 ]; | ||
ucSsolicitedNodeMAC[ 4 ] = pxEndPointIter->ipv6_settings.xIPAddress.ucBytes[ 14 ]; | ||
ucSsolicitedNodeMAC[ 5 ] = pxEndPointIter->ipv6_settings.xIPAddress.ucBytes[ 15 ]; | ||
XEmacPs_SetHash( pxEMAC_PS, ( void * ) ucSsolicitedNodeMAC ); | ||
} | ||
} | ||
} | ||
#endif /* if ( ipconfigUSE_IPv6 == 0 ) */ | ||
|
||
pxEndPoint = FreeRTOS_NextEndPoint( pxInterface, pxEndPoint ); | ||
|
||
|
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above is not correct, think of this:
It means that LLMNR can be enabled for IPv4 and on IPv6 at the same time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah of course IPv4 and v6 can be both enabled. Done