1. 02 9月, 2015 10 次提交
  2. 01 9月, 2015 26 次提交
  3. 31 8月, 2015 4 次提交
    • D
      ipv4: Fix 32-bit build. · 80ec1927
      David S. Miller 提交于
         net/ipv4/af_inet.c: In function 'snmp_get_cpu_field64':
      >> net/ipv4/af_inet.c:1486:26: error: 'offt' undeclared (first use in this function)
            v = *(((u64 *)bhptr) + offt);
                                   ^
         net/ipv4/af_inet.c:1486:26: note: each undeclared identifier is reported only once for each function it appears in
         net/ipv4/af_inet.c: In function 'snmp_fold_field64':
      >> net/ipv4/af_inet.c:1499:39: error: 'offct' undeclared (first use in this function)
            res += snmp_get_cpu_field(mib, cpu, offct, syncp_offset);
                                                ^
      >> net/ipv4/af_inet.c:1499:10: error: too many arguments to function 'snmp_get_cpu_field'
            res += snmp_get_cpu_field(mib, cpu, offct, syncp_offset);
                   ^
         net/ipv4/af_inet.c:1455:5: note: declared here
          u64 snmp_get_cpu_field(void __percpu *mib, int cpu, int offt)
              ^
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      80ec1927
    • K
      netlink: rx mmap: fix POLLIN condition · 0ef70770
      Ken-ichirou MATSUZAWA 提交于
      Poll() returns immediately after setting the kernel current frame
      (ring->head) to SKIP from user space even though there is no new
      frame. And in a case of all frames is VALID, user space program
      unintensionally sets (only) kernel current frame to UNUSED, then
      calls poll(), it will not return immediately even though there are
      VALID frames.
      
      To avoid situations like above, I think we need to scan all frames
      to find VALID frames at poll() like netlink_alloc_skb(),
      netlink_forward_ring() finding an UNUSED frame at skb allocation.
      Signed-off-by: NKen-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0ef70770
    • D
      Merge branch 'thunderx-features-fixes' · 793768f5
      David S. Miller 提交于
      Aleksey Makarov says:
      
      ====================
      net: thunderx: New features and fixes
      
      v2:
        - The unused affinity_mask field of the structure cmp_queue
        has been deleted. (thanks to David Miller)
        - The unneeded initializers have been dropped. (thanks to Alexey Klimov)
        - The commit message "net: thunderx: Rework interrupt handling"
        has been fixed. (thanks to Alexey Klimov)
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      793768f5
    • S
      net: thunderx: Support for internal loopback mode · d77a2384
      Sunil Goutham 提交于
      Support for setting VF's corresponding BGX LMAC in internal
      loopback mode. This mode can be used for verifying basic HW
      functionality such as packet I/O, RX checksum validation,
      CQ/RBDR interrupts, stats e.t.c. Useful when DUT has no external
      network connectivity.
      
      'loopback' mode can be enabled or disabled via ethtool.
      
      Note: This feature is not supported when no of VFs enabled are
      morethan no of physical interfaces i.e active BGX LMACs
      Signed-off-by: NSunil Goutham <sgoutham@cavium.com>
      Signed-off-by: NAleksey Makarov <aleksey.makarov@caviumnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d77a2384