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

Ipv4 cleanup #9088

Merged
merged 7 commits into from
Jul 24, 2018
Merged

Ipv4 cleanup #9088

merged 7 commits into from
Jul 24, 2018

Conversation

tbursztyka
Copy link
Collaborator

Fixing issue #8720

Tomasz Bursztyka added 3 commits July 24, 2018 09:32
No need to initialize it to 0 as it will be set through given parameter.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Reduces the logic as well as the ipv4 header checksum needs to be
computed either way.

Fixes zephyrproject-rtos#8720

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
net_ipv4_finalize is always successful.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
@tbursztyka tbursztyka requested a review from jukkar July 24, 2018 09:25
@tbursztyka tbursztyka requested a review from pfalcon as a code owner July 24, 2018 09:25
@codecov-io
Copy link

codecov-io commented Jul 24, 2018

Codecov Report

Merging #9088 into master will decrease coverage by 0.03%.
The diff coverage is 70.58%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9088      +/-   ##
==========================================
- Coverage   52.46%   52.42%   -0.04%     
==========================================
  Files         199      199              
  Lines       25063    25034      -29     
  Branches     5234     5236       +2     
==========================================
- Hits        13150    13125      -25     
+ Misses       9794     9789       -5     
- Partials     2119     2120       +1
Impacted Files Coverage Δ
subsys/net/ip/tcp.c 58.96% <100%> (+0.06%) ⬆️
subsys/net/ip/net_context.c 67.21% <100%> (ø) ⬆️
subsys/net/ip/ipv4.c 71.64% <63.63%> (-2.99%) ⬇️
subsys/net/ip/icmpv4.c 35.03% <71.42%> (-6.18%) ⬇️
include/net/net_pkt.h 83.07% <0%> (-1.54%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c509579...d0952ba. Read the comment docs.

Tomasz Bursztyka added 4 commits July 24, 2018 15:01
Avoiding to re-create the IPv4 header into ICMPv4 code directly.

Fixes zephyrproject-rtos#8720

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Through net_icmpv4_set_chksum()

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
net if core code will do it.

Fixes zephyrproject-rtos#8720

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Static ones with that prefix, exported ones with net_icmpv4_ prefix.

Fixes zephyrproject-rtos#8720

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Copy link
Member

@jukkar jukkar left a comment

Choose a reason for hiding this comment

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

LGTM

@jukkar jukkar merged commit 9bb56cc into zephyrproject-rtos:master Jul 24, 2018
@tbursztyka tbursztyka deleted the ipv4_rework branch September 12, 2018 11:04
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.

3 participants