If we have NFT_PAYLOAD_CAN_OFFLOAD flag set, save the payload for later application. Signed-off-by: Boris Sukholitko <boris.sukholitko@xxxxxxxxxxxx> --- net/netfilter/nft_payload.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/netfilter/nft_payload.c b/net/netfilter/nft_payload.c index a633f851316e..b8cb33316506 100644 --- a/net/netfilter/nft_payload.c +++ b/net/netfilter/nft_payload.c @@ -867,6 +867,10 @@ static void nft_payload_set_eval(const struct nft_expr *expr, if (nft_payload_mangle(priv, pkt, src)) goto err; + if ((priv->csum_flags & NFT_PAYLOAD_CAN_OFFLOAD) && + nf_flow_offload_save_payload(pkt->skb, priv, src)) + goto err; + return; err: regs->verdict.code = NFT_BREAK; -- 2.32.0
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature