mbox series

[bpf-next,0/2] IPv6 sk-lookup fixes

Message ID 20181015172746.6475-1-joe@wand.net.nz
Headers show
Series IPv6 sk-lookup fixes | expand

Message

Joe Stringer Oct. 15, 2018, 5:27 p.m. UTC
This series includes a couple of fixups for the IPv6 socket lookup
helper, to make the API more consistent (always supply all arguments in
network byte-order) and to allow its use when IPv6 is compiled as a
module.

Joe Stringer (2):
  bpf: Allow sk_lookup with IPv6 module
  bpf: Fix IPv6 dport byte-order in bpf_sk_lookup

 include/net/addrconf.h |  5 +++++
 net/core/filter.c      | 15 +++++++++------
 net/ipv6/af_inet6.c    |  1 +
 3 files changed, 15 insertions(+), 6 deletions(-)

Comments

Daniel Borkmann Oct. 15, 2018, 8:39 p.m. UTC | #1
On 10/15/2018 07:27 PM, Joe Stringer wrote:
> This series includes a couple of fixups for the IPv6 socket lookup
> helper, to make the API more consistent (always supply all arguments in
> network byte-order) and to allow its use when IPv6 is compiled as a
> module.
> 
> Joe Stringer (2):
>   bpf: Allow sk_lookup with IPv6 module
>   bpf: Fix IPv6 dport byte-order in bpf_sk_lookup
> 
>  include/net/addrconf.h |  5 +++++
>  net/core/filter.c      | 15 +++++++++------
>  net/ipv6/af_inet6.c    |  1 +
>  3 files changed, 15 insertions(+), 6 deletions(-)
> 

LGTM, thanks for following up on this. Series:

Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Alexei Starovoitov Oct. 15, 2018, 11:10 p.m. UTC | #2
On Mon, Oct 15, 2018 at 10:27:44AM -0700, Joe Stringer wrote:
> This series includes a couple of fixups for the IPv6 socket lookup
> helper, to make the API more consistent (always supply all arguments in
> network byte-order) and to allow its use when IPv6 is compiled as a
> module.

Applied, Thanks