-
Notifications
You must be signed in to change notification settings - Fork 3k
L3IP Interface Implementation #8739
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
Conversation
@SeppoTakalo please review |
@tymoteuszblochmobica Please review Ci failures (travis) |
b933fc6
to
d512867
Compare
@0xc0170 Can be tested now. |
@tymoteuszblochmobica Please fix these (I would recommend rebasing on top of the latest master, this would be an error in Travis) and we will run CI asap |
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.
Apply to all new files added here
@@ -0,0 +1,167 @@ | |||
/* mbed Microcontroller Library | |||
* Copyright (c) 2016 ARM Limited |
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.
Add SPDX identifier, also fix the year (2018)
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.
done
1f98fea
to
00adc55
Compare
features/lwipstack/lwipopts.h
Outdated
@@ -331,6 +331,8 @@ | |||
#define LWIP_ETHERNET 0 | |||
#endif // MBED_CONF_LWIP_ETHERNET_ENABLED | |||
|
|||
#define LWIP_L3IP 1 |
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.
I think this needs similar configuration option as ethernet to mbed_lib.json. And should be disabled by default.
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.
changed
ffd3604
to
df16b4a
Compare
@AnotherButler @melwee01 Please review docs for the new functionality |
df16b4a
to
703dea3
Compare
Please review. We will start tests now. @SeppoTakalo @tymoteuszblochmobica 5.11 target or ? |
Not 5.11 target.. can enter the master now, but will be functional only when first L3 driver published. |
703dea3
to
64e2f16
Compare
I started CI to check if this fails as previously did, meanwhile waiting for reviewers to complete their reviews |
I'll take a look. |
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.
Have looked at first header file, but will get to second one after lunch.
Ok waiting with CI. First run failed due to EOF exception, will need restart anyway |
@melwee01 Doing alright? |
@AnotherButler Please complete the docs review. |
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.
Please make my requested changes and then feel free to merge
|
||
/** Remove device from an IPV6 multicast group | ||
* | ||
* @param address An IPV6 multicast group address |
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.
Please do a search for "group address", and delete the extra space each time.
virtual bool power_up(); | ||
|
||
/** | ||
* Deinitializes the HW |
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.
Please spell out "hardware" each time for consistency.
* That can not be called from an interrupt context. | ||
* | ||
* @param buf Packet to be send | ||
* @return True if the packet was send successfully, False otherwise |
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.
was sent, false otherwise
* | ||
* That can not be called from an interrupt context. | ||
* | ||
* @param buf Packet to be send |
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.
to be sent
/** | ||
* Sends the packet over the link | ||
* | ||
* That can not be called from an interrupt context. |
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.
cannot
features/netsocket/L3IP.h
Outdated
* That can not be called from an interrupt context. | ||
* | ||
* @param buf Packet to be send | ||
* @return True if the packet was send successfully, False otherwise |
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.
was sent successfully, false otherwise
features/netsocket/L3IP.h
Outdated
/** | ||
* Sends the packet over the link | ||
* | ||
* That can not be called from an interrupt context. |
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.
cannot
features/netsocket/L3IP.h
Outdated
typedef mbed::Callback<void (net_stack_mem_buf_t *buf)> l3ip_link_input_cb_t; | ||
|
||
/** | ||
* Callback to be register with l3ip interface and to be called for link status changes |
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.
Callback to be registered with L3IP interface
features/netsocket/L3IP.h
Outdated
static L3IP &get_default_instance(); | ||
|
||
/** | ||
* Callback to be register with l3ip interface and to be called for received packets |
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.
Callback to be registered with L3IP
features/netsocket/L3IP.h
Outdated
|
||
/** | ||
* This interface should be used to abstract low level access to networking hardware | ||
* All operations receive a `void *` hw pointer which an l3ip device provides when |
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.
hardware pointer, which an L3IP device
d3cb586
to
4f34dd1
Compare
LWIP L3IP interface initial implementatioon
4f34dd1
to
fc88922
Compare
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
LWIP L3IP interface initial implementation
Pull request type