Re: [PATCH net-next v3 2/4] net/sched: Introduce action hash

2020-07-16 Thread Ariel Levkovich
On 7/15/20 2:49 PM, Daniel Borkmann wrote: On 7/15/20 3:30 PM, Ariel Levkovich wrote: On 7/15/20 2:12 AM, Cong Wang wrote: On Mon, Jul 13, 2020 at 8:17 PM Ariel Levkovich wrote: On 7/13/20 6:04 PM, Cong Wang wrote: On Sat, Jul 11, 2020 at 2:28 PM Ariel Levkovich wrote: Allow user to set a

Re: [PATCH net-next v3 2/4] net/sched: Introduce action hash

2020-07-15 Thread Daniel Borkmann
On 7/15/20 3:30 PM, Ariel Levkovich wrote: On 7/15/20 2:12 AM, Cong Wang wrote: On Mon, Jul 13, 2020 at 8:17 PM Ariel Levkovich wrote: On 7/13/20 6:04 PM, Cong Wang wrote: On Sat, Jul 11, 2020 at 2:28 PM Ariel Levkovich wrote: Allow user to set a packet's hash value using a bpf program. Th

Re: [PATCH net-next v3 2/4] net/sched: Introduce action hash

2020-07-15 Thread Ariel Levkovich
On 7/15/20 2:12 AM, Cong Wang wrote: On Mon, Jul 13, 2020 at 8:17 PM Ariel Levkovich wrote: On 7/13/20 6:04 PM, Cong Wang wrote: On Sat, Jul 11, 2020 at 2:28 PM Ariel Levkovich wrote: Allow user to set a packet's hash value using a bpf program. The user provided BPF program is required to c

Re: [PATCH net-next v3 2/4] net/sched: Introduce action hash

2020-07-14 Thread Cong Wang
On Mon, Jul 13, 2020 at 8:17 PM Ariel Levkovich wrote: > > On 7/13/20 6:04 PM, Cong Wang wrote: > > On Sat, Jul 11, 2020 at 2:28 PM Ariel Levkovich wrote: > >> Allow user to set a packet's hash value using a bpf program. > >> > >> The user provided BPF program is required to compute and return >

Re: [PATCH net-next v3 2/4] net/sched: Introduce action hash

2020-07-13 Thread Ariel Levkovich
On 7/13/20 6:04 PM, Cong Wang wrote: On Sat, Jul 11, 2020 at 2:28 PM Ariel Levkovich wrote: Allow user to set a packet's hash value using a bpf program. The user provided BPF program is required to compute and return a hash value for the packet which is then stored in skb->hash. Can be done b

Re: [PATCH net-next v3 2/4] net/sched: Introduce action hash

2020-07-13 Thread Cong Wang
On Sat, Jul 11, 2020 at 2:28 PM Ariel Levkovich wrote: > > Allow user to set a packet's hash value using a bpf program. > > The user provided BPF program is required to compute and return > a hash value for the packet which is then stored in skb->hash. Can be done by act_bpf, right? > > Using th

[PATCH net-next v3 2/4] net/sched: Introduce action hash

2020-07-11 Thread Ariel Levkovich
Allow user to set a packet's hash value using a bpf program. The user provided BPF program is required to compute and return a hash value for the packet which is then stored in skb->hash. Using this action to set the skb->hash is an alternative to setting it with act_skbedit and can be useful for