1. 27 Sep, 2017 38 commits
  2. 26 Sep, 2017 2 commits
    • David S. Miller's avatar
      Merge branch 'bpf-metadata-direct-access' · 390e96ec
      David S. Miller authored
      Daniel Borkmann says:
      
      ====================
      BPF metadata for direct access
      
      This work enables generic transfer of metadata from XDP into skb,
      meaning the packet has a flexible and programmable room for meta
      data, which can later be used by BPF to set various skb members
      when passing up the stack. For details, please see second patch.
      Support has been implemented and tested with two drivers, and
      should be straight forward to add to other drivers as well which
      properly support head adjustment already.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      390e96ec
    • Daniel Borkmann's avatar
      bpf, ixgbe: add meta data support · 366a88fe
      Daniel Borkmann authored
      Implement support for transferring XDP meta data into skb for
      ixgbe driver; before calling into the program, xdp.data_meta points
      to xdp.data, where on program return with pass verdict, we call
      into skb_metadata_set().
      
      We implement this for the default ixgbe_build_skb() variant. For the
      ixgbe_construct_skb() that is used when legacy-rx buffer mananagement
      mode is turned on via ethtool, I found that XDP gets 0 headroom, so
      neither xdp_adjust_head() nor xdp_adjust_meta() can be used with this.
      Just add a comment with explanation for this operating mode.
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
      Acked-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      366a88fe