02 Oct, 2012

17 commits

  • This reverts commit d7559982701ac500662b2e8e150ff34f7faf0281.

    It wasn't meant to be applied, commit
    342b7b741d76bc8aadeff844634348bb2a343d19 ("net: ti cpsw ethernet: set
    IFCTL_A bit in MACCONTROL") was redone in such a way to make this
    commit unnecessary.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Use be16 consistently when looking at flags.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    stephen hemminger
     
  • This dongle ships with the X1 Carbon, and has an AX88772B
    usb to ethernet chip in it.

    Signed-off-by: Quinlan Pfiffer
    Signed-off-by: David S. Miller

    Quinlan Pfiffer
     
  • Due to a bug in most Flexcan cores, the bus error interrupt needs
    to be enabled. Otherwise we don't get any error warning or passive
    interrupts. This is _not_ necessary for the i.MX28 and this patch
    disables bus error interrupts if "berr-reporting" is not requested.
    This avoids bus error flooding, which might harm, especially on
    low-end systems.

    To handle such quirks of the Flexcan cores, a hardware feature flag
    has been introduced, also replacing the "hw_ver" variable. So far
    nobody could tell what Flexcan core version is available on what
    Freescale SOC, apart from the i.MX6Q and P1010, and which bugs or
    features are present on the various "hw_rev".

    CC: Hui Wang
    CC: Shawn Guo
    Signed-off-by: Wolfgang Grandegger
    Signed-off-by: David S. Miller

    Wolfgang Grandegger
     
  • Because sizeof() is size_t then if "len" is negative, it counts as a
    large positive value.

    The call tree looks like:
    pfkey_sendmsg()
    -> pfkey_process()
    -> pfkey_spdadd()
    -> parse_ipsecrequests()

    Signed-off-by: Dan Carpenter
    Signed-off-by: David S. Miller

    Dan Carpenter
     
  • Add the rtnl_link_ops changelink and fill_info callbacks, through
    which the admin can now set/get the driver mode, etc policies.
    Maintain the proprietary sysfs entries only for legacy childs.

    For child devices, set dev->iflink to point to the parent
    device ifindex, such that user space tools can now correctly
    show the uplink relation as done for vlan, macvlan, etc
    devices. Pointed out by Patrick McHardy

    Signed-off-by: Or Gerlitz
    Signed-off-by: David S. Miller

    Or Gerlitz
     
  • Allow users to specify the phy interface of the CPSW slaves. The new
    node parameter is called "phy_if_mode" and is optional. The original
    behaviour of the driver is preserved when not given.

    Signed-off-by: Daniel Mack
    Cc: Mugunthan V N
    Cc: Vaibhav Hiremath
    Cc: David S. Miller
    Signed-off-by: David S. Miller

    Daniel Mack
     
  • For RMII/RGMII mode operation in 100Mbps, the CPSW needs to set the
    IFCTL_A bits in the MACCONTROL register. For all other PHY modes, this
    bit is unused, so setting it unconditionally shouldn't cause any
    trouble.

    Signed-off-by: Daniel Mack
    Cc: Mugunthan V N
    Cc: Vaibhav Hiremath
    Cc: David S. Miller
    Signed-off-by: David S. Miller

    Daniel Mack
     
  • After commit e22979d96a55d (mlx4_en: Moving to Interrupts for TX
    completions) we no longer need to orphan skbs in mlx4_en_xmit()
    since skb wont stay a long time in TX ring before their release.

    Orphaning skbs in ndo_start_xmit() should be avoided as much as
    possible, since it breaks TCP Small Queue or other flow control
    mechanisms (per socket limits)

    Signed-off-by: Eric Dumazet
    Acked-by: Yevgeny Petrilin
    Cc: Or Gerlitz
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • Add GRO capability to IPv4 GRE tunnels, using the gro_cells
    infrastructure.

    Tested using IPv4 and IPv6 TCP traffic inside this tunnel, and
    checking GRO is building large packets.

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • This adds a new include file (include/net/gro_cells.h), to bring GRO
    (Generic Receive Offload) capability to tunnels, in a modular way.

    Because tunnels receive path is lockless, and GRO adds a serialization
    using a napi_struct, I chose to add an array of up to
    DEFAULT_MAX_NUM_RSS_QUEUES cells, so that multi queue devices wont be
    slowed down because of GRO layer.

    skb_get_rx_queue() is used as selector.

    In the future, we might add optional fanout capabilities, using rxhash
    for example.

    With help from Ben Hutchings who reminded me
    netif_get_num_default_rss_queues() function.

    Signed-off-by: Eric Dumazet
    Cc: Ben Hutchings
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • skb with CHECKSUM_NONE cant currently be handled by GRO, and
    we notice this deep in GRO stack in tcp[46]_gro_receive()

    But there are cases where GRO can be a benefit, even with a lack
    of checksums.

    This preliminary work is needed to add GRO support
    to tunnels.

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • When an address is added on loopback (ip -6 a a 2002::1/128 dev lo), two routes
    are added:
    - one in the local table:
    local 2002::1 via :: dev lo proto none metric 0
    - one the in main table (for the prefix):
    unreachable 2002::1 dev lo proto kernel metric 256 error -101

    When the address is deleted, the route inserted in the main table remains
    because we use rt6_lookup(), which returns NULL when dst->error is set, which
    is the case here! Thus, it is better to use ip6_route_lookup() to avoid this
    kind of filter.

    Signed-off-by: Nicolas Dichtel
    Signed-off-by: David S. Miller

    Nicolas Dichtel
     
  • Signed-off-by: Yuval Mintz
    Signed-off-by: Ariel Elior
    Signed-off-by: Eilon Greenstein
    Signed-off-by: David S. Miller

    Yuval Mintz
     
  • This patch moves the bnx2x and cnic drivers into using FW 7.8.2
    which was recently submitted into the linux-firmware tree.

    A short summary of minor bugs fixed by this FW:
    1. In switch dependent mode, fix several issues regarding inner vlan
    vs. DCB priorities.
    2. iSCSI - not all packets were completed on a forward channel.
    3. DCB - fixed for 4-port devices.
    4. Fixed false parity reported in CAM memories when operating near -5%
    on the 1.0V core supply.
    5. ETS default settings are set to fairness between traffic classes
    (rather than strict priority), and uses the same chip receive buffer
    configuration for both PFC and pause.

    For a complete list of fixes made by this FW, see commit 236367db
    in the linux-firmware git repository.

    Signed-off-by: Yuval Mintz
    Signed-off-by: Dmitry Kravkov
    Signed-off-by: Ariel Elior
    Signed-off-by: Eilon Greenstein
    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Yuval Mintz
     
  • Current VFs enumeration algorithm used in be_find_vfs does not take domain
    number into the match. The match found in igb/ixgbe is more elegant and
    safe.

    This 2nd version uses pci_physfn instead of checking dev->physfn directly.

    Signed-off-by: Ivan Vecera
    Signed-off-by: David S. Miller

    Ivan Vecera
     
  • Commit ec47ea824774(skb: Add inline helper for getting the skb end offset from
    head) introduces this helper function, skb_end_offset(),
    we should make use of it.

    Signed-off-by: Weiping Pan
    Acked-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Weiping Pan
     

01 Oct, 2012

1 commit


30 Sep, 2012

12 commits


29 Sep, 2012

10 commits