07 Jan, 2015

11 commits

  • David S. Miller
     
  • Pull networking fixes from David Miller:
    "Just a pile of random fixes, including:

    1) Do not apply TSO limits to non-TSO packets, fix from Herbert Xu.

    2) MDI{,X} eeprom check in e100 driver is reversed, from John W.
    Linville.

    3) Missing error return assignments in several ethernet drivers, from
    Julia Lawall.

    4) Altera TSE device doesn't come back up after ifconfig down/up
    sequence, fix from Kostya Belezko.

    5) Add more cases to the check for whether the qmi_wwan device has a
    bogus MAC address and needs to be assigned a random one. From
    Kristian Evensen.

    6) Fix interrupt hangs in CPSW, from Felipe Balbi.

    7) Implement ndo_features_check in r8152 so that the stack doesn't
    feed GSO packets which are outside of the chip's capabilities.
    From Hayes Wang"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (26 commits)
    qla3xxx: don't allow never end busy loop
    xen-netback: fixing the propagation of the transmit shaper timeout
    r8152: support ndo_features_check
    batman-adv: fix potential TT client + orig-node memory leak
    batman-adv: fix multicast counter when purging originators
    batman-adv: fix counter for multicast supporting nodes
    batman-adv: fix lock class for decoding hash in network-coding.c
    batman-adv: fix delayed foreign originator recognition
    batman-adv: fix and simplify condition when bonding should be used
    Revert "mac80211: Fix accounting of the tailroom-needed counter"
    net: ethernet: cpsw: fix hangs with interrupts
    enic: free all rq buffs when allocation fails
    qmi_wwan: Set random MAC on devices with buggy fw
    openvswitch: Consistently include VLAN header in flow and port stats.
    tcp: Do not apply TSO segment limit to non-TSO packets
    Altera TSE: Add missing phydev
    net/mlx4_core: Fix error flow in mlx4_init_hca()
    net/mlx4_core: Correcly update the mtt's offset in the MR re-reg flow
    qlcnic: Fix return value in qlcnic_probe()
    net: axienet: fix error return code
    ...

    Linus Torvalds
     
  • Pull IPMI fixlet from Corey Minyard:
    "Fix a compile warning"

    * tag 'for-linus-3' of git://git.code.sf.net/p/openipmi/linux-ipmi:
    ipmi: Fix compile warning with tv_usec

    Linus Torvalds
     
  • This adds support for APM X-Gene ethernet driver to use ACPI table to derive
    ethernet driver parameter.

    Signed-off-by: Feng Kan
    Signed-off-by: David S. Miller

    Feng Kan
     
  • The counter variable wasn't increased at all which may stuck under
    certain circumstances.

    Signed-off-by: Andy Shevchenko
    Signed-off-by: David S. Miller

    Andy Shevchenko
     
  • The Freescale mEMAC supports operating at 10/100/1000/10G, and
    its associated MDIO controller is likewise capable of operating
    both Clause 22 and Clause 45 MDIO buses. It is nearly identical
    to the MDIO controller on the XGMAC, so we just modify that
    driver.

    Portions of this driver developed by:

    Sandeep Singh
    Roy Zang

    Signed-off-by: Andy Fleming
    Signed-off-by: Shaohui Xie
    Signed-off-by: David S. Miller

    Andy Fleming
     
  • Since e9ce7cb6b107 ("xen-netback: Factor queue-specific data into queue struct"),
    the transimt shaper timeout is always set to 0. The value the user sets via
    xenbus is never propagated to the transmit shaper.

    This patch fixes the issue.

    Cc: Anthony Liguori
    Signed-off-by: Imre Palik
    Acked-by: Ian Campbell
    Signed-off-by: David S. Miller

    Palik, Imre
     
  • Rx ring 2 size can be configured by adjusting rx-jumbo parameter
    of ethtool -G.

    Signed-off-by: Ramya Bolla
    Signed-off-by: Shreyas Bhatewara
    Signed-off-by: Shrikrishna Khare
    Signed-off-by: David S. Miller

    Shrikrishna Khare
     
  • Support ndo_features_check to avoid:
    - the transport offset is more than the hw limitation when using hw checksum.
    - the skb->len of a GSO packet is more than the limitation.

    Signed-off-by: Hayes Wang
    Signed-off-by: David S. Miller

    hayeswang
     
  • This driver makes use of the clocksource code. Previously it had only
    included the proper header indirectly, but that chain was inadvertently
    broken by 74d23cc "time: move the timecounter/cyclecounter code into its
    own file."

    This patch fixes the issue by including clocksource.h directly.

    Signed-off-by: Richard Cochran
    Signed-off-by: David S. Miller

    Richard Cochran
     
  • Signed-off-by: Hariprasad Shenai
    Signed-off-by: David S. Miller

    Hariprasad Shenai
     

06 Jan, 2015

7 commits


05 Jan, 2015

3 commits

  • Use normal facilities to avoid printing each byte
    on a separate line.

    Now emits at KERN_DEBUG instead of KERN_INFO.

    Signed-off-by: Joe Perches
    Signed-off-by: David S. Miller

    Joe Perches
     
  • When running in kdump kernel, reduce number of resources used by the driver.
    This will enable NIC to operate in low memory kdump kernel environment.

    Also change the driver version to .83

    Signed-off-by: Govindarajulu Varadarajan
    Signed-off-by: David S. Miller

    Govindarajulu Varadarajan
     
  • The CPSW IP implements pulse-signaled interrupts. Due to
    that we must write a correct, pre-defined value to the
    CPDMA_MACEOIVECTOR register so the controller generates
    a pulse on the correct IRQ line to signal the End Of
    Interrupt.

    The way the driver is written today, all four IRQ lines
    are requested using the same IRQ handler and, because of
    that, we could fall into situations where a TX IRQ fires
    but we tell the controller that we ended an RX IRQ (or
    vice-versa). This situation triggers an IRQ storm on the
    reserved IRQ 127 of INTC which will in turn call ack_bad_irq()
    which will, then, print a ton of:

    unexpected IRQ trap at vector 00

    In order to fix the problem, we are moving all calls to
    cpdma_ctlr_eoi() inside the IRQ handler and making sure
    we *always* write the correct value to the CPDMA_MACEOIVECTOR
    register. Note that the algorithm assumes that IRQ numbers and
    value-to-be-written-to-EOI are proportional, meaning that a
    write of value 0 would trigger an EOI pulse for the RX_THRESHOLD
    Interrupt and that's the IRQ number sitting in the 0-th index
    of our irqs_table array.

    This, however, is safe at least for current implementations of
    CPSW so we will refrain from making the check smarter (and, as
    a side-effect, slower) until we actually have a platform where
    IRQ lines are swapped.

    This patch has been tested for several days with AM335x- and
    AM437x-based platforms. AM57x was left out because there are
    still pending patches to enable ethernet in mainline for that
    platform. A read of the TRM confirms the statement on previous
    paragraph.

    Reported-by: Yegor Yefremov
    Fixes: 510a1e7 (drivers: net: davinci_cpdma: acknowledge interrupt properly)
    Cc: # v3.9+
    Signed-off-by: Felipe Balbi
    Acked-by: Tony Lindgren
    Signed-off-by: David S. Miller

    Felipe Balbi
     

03 Jan, 2015

19 commits