Lines Matching refs:mangle_action

1415 static void nfp_nft_ct_translate_mangle_action(struct flow_action_entry *mangle_action)  in nfp_nft_ct_translate_mangle_action()  argument
1417 if (mangle_action->id != FLOW_ACTION_MANGLE) in nfp_nft_ct_translate_mangle_action()
1420 switch (mangle_action->mangle.htype) { in nfp_nft_ct_translate_mangle_action()
1423 mangle_action->mangle.val = (__force u32)cpu_to_be32(mangle_action->mangle.val); in nfp_nft_ct_translate_mangle_action()
1424 mangle_action->mangle.mask = (__force u32)cpu_to_be32(mangle_action->mangle.mask); in nfp_nft_ct_translate_mangle_action()
1434 if (mangle_action->mangle.offset == offsetof(struct tcphdr, source)) { in nfp_nft_ct_translate_mangle_action()
1435 mangle_action->mangle.val = in nfp_nft_ct_translate_mangle_action()
1436 (__force u32)cpu_to_be32(mangle_action->mangle.val << 16); in nfp_nft_ct_translate_mangle_action()
1441 mangle_action->mangle.mask = in nfp_nft_ct_translate_mangle_action()
1442 (__force u32)cpu_to_be32(mangle_action->mangle.mask << 16 | 0xFFFF); in nfp_nft_ct_translate_mangle_action()
1444 if (mangle_action->mangle.offset == offsetof(struct tcphdr, dest)) { in nfp_nft_ct_translate_mangle_action()
1445 mangle_action->mangle.offset = 0; in nfp_nft_ct_translate_mangle_action()
1446 mangle_action->mangle.val = in nfp_nft_ct_translate_mangle_action()
1447 (__force u32)cpu_to_be32(mangle_action->mangle.val); in nfp_nft_ct_translate_mangle_action()
1448 mangle_action->mangle.mask = in nfp_nft_ct_translate_mangle_action()
1449 (__force u32)cpu_to_be32(mangle_action->mangle.mask); in nfp_nft_ct_translate_mangle_action()