1. 06 12月, 2017 1 次提交
  2. 05 12月, 2017 4 次提交
  3. 03 12月, 2017 1 次提交
  4. 08 11月, 2017 1 次提交
  5. 05 11月, 2017 2 次提交
    • J
      net: bpf: rename ndo_xdp to ndo_bpf · f4e63525
      Jakub Kicinski 提交于
      ndo_xdp is a control path callback for setting up XDP in the
      driver.  We can reuse it for other forms of communication
      between the eBPF stack and the drivers.  Rename the callback
      and associated structures and definitions.
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Reviewed-by: NSimon Horman <simon.horman@netronome.com>
      Reviewed-by: NQuentin Monnet <quentin.monnet@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f4e63525
    • J
      rtnetlink: use netnsid to query interface · 79e1ad14
      Jiri Benc 提交于
      Currently, when an application gets netnsid from the kernel (for example as
      the result of RTM_GETLINK call on one end of the veth pair), it's not much
      useful. There's no reliable way to get to the netns fd from the netnsid, nor
      does any kernel API accept netnsid.
      
      Extend the RTM_GETLINK call to also accept netnsid. It will operate on the
      netns with the given netnsid in such case. Of course, the calling process
      needs to have enough capabilities in the target name space; for now, require
      CAP_NET_ADMIN. This can be relaxed in the future.
      
      To signal to the calling process that the kernel understood the new
      IFLA_IF_NETNSID attribute in the query, it will include it in the response.
      This is needed to detect older kernels, as they will just ignore
      IFLA_IF_NETNSID and query in the current name space.
      
      This patch implemetns IFLA_IF_NETNSID only for get and dump. For set
      operations, this can be extended later.
      Signed-off-by: NJiri Benc <jbenc@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      79e1ad14
  6. 25 10月, 2017 2 次提交
  7. 23 10月, 2017 1 次提交
  8. 17 10月, 2017 9 次提交
  9. 11 10月, 2017 1 次提交
  10. 05 10月, 2017 4 次提交
  11. 04 10月, 2017 2 次提交
  12. 29 9月, 2017 4 次提交
  13. 14 8月, 2017 1 次提交
    • J
      rtnelink: Move link dump consistency check out of the loop · d0225784
      Jakub Sitnicki 提交于
      Calls to rtnl_dump_ifinfo() are protected by RTNL lock. So are the
      {list,unlist}_netdevice() calls where we bump the net->dev_base_seq
      number.
      
      For this reason net->dev_base_seq can't change under out feet while
      we're looping over links in rtnl_dump_ifinfo(). So move the check for
      net->dev_base_seq change (since the last time we were called) out of the
      loop.
      
      This way we avoid giving a wrong impression that there are concurrent
      updates to the link list going on while we're iterating over them.
      Signed-off-by: NJakub Sitnicki <jkbs@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d0225784
  14. 11 8月, 2017 5 次提交
  15. 10 8月, 2017 2 次提交