1. 20 2月, 2016 8 次提交
    • W
      ipv6: pass up EMSGSIZE msg for UDP socket in Ipv6 · e0d8c1b7
      Wei Wang 提交于
      In ipv4,  when  the machine receives a ICMP_FRAG_NEEDED message,  the
      connected UDP socket will get EMSGSIZE message on its next read from the
      socket.
      However, this is not the case for ipv6.
      This fix modifies the udp err handler in Ipv6 for ICMP6_PKT_TOOBIG to
      make it similar to ipv4 behavior. That is when the machine gets an
      ICMP6_PKT_TOOBIG message, the connected UDP socket will get EMSGSIZE
      message on its next read from the socket.
      Signed-off-by: NWei Wang <weiwan@google.com>
      Acked-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e0d8c1b7
    • P
      be2net: Fix pcie error recovery in case of NIC+RoCE adapters · 68f22793
      Padmanabh Ratnakar 提交于
      Interrupts registered by RoCE driver are not unregistered when
      msix interrupts are disabled during error recovery causing a
      crash. Detach the adapter instance from RoCE driver when error
      is detected to complete the cleanup. Attach the driver again after
      the adapter is recovered from error.
      Signed-off-by: NPadmanabh Ratnakar <padmanabh.ratnakar@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      68f22793
    • S
      net: macb: make magic-packet property generic · 7c4a1d0c
      Sergio Prado 提交于
      As requested by Rob Herring on patch
      https://patchwork.ozlabs.org/patch/580862/.
      
      This is a new property that it's still in net-next and has never been
      used in production, so we are not breaking anything with the
      incompatible binding change.
      Signed-off-by: NSergio Prado <sergio.prado@e-labworks.com>
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7c4a1d0c
    • D
      Merge branch 'bridge-mdb-attrs' · ef240c10
      David S. Miller 提交于
      Nikolay Aleksandrov says:
      
      ====================
      bridge: mdb: add support for extended attributes
      
      This small set allows to extend the per mdb entry exported attributes,
      before this set we had only a structure exported which couldn't be changed
      because we would've broken user-space, after this we extend the attribute
      that was used for the structure and add per-mdb entry attributes after the
      struct has been added (see patch 02 for more details). Note that the reason
      we can't simply add an attribute after MDBA_MDB_ENTRY_INFO is that current
      users (e.g. iproute2) walk over the attribute list directly without
      checking for the attribute type.
      Patch 01 is a simple change to reduce one indentation level in order to
      avoid over 80 char lines.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ef240c10
    • N
      bridge: mdb: add support for more attributes and export timer · 21257156
      Nikolay Aleksandrov 提交于
      Currently mdb entries are exported directly as a structure inside
      MDBA_MDB_ENTRY_INFO attribute, we can't really extend it without
      breaking user-space. In order to export new mdb fields, I've converted
      the MDBA_MDB_ENTRY_INFO into a nested attribute which starts like before
      with struct br_mdb_entry (without header, as it's casted directly in
      iproute2) and continues with MDBA_MDB_EATTR_ attributes. This way we
      keep compatibility with older users and can export new data.
      I've tested this with iproute2, both with and without support for the
      added attribute and it works fine.
      So basically we again have MDBA_MDB_ENTRY_INFO with struct br_mdb_entry
      inside but it may contain also some additional MDBA_MDB_EATTR_ attributes
      such as MDBA_MDB_EATTR_TIMER which can be parsed by user-space.
      
      So the new structure is:
      [MDBA_MDB] = {
           [MDBA_MDB_ENTRY] = {
               [MDBA_MDB_ENTRY_INFO]
               [MDBA_MDB_ENTRY_INFO] { <- Nested attribute
                   struct br_mdb_entry <- nla_put_nohdr()
                   [MDBA_MDB_ENTRY attributes] <- normal netlink attributes
               }
           }
      }
      Signed-off-by: NNikolay Aleksandrov <nikolay@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      21257156
    • N
      bridge: mdb: reduce the indentation level in br_mdb_fill_info · 76cc173d
      Nikolay Aleksandrov 提交于
      Switch the port check and skip if it's null, this allows us to reduce one
      indentation level.
      Signed-off-by: NNikolay Aleksandrov <nikolay@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      76cc173d
    • S
      bpf: grab rcu read lock for bpf_percpu_hash_update · 6bbd9a05
      Sasha Levin 提交于
      bpf_percpu_hash_update() expects rcu lock to be held and warns if it's not,
      which pointed out a missing rcu read lock.
      
      Fixes: 15a07b33 ("bpf: add lookup/update support for per-cpu hash and array maps")
      Signed-off-by: NSasha Levin <sasha.levin@oracle.com>
      Acked-by: NAlexei Starovoitov <ast@kernel.org>
      Acked-by: NDaniel Borkmann <daniel@iogearbox.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6bbd9a05
    • D
      Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · dfa2eb86
      David S. Miller 提交于
      Jeff Kirsher says:
      
      ====================
      40GbE Intel Wired LAN Driver Updates 2016-02-19
      
      This series contains updates to i40e/i40evf only.
      
      Alex Duyck splits up the descriptor count function from the function that
      stops the ring to have access to the descriptor count used for the data
      portion of the frame.  The rewrites the logic for how we determine if we
      can transmit the frame or if it needs to be linearized.  Place the checksum
      close to TSO since they have a lot in common and it can help to reduce the
      decision tree for how to handle the frame as the first check in TSO is to
      see if checksumming is offloaded.
      
      Carolyn adds functions to blink leds on devices using 10GBaseT PHY since
      MAC registers used in other designs do not work in this device configuration.
      Fixes an issue where a previously removed message has returned.
      
      Kevin increases the timeout when checking GLGEN_RSTAT_DEVSTATE bit since
      linking with particular PHY types, the amount of time it takes for the
      GLGEN_RSTAT_DEVSTATE to be set increases greatly.
      
      Neerav changes the receive queues to not wait to be disabled before DCB
      has been reconfigured, like transmit queues.
      
      Anjali adds new register definitions for programming the parser, flow
      director and RSS blocks in the hardware.
      
      Shannon adds the new opcodes and structures used for asking the firmware
      to update receive control registers that need extra care when being
      accessed while under heavy traffic.  Integrates the new AdminQ functions
      for safely accessing the receive control registers that may be affected
      by heavy small packet traffic.
      
      Mitch provides another colorful patch description on letting go of
      the stale local VSI pointer when the VF resets.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dfa2eb86
  2. 19 2月, 2016 32 次提交