Skip to content

[PATCH v6] example:ipsec_offload: Adding ipsec_offload example#12

Closed
NikhilA-Linaro wants to merge 0 commit into
OpenDataPlane:api-nextfrom
NikhilA-Linaro:api-next
Closed

[PATCH v6] example:ipsec_offload: Adding ipsec_offload example#12
NikhilA-Linaro wants to merge 0 commit into
OpenDataPlane:api-nextfrom
NikhilA-Linaro:api-next

Conversation

@NikhilA-Linaro
Copy link
Copy Markdown
Contributor

Signed-off-by: Nikhil Agarwal nikhil.agarwal@linaro.org

@NikhilA-Linaro NikhilA-Linaro force-pushed the api-next branch 3 times, most recently from a9d7a03 to 8714878 Compare April 11, 2017 06:38
@NikhilA-Linaro
Copy link
Copy Markdown
Contributor Author

How do we trigger CI build when pull request is updated? @muvarov

@muvarov
Copy link
Copy Markdown
Contributor

muvarov commented Apr 11, 2017

@NikhilA-Linaro should be done automatically

@NikhilA-Linaro
Copy link
Copy Markdown
Contributor Author

@muvarov but it is not triggered for this pull request

@muvarov
Copy link
Copy Markdown
Contributor

muvarov commented Apr 11, 2017

@NikhilA-Linaro yes, I can run it manually https://travis-ci.org/Linaro/odp/builds/220518411 but I do not see why it did not trigger or how to trigger it. There is fails with tap test which I can not reproduce locally but Bill can. So looks like Travis is happy this that log.

@muvarov
Copy link
Copy Markdown
Contributor

muvarov commented Apr 11, 2017

@NikhilA-Linaro looks like there was Mikes Travis hash and he remove it just in time when you updated pull request. I set up my hash and hope it will work in future.

@muvarov
Copy link
Copy Markdown
Contributor

muvarov commented Apr 18, 2017

@NikhilA-Linaro There was some billing issues with github for Linaro group and Travis and web hooks stopped to work. Now all has to work again. To make your pull request validated I think you have to re create it.

@lumag
Copy link
Copy Markdown

lumag commented Apr 19, 2017

@NikhilA-Linaro @muvarov won't just pushing an 'updated' version of the PR be sufficient to trigger CI build?

@muvarov
Copy link
Copy Markdown
Contributor

muvarov commented Apr 19, 2017

@NikhilA-Linaro it has to work.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Apr 21, 2017

Codecov Report

Merging #12 into api-next will increase coverage by 0.12%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           api-next       #12      +/-   ##
=============================================
+ Coverage    78.767%   78.887%   +0.12%     
=============================================
  Files           198       198              
  Lines         34018     34018              
=============================================
+ Hits          26795     26836      +41     
+ Misses         7223      7182      -41
Impacted Files Coverage Δ
test/common_plat/validation/api/timer/timer.c 79.233% <0%> (+2.236%) ⬆️
platform/linux-generic/odp_timer_wheel.c 86.904% <0%> (+8.095%) ⬆️

@NikhilA-Linaro
Copy link
Copy Markdown
Contributor Author

@lumag can you please review the same?

EXAMPLE_DBG("Error Event\n");
odp_event_free((odp_event_t)ev);
continue;
}
Copy link
Copy Markdown

@lumag lumag Apr 24, 2017

Choose a reason for hiding this comment

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

According to current API, there should be a call to odp_event_free() here.

My proposal removes need for it if odp_ipsec_result() returns 0.


if (odp_unlikely(odp_ipsec_result(&result, ev) < 0)) {
EXAMPLE_DBG("Error Event\n");
odp_event_free((odp_event_t)ev);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No need for type cast.

}

if (odp_unlikely(res.status.all_error)) {
odp_packet_free((odp_packet_t)ev);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

odp_packet_free(out_pkt). Event might be something other than a packet.


eth = (odph_ethhdr_t *)((uint8_t *)ip -
sizeof(odph_ethhdr_t));
eth->dst = out_port->next_hop_addr;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Here you should make sure that there is enough space before l3 offset. Also you should push that data in front of the packet.

}

/**
* IPsec pre argument processing intialization
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo: initialization

}

/**
* IPsec post argument processing intialization
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo: initialization

*/
#define DEFAULT_BUCKET_COUNT 1024

/**< Number of bits represnted by a string of hexadecimal characters */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo: represented

@lumag
Copy link
Copy Markdown

lumag commented May 22, 2017

@NikhilA-Linaro could you please do final changes accroding to the review? Let's finally get this merged.

@muvarov
Copy link
Copy Markdown
Contributor

muvarov commented Jun 16, 2017

Ping. Changes are needed according to comments.

@muvarov muvarov changed the title example:ipsec_offload: Adding ipsec_offload example [PATCH API-NEXT v1] example:ipsec_offload: Adding ipsec_offload example Jul 13, 2017
@muvarov muvarov self-requested a review August 4, 2017 17:03
@muvarov
Copy link
Copy Markdown
Contributor

muvarov commented Aug 4, 2017

Please update and rebase patches.

@Bill-Fischofer-Linaro
Copy link
Copy Markdown
Contributor

Ping to @NikhilA-Linaro. PR needs to be rebased before it can be merged.

@Bill-Fischofer-Linaro
Copy link
Copy Markdown
Contributor

@NikhilA-Linaro You were going to update this PR to rebase it as well as to illustrate how your proposed change to the definition of odp_ipsec_sa_disable() should work from an application standpoint. Please do so. Thanks.

@muvarov muvarov changed the title [PATCH API-NEXT v1] example:ipsec_offload: Adding ipsec_offload example [PATCH API-NEXT v2] example:ipsec_offload: Adding ipsec_offload example Oct 10, 2017
@muvarov muvarov changed the title [PATCH API-NEXT v2] example:ipsec_offload: Adding ipsec_offload example [PATCH API-NEXT v3] example:ipsec_offload: Adding ipsec_offload example Oct 10, 2017
@MatiasElo MatiasElo changed the title [PATCH API-NEXT v3] example:ipsec_offload: Adding ipsec_offload example [PATCH v4] example:ipsec_offload: Adding ipsec_offload example Oct 14, 2020
@MatiasElo MatiasElo changed the title [PATCH v4] example:ipsec_offload: Adding ipsec_offload example [PATCH v5] example:ipsec_offload: Adding ipsec_offload example Oct 15, 2020
@MatiasElo MatiasElo changed the title [PATCH v5] example:ipsec_offload: Adding ipsec_offload example [PATCH v6] example:ipsec_offload: Adding ipsec_offload example Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants