<div dir="ltr"><div>Acked-by: Luke Nowakowski-Krijger <<a href="mailto:luke.nowakowskikrijger@canonical.com">luke.nowakowskikrijger@canonical.com</a>></div><div><br></div><div>Thanks,<br></div><div>- Luke</div><div><br></div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 10, 2022 at 4:58 PM Bodong Wang <<a href="mailto:bodong@nvidia.com">bodong@nvidia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The inner_ipproto saves the inner IP protocol of the plain<br>
text packet. This allows vendor's IPsec feature making offload<br>
decision at skb's features_check and configuring hardware at<br>
ndo_start_xmit.<br>
<br>
For example, ConnectX6-DX IPsec device needs the plaintext's<br>
IP protocol to support partial checksum offload on<br>
VXLAN/GENEVE packet over IPsec transport mode tunnel.<br>
<br>
As this data unrelated to the specific driver (the inner ip protocol of the<br>
plain text) then it makes sense to provide it in the xfrm stack layer to<br>
avoid code duplication in various drivers and do it on the fly in the xfrm<br>
layer instead of reparse the packet at the driver layer. This is handled by<br>
patch 1.<br>
<br>
However, patch 1 did not handle the case where IPsec is used in tunnel mode.<br>
Patch 2 fixed the bug.<br>
<br>
V0->V1:<br>
Fix cherry-pick commit SHA for both patches<br>
<br>
Huy Nguyen (1):<br>
net/xfrm: Add inner_ipproto into sec_path<br>
<br>
Raed Salem (1):<br>
net/xfrm: IPsec tunnel mode fix inner_ipproto setting in sec_path<br>
<br>
include/net/xfrm.h | 1 +<br>
net/xfrm/xfrm_output.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++++-<br>
2 files changed, 61 insertions(+), 1 deletion(-)<br>
<br>
-- <br>
1.8.3.1<br>
<br>
<br>
-- <br>
kernel-team mailing list<br>
<a href="mailto:kernel-team@lists.ubuntu.com" target="_blank">kernel-team@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/kernel-team" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/kernel-team</a><br>
</blockquote></div></div></div>