Lines Matching refs:mangle
69 void *dest = eth + act->mangle.offset; in mtk_flow_offload_mangle_eth()
70 const void *src = &act->mangle.val; in mtk_flow_offload_mangle_eth()
72 if (act->mangle.offset > 8) in mtk_flow_offload_mangle_eth()
75 if (act->mangle.mask == 0xffff) { in mtk_flow_offload_mangle_eth()
80 memcpy(dest, src, act->mangle.mask ? 2 : 4); in mtk_flow_offload_mangle_eth()
88 u32 val = ntohl(act->mangle.val); in mtk_flow_mangle_ports()
90 switch (act->mangle.offset) { in mtk_flow_mangle_ports()
92 if (act->mangle.mask == ~htonl(0xffff)) in mtk_flow_mangle_ports()
113 switch (act->mangle.offset) { in mtk_flow_mangle_ipv4()
124 memcpy(dest, &act->mangle.val, sizeof(u32)); in mtk_flow_mangle_ipv4()
221 if (act->mangle.htype == FLOW_ACT_MANGLE_HDR_TYPE_ETH) in mtk_flow_offload_replace()
295 switch (act->mangle.htype) { in mtk_flow_offload_replace()