Hi all, Today's linux-next merge of the net-next tree got a conflict in net/core/filter.c between commit 0dcceabb0c1b ("net: filter: fix SKF_AD_PKTTYPE extension on big-endian") from the net tree and commit 9739eef13c92 ("net: filter: make BPF conversion more readable") from the net-next tree. I fixed it up (not well, but see below) and can carry the fix as necessary (no action is required). -- Cheers, Stephen Rothwell sfr@xxxxxxxxxxxxxxxx diff --cc net/core/filter.c index ab3c74e49f07,9de0c25323b4..000000000000 --- a/net/core/filter.c +++ b/net/core/filter.c @@@ -685,17 -684,7 +688,14 @@@ static bool convert_bpf_extensions(stru if (insn->off < 0) return false; insn++; - - insn->code = BPF_ALU | BPF_AND | BPF_K; - insn->a_reg = A_REG; - insn->imm = PKT_TYPE_MAX; + *insn = BPF_ALU32_IMM(BPF_AND, BPF_REG_A, PKT_TYPE_MAX); +#ifdef __BIG_ENDIAN_BITFIELD + insn++; + + insn->code = BPF_ALU | BPF_RSH | BPF_K; + insn->a_reg = A_REG; + insn->imm = 5; +#endif break; case SKF_AD_OFF + SKF_AD_IFINDEX:
Attachment:
signature.asc
Description: PGP signature