Skip to content

Commits

Permalink
ben-basics
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Apr 27, 2013

  1. Copy the full SHA
    a6f2401 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2013

  1. Add jz4740 udc driver

    History:
    - driver by Ingenic
    - patch by Lars-Peter Clausen.
    - updated to 3.1 by Maarten ter Huurne
    larsclausen authored and wpwrak committed Apr 22, 2013
    Copy the full SHA
    33ca823 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    85701ca View commit details
    Browse the repository at this point in the history
  3. qeth: Fix missing pointer update

    qeth_hdr_chk_and_bounce() can possibly shift the skb->data
    pointer. However, the existing code didn't update the hdr pointer,
    which should point to skb->data, accordingly.
    Symptoms of this issue are sporadic recoveries.
    
    Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
    Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Stefan Raspl authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    d4ae1f5 View commit details
    Browse the repository at this point in the history
  4. qeth: remove unused variable

    remove unused variable
    
    Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
    Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Stefan Raspl authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    065cc78 View commit details
    Browse the repository at this point in the history
  5. qeth: remove cast for kzalloc return value

    remove cast for kzalloc return value.
    
    Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
    Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Zhang Yanfei authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    4a912f9 View commit details
    Browse the repository at this point in the history
  6. xen-netback: don't disconnect frontend when seeing oversize packet

    Some frontend drivers are sending packets > 64 KiB in length. This length
    overflows the length field in the first slot making the following slots have
    an invalid length.
    
    Turn this error back into a non-fatal error by dropping the packet. To avoid
    having the following slots having fatal errors, consume all slots in the
    packet.
    
    This does not reopen the security hole in XSA-39 as if the packet as an
    invalid number of slots it will still hit fatal error case.
    
    Signed-off-by: David Vrabel <david.vrabel@citrix.com>
    Signed-off-by: Wei Liu <wei.liu2@citrix.com>
    Acked-by: Ian Campbell <ian.campbell@citrix.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Wei Liu authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    03393fd View commit details
    Browse the repository at this point in the history
  7. xen-netback: coalesce slots in TX path and fix regressions

    This patch tries to coalesce tx requests when constructing grant copy
    structures. It enables netback to deal with situation when frontend's
    MAX_SKB_FRAGS is larger than backend's MAX_SKB_FRAGS.
    
    With the help of coalescing, this patch tries to address two regressions
    avoid reopening the security hole in XSA-39.
    
    Regression 1. The reduction of the number of supported ring entries (slots)
    per packet (from 18 to 17). This regression has been around for some time but
    remains unnoticed until XSA-39 security fix. This is fixed by coalescing
    slots.
    
    Regression 2. The XSA-39 security fix turning "too many frags" errors from
    just dropping the packet to a fatal error and disabling the VIF. This is fixed
    by coalescing slots (handling 18 slots when backend's MAX_SKB_FRAGS is 17)
    which rules out false positive (using 18 slots is legit) and dropping packets
    using 19 to `max_skb_slots` slots.
    
    To avoid reopening security hole in XSA-39, frontend sending packet using more
    than max_skb_slots is considered malicious.
    
    The behavior of netback for packet is thus:
    
        1-18            slots: valid
       19-max_skb_slots slots: drop and respond with an error
       max_skb_slots+   slots: fatal error
    
    max_skb_slots is configurable by admin, default value is 20.
    
    Also change variable name from "frags" to "slots" in netbk_count_requests.
    
    Please note that RX path still has dependency on MAX_SKB_FRAGS. This will be
    fixed with separate patch.
    
    Signed-off-by: Wei Liu <wei.liu2@citrix.com>
    Acked-by: Ian Campbell <ian.campbell@citrix.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Wei Liu authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    2810e5b View commit details
    Browse the repository at this point in the history
  8. xen-netfront: reduce gso_max_size to account for max TCP header

    The maximum packet including header that can be handled by netfront / netback
    wire format is 65535. Reduce gso_max_size accordingly.
    
    Drop skb and print warning when skb->len > 65535. This can 1) save the effort
    to send malformed packet to netback, 2) help spotting misconfiguration of
    netfront in the future.
    
    Signed-off-by: Wei Liu <wei.liu2@citrix.com>
    Acked-by: Ian Campbell <ian.campbell@citrix.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Wei Liu authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    9ecd1a7 View commit details
    Browse the repository at this point in the history
  9. xen-netfront: frags -> slots in log message

    Also fix a typo in comment.
    
    Signed-off-by: Wei Liu <wei.liu2@citrix.com>
    Acked-by: Ian Campbell <ian.campbell@citrix.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Wei Liu authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    697089d View commit details
    Browse the repository at this point in the history
  10. be2net: enable IOMMU pass through for be2net

    This patch sets the coherent DMA mask to 64-bit after the be2net driver has
    been acknowledged that the system is 64-bit DMA capable. The coherent DMA
    mask is examined by the Intel IOMMU driver to determine whether to allow
    pass through context mapping for all devices. With this patch, the be2net
    driver combined with be2net compatible hardware provides comparable
    performance to the case where vt-d is disabled. The main use-case for this
    change is to decrease the time necessary to copy virtual machine memory
    during KVM live migration instantiations.
    
    This patch was tested on a system that enables the IOMMU in non-coherent
    mode. Two DMA remapper issues were encountered in the previous version and
    both patches have been committed.
        commit ea2447f
        commit 2e12bc2
    
    Signed-off-by: Craig Hada <craig.hada@hp.com>
    Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Craig Hada authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    2bd92cd View commit details
    Browse the repository at this point in the history
  11. be2net: Use GET_PROFILE_CONFIG V1 cmd for BE3-R

    Use GET_PROFILE_CONFIG_V1 cmd for BE3-R, to query the maximum number of
    TX rings available per function. On SH-R the same is queried via the
    GET_FUNCTION_CONFIG cmd.
    
    Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
    Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Vasundhara Volam authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    a05f99d View commit details
    Browse the repository at this point in the history
  12. be2net: Avoid flashing BE3 UFI on BE3-R chip.

    Avoid flashing BE3 UFI on BE3-R chip by verifying asic_revision
    number of the chip.
    
    Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
    Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Vasundhara Volam authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    0ad3157 View commit details
    Browse the repository at this point in the history
  13. be2net: Don't log "Out of MCCQ wrbs" error

    Don't log "Out of MCCQ wrbs" msg. When the driver doesn't receive any
    response from the FW it already logs a "FW not responding" message.
    The driver runs out of MCCQ wrbs much later. Also, this message can
    swamp the kernel log in HW/FW error scenarios.
    
    Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
    Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Vasundhara Volam authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    4d27712 View commit details
    Browse the repository at this point in the history
  14. be2net: Use TXQ_CREATE_V2 cmd

    Skyhawk-R and BE3-R (SuperNIC profile) require V2 version
    of TXQ_CREATE cmd to be used.
    
    Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
    Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Vasundhara Volam authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    94d73aa View commit details
    Browse the repository at this point in the history
  15. bnx2x: update version to 1.78.17-0

    Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
    Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Dmitry Kravkov authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    26f26b3 View commit details
    Browse the repository at this point in the history
  16. bnx2x: allow nvram test to run when device is down

    Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
    Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Dmitry Kravkov authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    d2d2d87 View commit details
    Browse the repository at this point in the history
  17. bnx2x: add additional regions for CRC memory test

    a. Common tree of `dir` structures.
    b. Multi-port devices structures.
    
    CC: Francious Romieu <romieu@fz.zoreil.com>
    Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
    Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Dmitry Kravkov authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    edb944d View commit details
    Browse the repository at this point in the history
  18. bnx2x: remove non-necessary assignment

    CC: Francious Romieu <romieu@fz.zoreil.com>
    Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
    Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Dmitry Kravkov authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    f1691dc View commit details
    Browse the repository at this point in the history
  19. bnx2x: fix byte-by-byte nvram write for BE machines

    CC: Francious Romieu <romieu@fz.zoreil.com>
    Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
    Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Dmitry Kravkov authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    30c20b6 View commit details
    Browse the repository at this point in the history
  20. bnx2x: refactor nvram read procedure

    introduce a procedure to read in u32 granularity.
    
    CC: Francious Romieu <romieu@fz.zoreil.com>
    Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
    Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Dmitry Kravkov authored and davem330 committed Apr 22, 2013
    Copy the full SHA
    8564095 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2013

  1. qeth: fix VLAN related compilation errors

    drivers/s390/net/qeth_l3_main.c: In function 'qeth_l3_add_vlan_mc':
    >> drivers/s390/net/qeth_l3_main.c:1662:3: error: too few arguments to function '__vlan_find_dev_deep'
       include/linux/if_vlan.h:88:27: note: declared here
       drivers/s390/net/qeth_l3_main.c: In function 'qeth_l3_add_vlan_mc6':
    >> drivers/s390/net/qeth_l3_main.c:1723:3: error: too few arguments to function '__vlan_find_dev_deep'
       include/linux/if_vlan.h:88:27: note: declared here
       drivers/s390/net/qeth_l3_main.c: In function 'qeth_l3_free_vlan_addresses4':
    >> drivers/s390/net/qeth_l3_main.c:1767:2: error: too few arguments to function '__vlan_find_dev_deep'
       include/linux/if_vlan.h:88:27: note: declared here
       drivers/s390/net/qeth_l3_main.c: In function 'qeth_l3_free_vlan_addresses6':
    >> drivers/s390/net/qeth_l3_main.c:1797:2: error: too few arguments to function '__vlan_find_dev_deep'
       include/linux/if_vlan.h:88:27: note: declared here
       drivers/s390/net/qeth_l3_main.c: In function 'qeth_l3_process_inbound_buffer':
    >> drivers/s390/net/qeth_l3_main.c:1980:6: error: too few arguments to function '__vlan_hwaccel_put_tag'
       include/linux/if_vlan.h:234:31: note: declared here
       drivers/s390/net/qeth_l3_main.c: In function 'qeth_l3_verify_vlan_dev':
    >> drivers/s390/net/qeth_l3_main.c:2089:3: error: too few arguments to function '__vlan_find_dev_deep'
       include/linux/if_vlan.h:88:27: note: declared here
    
    Reported-by: kbuild test robot <fengguang.wu@intel.com>
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    kaber authored and davem330 committed Apr 21, 2013
    Copy the full SHA
    91b1c1a View commit details
    Browse the repository at this point in the history
  2. net: vlan: fix up vlan_proto_idx() for CONFIG_BUG=n

    Add missing return statement for CONFIG_BUG=n.
    
    Reported-by: kbuild test robot <fengguang.wu@intel.com>
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    kaber authored and davem330 committed Apr 21, 2013
    Copy the full SHA
    8da63a6 View commit details
    Browse the repository at this point in the history
  3. net: vlan: fix dummy function signatures for CONFIG_VLAN=n

    Fix up some function signatures for CONFIG_VLAN=n that were missed during
    the 802.1ad support patches.
    
    Found by the kbuild robot.
    
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    kaber authored and davem330 committed Apr 21, 2013
    Copy the full SHA
    9fae27b View commit details
    Browse the repository at this point in the history
  4. net: vlan: fix memory leak in vlan_info_rcu_free()

    The following leak is reported by kmemleak:
    
    [   86.812073] kmemleak: Found object by alias at 0xffff88006ecc76f0
    [   86.816019] Pid: 739, comm: kworker/u:1 Not tainted 3.9.0-rc5+ #842
    [   86.816019] Call Trace:
    [   86.816019]  <IRQ>  [<ffffffff81151c58>] find_and_get_object+0x8c/0xdf
    [   86.816019]  [<ffffffff8190e90d>] ? vlan_info_rcu_free+0x33/0x49
    [   86.816019]  [<ffffffff81151cbe>] delete_object_full+0x13/0x2f
    [   86.816019]  [<ffffffff8194bbb6>] kmemleak_free+0x26/0x45
    [   86.816019]  [<ffffffff8113e8c7>] slab_free_hook+0x1e/0x7b
    [   86.816019]  [<ffffffff81141c05>] kfree+0xce/0x14b
    [   86.816019]  [<ffffffff8190e90d>] vlan_info_rcu_free+0x33/0x49
    [   86.816019]  [<ffffffff810d0b0b>] rcu_do_batch+0x261/0x4e7
    
    The reason is that in vlan_info_rcu_free() we don't take the VLAN protocol
    into account when iterating over the vlan_devices_array.
    
    Reported-by: Cong Wang <amwang@redhat.com>
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Tested-by: Cong Wang <amwang@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    kaber authored and davem330 committed Apr 21, 2013
    Copy the full SHA
    cf2c014 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2013

  1. Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/pablo/nf-next
    
    Pablo Neira Ayuso says:
    
    ====================
    The following patchset contains a small batch of Netfilter
    updates for your net-next tree, they are:
    
    * Three patches that provide more accurate error reporting to
      user-space, instead of -EPERM, in IPv4/IPv6 netfilter re-routing
      code and NAT, from Patrick McHardy.
    
    * Update copyright statements in Netfilter filters of
      Patrick McHardy, from himself.
    
    * Add Kconfig dependency on the raw/mangle tables to the
      rpfilter, from Florian Westphal.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Apr 19, 2013
    Copy the full SHA
    95a0616 View commit details
    Browse the repository at this point in the history
  2. bond: add support to read speed and duplex via ethtool

    This patch adds support for the get_settings ethtool op to the bonding
    driver.  This was motivated by users who wanted to get the speed of the
    bond and compare that against throughput to understand utilization.
    The behavior before this patch was added was problematic when computing
    line utilization after trying to get link-speed and throughput via SNMP.
    
    Output from ethtool looks like this for a round-robin bond:
    
    Settings for bond0:
    	Supported ports: [ ]
    	Supported link modes:   Not reported
    	Supported pause frame use: No
    	Supports auto-negotiation: No
    	Advertised link modes:  Not reported
    	Advertised pause frame use: No
    	Advertised auto-negotiation: No
    	Speed: 11000Mb/s
    	Duplex: Full
    	Port: Other
    	PHYAD: 0
    	Transceiver: internal
    	Auto-negotiation: off
    	MDI-X: Unknown
    	Link detected: yes
    
    I tested this and verified it works as expected.  A test was also done
    on a version backported to an older kernel and it worked well there.
    
    v2: Switch to using ethtool_cmd_speed_set to set speed, added check to
    SLAVE_IS_OK for each slave in bond, dropped mode-specific calculations
    as they were not needed, and set port type to 'Other.'
    
    v3: Fix useless assignment and checkpatch warning.
    
    Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
    Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    gospo authored and davem330 committed Apr 19, 2013
    Copy the full SHA
    bb5b052 View commit details
    Browse the repository at this point in the history
  3. packet: move hw/sw timestamp extraction into a small helper

    This patch introduces a small, internal helper function, that is used by
    PF_PACKET. Based on the flags that are passed, it extracts the packet
    timestamp in the receive path. This is merely a refactoring to remove
    some duplicate code in tpacket_rcv(), to make it more readable, and to
    enable others to use this function in PF_PACKET as well, e.g. for TX.
    
    Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    borkmann authored and davem330 committed Apr 19, 2013
    Copy the full SHA
    4b457bd View commit details
    Browse the repository at this point in the history
  4. net: socket: move ktime2ts to ktime header api

    Currently, ktime2ts is a small helper function that is only used in
    net/socket.c. Move this helper into the ktime API as a small inline
    function, so that i) it's maintained together with ktime routines,
    and ii) also other files can make use of it. The function is named
    ktime_to_timespec_cond() and placed into the generic part of ktime,
    since we internally make use of ktime_to_timespec(). ktime_to_timespec()
    itself does not check the ktime variable for zero, hence, we name
    this function ktime_to_timespec_cond() for only a conditional
    conversion, and adapt its users to it.
    
    Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    borkmann authored and davem330 committed Apr 19, 2013
    Copy the full SHA
    6e94d1e View commit details
    Browse the repository at this point in the history
  5. net: Add .gitignore to networking selftests directory.

    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Apr 19, 2013
    Copy the full SHA
    cf27014 View commit details
    Browse the repository at this point in the history
  6. net: Add missing netdev feature strings for NETIF_F_HW_VLAN_STAG_*

    Noticed by Ben Hutchings.
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Apr 19, 2013
    Copy the full SHA
    2d6577f View commit details
    Browse the repository at this point in the history
  7. Merge branch 'qlcnic'

    Rajesh Borundia says:
    
    ====================
    * "qlcnic: Change 82xx adapter VLAN id endian type".
      - Adapter requires VLAN id in little endian. VLAN id was being
        converted to __le16 and then passed as a parameter. Pass VLAN id
        as u16 and then use cpu_to_le16 at appropriate places. It is
        appropriate for net-next as SR-IOV patches have a dependency on it.
    * "qlcnic: Fix loopback test for SR-IOV PF".
      - It is appropriate for net-next as change is needed for SRIOV PF
        only.
    * Remaining patches add enhancements to SR-IOV functionality like
      - FLR handling
      - Adapter reset recovery handling
      - iproute2 tool support for configuring MAC address, Tx rate and
        VLAN id.
      - Mailbox polling support for SR-IOV PF in case mailbox interrupts
        are disabled.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Apr 19, 2013
    Copy the full SHA
    92352df View commit details
    Browse the repository at this point in the history
  8. qlcnic: Update version to 5.2.41

    Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Rajesh Borundia authored and davem330 committed Apr 19, 2013
    Copy the full SHA
    c637627 View commit details
    Browse the repository at this point in the history
  9. qlcnic: Support polling for mailbox events.

    o When mailbox interrupt is disabled PF should be
      able to process request from VF. Enable polling
      for such cases.
    
    Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Rajesh Borundia authored and davem330 committed Apr 19, 2013
    Copy the full SHA
    7ed3ce4 View commit details
    Browse the repository at this point in the history
  10. qlcnic: Fix loopback test for SR-IOV PF.

    o Do not disable mailbox interrupts while running
      loopback test through SR-IOV PF.
    
    Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
    Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Rajesh Borundia authored and davem330 committed Apr 19, 2013
    Copy the full SHA
    d1a1105 View commit details
    Browse the repository at this point in the history
Older