Skip to content

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

Merged
merged 1 commit into from
Dec 20, 2018
Merged

Conversation

tymoteuszblochmobica
Copy link
Contributor

Description

LWIP L3IP interface initial implementation

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[x] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

@tymoteuszblochmobica
Copy link
Contributor Author

@SeppoTakalo please review
@mikaleppanen please review
@kjbracey-arm please review
@mirelachirica please review
@AriParkkila please review

@0xc0170 0xc0170 requested a review from a team November 14, 2018 13:20
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 14, 2018

@tymoteuszblochmobica Please review Ci failures (travis)

@tymoteuszblochmobica tymoteuszblochmobica force-pushed the master branch 4 times, most recently from b933fc6 to d512867 Compare November 14, 2018 16:07
@SeppoTakalo
Copy link
Contributor

@0xc0170 Can be tested now.

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 16, 2018

travis-ci/astyle — Passed, 66 files (+8 files)

@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

Copy link
Contributor

@0xc0170 0xc0170 left a 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
Copy link
Contributor

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@tymoteuszblochmobica tymoteuszblochmobica force-pushed the master branch 7 times, most recently from 1f98fea to 00adc55 Compare November 20, 2018 10:20
@@ -331,6 +331,8 @@
#define LWIP_ETHERNET 0
#endif // MBED_CONF_LWIP_ETHERNET_ENABLED

#define LWIP_L3IP 1

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 21, 2018

@AnotherButler @melwee01 Please review docs for the new functionality

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 26, 2018

@AnotherButler @melwee01 Please review docs for the new functionality

Please review. We will start tests now.

@SeppoTakalo @tymoteuszblochmobica 5.11 target or ?

@SeppoTakalo
Copy link
Contributor

Not 5.11 target.. can enter the master now, but will be functional only when first L3 driver published.
So probably 5.12

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 13, 2018

I started CI to check if this fails as previously did, meanwhile waiting for reviewers to complete their reviews

@melwee01
Copy link
Contributor

I'll take a look.

Copy link
Contributor

@melwee01 melwee01 left a 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.

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 13, 2018

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

@cmonr
Copy link
Contributor

cmonr commented Dec 14, 2018

@melwee01 Doing alright?

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 14, 2018

@AnotherButler Please complete the docs review.

Copy link
Contributor

@AnotherButler AnotherButler left a 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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

cannot

* 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
Copy link
Contributor

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

/**
* Sends the packet over the link
*
* That can not be called from an interrupt context.
Copy link
Contributor

Choose a reason for hiding this comment

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

cannot

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
Copy link
Contributor

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

static L3IP &get_default_instance();

/**
* Callback to be register with l3ip interface and to be called for received packets
Copy link
Contributor

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


/**
* 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
Copy link
Contributor

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

@tymoteuszblochmobica tymoteuszblochmobica force-pushed the master branch 2 times, most recently from d3cb586 to 4f34dd1 Compare December 18, 2018 15:20
LWIP L3IP interface initial implementatioon
@cmonr
Copy link
Contributor

cmonr commented Dec 20, 2018

CI started

@mbed-ci
Copy link

mbed-ci commented Dec 20, 2018

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 8
Build artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants