1. 30 9月, 2015 4 次提交
  2. 25 9月, 2015 7 次提交
    • P
      Merge tag 'ipvs2-for-v4.4' of https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs-next · c3456026
      Pablo Neira Ayuso 提交于
      Simon Horman says:
      
      ====================
      Second Round of IPVS Updates for v4.4
      
      please consider these bug fixes and extensive clean-ups of IPVS
      from Eric Biederman for v4.4.
      
      His excellent description of the changes, which is part of an even larger
      set of clean-up work, is as follows:
      
        I am gradually working my way through the netfilter stack passing struct
        down into the netfilter hooks and from the netfilter hooks and from there
        down into the functions that actually care.  This removes the need for
        netfilter functions to guess how to figure out how to compute which
        network namespace they are in and instead provides a simple and reliable
        method to do so.
      
        The cleanups stand on their own but this is part of a larger effort to
        have routes with an output device that is not in the current network
        namespace.
      
        The IPVS code has been a bit more of a challenge than most.  Just passing
        struct net through to where it is needed did not feel clean to me.  The
        practical issue is that the ipvs code in most places actually wants
        struct netns_ipvs and not struct net.
      
        So as part of this process I have turned the relationship between struct
        net and the structs netns_ipvs, ip_vs_conn_param, ip_vs_conn, and
        ip_vs_service inside out.  I have modified the ipvs functions to take a
        struct netns_ipvs not a struct net.  The net is code with fewer
        conversions from one type of structure to another.  I did wind up adding
        a struct netns_ipvs parameter to quite a few functions that did not have
        it before so I could pass the structure down from the netfilter hooks to
        where it is actually needed to avoid guessing.
      
        I have broken up the work in a bunch of small patches so there is at
        least a chance and reviewing that each step I took is correct.  The
        series compiles at each step so bisecting it should not be a problem if
        something weird comes up.
      
        The first two changes in this series are actually bug fixes.  The first
        is a compile fix for a bug in sctp that came in, in the last round of
        ipvs changes merged into nf-next.  The second fixes an older bug where in
        pathological circumstances the wrong network namespace could be used when
        a proc file is written to.
      
        The rest of the patchset is a bunch of boring changes getting pushing
        struct netns_ipvs (and by extension ipvs->net) where it needs to be.
        Either by replacing struct net pointers or adding new struct netns_ipvs
        pointers.  With a handful of other minor cleanups (like removing
        skb_net).
      
      I have decided include the bug fixes in this pull request. Patch one
      relates to a bug that was added to nf-next recently and is thus not
      applicable to nf . Patch two could arguably be promoted to a fix for v4.3
      and stable though it does not appear to be severe enough to warrant that
      course of action; let me know if you would like me to reconsider.
      ====================
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      c3456026
    • D
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · aee2f545
      David S. Miller 提交于
      Jeff Kirsher says:
      
      ====================
      Intel Wired LAN Driver Updates 2015-09-23
      
      This series contains updates to ixgbe only.
      
      Mark provides all the changes in this series, first clears the destination
      location for I2C data initially so that the received data will not be
      corrupted by previous attempts.  Then reduced the pauses/delays in the
      PHY detection when no SFP is present by reducing the number of retires,
      once an SFP is detected, the "normal" number of retries in PHY detection
      will be used.  Added support for X55EM_x SFP+ dual-speed, and fixed 1G and
      10G link stability for X550EM_x by configuring the CS4227 correctly by
      moving code to ixgbe_setup_mac_link_sfp_x550em().  Added functionality to
      reset CS4227, since on some platforms the CS4227 does not initialize
      properly.  Next reduces the SFP polling rate, due to when an SFP is not
      present, the I2C timeouts that result are very costly.  So prevent the
      SFP polling from being done more than once every two seconds.  Added
      support for I2C bus MUX.  Fixed the setting of RDRXCTL register which
      should fall through X540 and 82599, not 82598.  In addition, added small
      packet padding support in X550 by setting RDRXCTL.PSP when the driver is
      in SRIOV mode.  Fixed a known hardware issue where the PCI transactions
      pending bit sticks high when there are pending transactions, so
      workaround the issue by wait and then continue with our reset flow.
      Added a new device ID for X550EM device with SFPs.  Provided a fix with
      the DCA setup, which was suggested by Alex Duyck <aduyck@mirantis.com>,
      by making it so that we always set the relaxed ordering bits related to
      the DCA registers even if DCA is not enbaled.  Then moves the
      configuration out of the ixgbe_down() and into ixgbe_configure() before
      enabling the transmit and receive rings.  This ensures that DCA is
      configured correctly before starting the processing of packets.
      Fixed VM-to-VM loopback mode which requires that FCRTH be set, but
      the datasheets did not specify what the value should be.  It has now
      been determined that the correct value should be RXPBSIZE - (24*1024).
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      aee2f545
    • E
      tcp: factorize sk_txhash init · d8ed6250
      Eric Dumazet 提交于
      Neal suggested to move sk_txhash init into tcp_create_openreq_child(),
      called both from IPv4 and IPv6.
      
      This opportunity was missed in commit 58d607d3 ("tcp: provide
      skb->hash to synack packets")
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NNeal Cardwell <ncardwell@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d8ed6250
    • T
      net: axinet: Use of_property_read_u32 instead of open-coding it · 729bf329
      Tobias Klauser 提交于
      Use of_property_read_u32 instead of of_get_property with return value
      checks and endianness conversion.
      Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
      Reviewed-by: NSören Brinkmann <soren.brinkmann@xilinx.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      729bf329
    • T
      net: ll_temac: Use of_property_read_u32 instead of open-coding it · e734a42f
      Tobias Klauser 提交于
      Use of_property_read_u32 to read the "clock-frequency" property instead
      of using of_get_property with return value checks.
      Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
      Reviewed-by: NSören Brinkmann <soren.brinkmann@xilinx.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e734a42f
    • J
      ipv6: remove unused neigh parameter from ndisc functions · 38cf595b
      Jiri Benc 提交于
      Since commit 12fd84f4 ("ipv6: Remove unused neigh argument for
      icmp6_dst_alloc() and its callers."), the neigh parameter of ndisc_send_na
      and ndisc_send_ns is unused.
      
      CC: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Signed-off-by: NJiri Benc <jbenc@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      38cf595b
    • J
      genetlink: simplify genl_notify · 92c14d9b
      Jiri Benc 提交于
      The genl_notify function has too many arguments for no real reason - all
      callers use genl_info to get them anyway. Just pass the genl_info down to
      genl_notify.
      Signed-off-by: NJiri Benc <jbenc@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      92c14d9b
  3. 24 9月, 2015 29 次提交