On 08/17/2017 07:42 AM, Alexei Starovoitov wrote:
On 8/15/17 10:33 PM, John Fastabend wrote:
+static int sk_skb_prologue(struct bpf_insn *insn_buf, bool direct_write,
+ const struct bpf_prog *prog)
+{
+ struct bpf_insn *insn = insn_buf;
+
+ if (!direct_write)
+ return 0;
+
+ /* if (!skb->cloned)
+ * goto start;
+ *
+ * (Fast-path, otherwise approximation that we might be
+ * a clone, do the rest in helper.)
+ */
iirc we're doing something similar in other prologue generator?
can be consolidated?
Jup, with tc. I'll fix this one so the two can be consolidated.
Cheers,
Daniel