02 Jan, 2011

3 commits

  • Simplifies routines and data structures that were intended to allow
    TIPC to support slave nodes (i.e. nodes that did not have links to
    all of the other nodes in its cluster, forcing TIPC to route messages
    that it could not deliver directly through a non-slave node).

    Currently, TIPC supports only networks containing non-slave nodes,
    so this code is unnecessary.

    Note: The latest edition of the TIPC 2.0 Specification has eliminated
    the concept of slave nodes entirely.

    Signed-off-by: Allan Stephens
    Signed-off-by: Paul Gortmaker
    Signed-off-by: David S. Miller

    Allan Stephens
     
  • Eliminates routines, data structures, and files that were intended
    to allows TIPC to support a network containing multiple zones.
    Currently, TIPC supports only networks consisting of a single cluster
    within a single zone, so this code is unnecessary.

    Signed-off-by: Allan Stephens
    Signed-off-by: Paul Gortmaker
    Signed-off-by: David S. Miller

    Allan Stephens
     
  • In case CONFIG_PM_SLEEP is disabled, we dont need tg3_suspend() and
    tg3_resume().

    drivers/net/tg3.c:15056: warning: ‘tg3_suspend’ defined but not used
    drivers/net/tg3.c:15110: warning: ‘tg3_resume’ defined but not used

    Signed-off-by: Eric Dumazet
    Cc: Rafael J. Wysocki
    Cc: Michael Chan
    Cc: Matt Carlson
    Signed-off-by: David S. Miller

    Eric Dumazet
     

01 Jan, 2011

16 commits

  • The skge driver used the legacy PCI power management, and did its
    own PCI callbacks. Use the same code model as Rafael's changes to
    sky2. Let the PCI subsystem take care of all the PCI-specific aspects of
    device handling during system power transitions.

    Compile tested only (so far).

    Signed-off-by: Stephen Hemminger
    Acked-by: Rafael J. Wysocki
    Signed-off-by: David S. Miller

    stephen hemminger
     
  • slot_dequeue_head() should make sure slot skb chain is correct in both
    ways, or we can crash if all possible flows are in use.

    Jarek pointed out slot_queue_init() can now be done in sfq_init() once,
    instead each time a flow is setup.

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

    Eric Dumazet
     
  • SFQ is currently 'limited' to small packets, because it uses a 15bit
    allotment number per flow. Introduce a scale by 8, so that we can handle
    full size TSO/GRO packets.

    Use appropriate handling to make sure allot is positive before a new
    packet is dequeued, so that fairness is respected.

    Signed-off-by: Eric Dumazet
    Acked-by: Jarek Poplawski
    Cc: Patrick McHardy
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • The sky2 driver uses the legacy PCI power management, so it has to do
    some PCI-specific things in its ->suspend() and ->resume() callbacks,
    which isn't necessary and should better be done by the PCI
    sybsystem-level power management code. Moreover, it uses
    device_set_wakeup_enable() incorrectly (that function should be
    used when the WoL setting is changed rather than during suspend).

    Convert sky2 to the new PCI power management framework and make it
    let the PCI subsystem take care of all the PCI-specific aspects of
    device handling during system power transitions.

    Tested on a desktop machine with a Marvell 88E8056 PCI-E adapter.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Rafael J. Wysocki
     
  • The tg3 driver uses the legacy PCI power management, so it has to do
    some PCI-specific things in its ->suspend() and ->resume() callbacks,
    which isn't necessary and should better be done by the PCI
    sybsystem-level power management code.

    Convert tg3 to the new PCI power management framework and make it
    let the PCI subsystem take care of all the PCI-specific aspects of
    device handling during system power transitions.

    Tested on HP nx6325 with a NetXtreme BCM5788 adapter.

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: David S. Miller

    Rafael J. Wysocki
     
  • We already verified that "dev->udev->actconfig->extralen" was non-zero
    so "len" is non-zero here as well.

    Signed-off-by: Dan Carpenter
    Acked-by: Oliver Neukum
    Signed-off-by: David S. Miller

    Dan Carpenter
     
  • Update MIPS firmware to 6.2.1, with improved small packet performance
    in RSS mode, and iSCSI CID allocation bug fix on 5708.

    Update driver version to 2.0.21.

    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Michael Chan
     
  • When changing ring size, we free all memory including status block
    memory. If we're in INTA mode and sharing IRQ, the IRQ handler can
    be called and it will reference the NULL status block pointer.

    Because of the lockless design of the IRQ handler, there is no simple
    way to synchronize and prevent this. So we avoid this problem by
    freeing the IRQ handler before freeing the status block memory.

    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Michael Chan
     
  • This driver supports only Intelligent Ethernet Adapters.

    Signed-off-by: Amit Kumar Salecha
    Signed-off-by: David S. Miller

    Amit Kumar Salecha
     
  • A couple of small cleanups for patches:
    [net-next-2.6 PATCH 1/3] dcbnl: add support for ieee8021Qaz attributes
    [net-next-2.6 PATCH 2/3] dcbnl: add appliction tlv handlers
    [net-next-2.6 PATCH 3/3] net_dcb: add application notifiers

    Signed-off-by: Shmulik Ravid
    Signed-off-by: David S. Miller

    Shmulik Ravid
     
  • Adding dcbnl implementation to bnx2x allowing users to manage the
    embedded DCBX engine.

    This patch is dependent on the following patches:
    [net-next-2.6 PATCH 1/3] dcbnl: add support for ieee8021Qaz attributes
    [net-next-2.6 PATCH 2/3] dcbnl: add appliction tlv handlers
    [net-next-2.6 PATCH 3/3] net_dcb: add application notifiers

    Signed-off-by: Shmulik Ravid
    Signed-off-by: Eilon Greenstein
    Signed-off-by: David S. Miller

    Shmulik Ravid
     
  • Adding a pair of set-get routines to dcbnl for setting the negotiation
    flags of the various DCB features. Conforms to the CEE flavor of DCBX
    The user sets these flags (enable, advertise, willing) for each feature
    to be used by the DCBX engine. The 'get' routine returns which of the
    features is enabled after the negotiation.

    This patch is dependent on the following patches:
    [net-next-2.6 PATCH 1/3] dcbnl: add support for ieee8021Qaz attributes
    [net-next-2.6 PATCH 2/3] dcbnl: add appliction tlv handlers
    [net-next-2.6 PATCH 3/3] net_dcb: add application notifiers

    Signed-off-by: Shmulik Ravid
    Signed-off-by: David S. Miller

    Shmulik Ravid
     
  • Adding an optional DCBX capability and a pair for get-set routines for
    setting the device DCBX mode. The DCBX capability is a bit field of
    supported attributes. The user is expected to set the DCBX mode with a
    subset of the advertised attributes.

    This patch is dependent on the following patches:
    [net-next-2.6 PATCH 1/3] dcbnl: add support for ieee8021Qaz attributes
    [net-next-2.6 PATCH 2/3] dcbnl: add appliction tlv handlers
    [net-next-2.6 PATCH 3/3] net_dcb: add application notifiers

    Signed-off-by: Shmulik Ravid
    Acked-by: John Fastabend
    Signed-off-by: David S. Miller

    Shmulik Ravid
     
  • DCBx applications priorities can be changed dynamically. If
    application stacks are expected to keep the skb priority
    consistent with the dcbx priority the stack will need to
    be notified when these changes occur.

    This patch adds application notifiers for the stack to register
    with.

    Signed-off-by: John Fastabend
    Signed-off-by: David S. Miller

    John Fastabend
     
  • This patch adds application tlv handlers. Networking stacks
    may use the application priority to set the skb priority of
    their stack using the negoatiated dcbx priority.

    This patch provides the dcb_{get|set}app() routines for the
    stack to query these parameters. Notice lower layer drivers
    can use the dcbnl_ops routines if additional handling is
    needed. Perhaps in the firmware case for example

    Signed-off-by: John Fastabend
    Signed-off-by: Shmulik Ravid
    Signed-off-by: David S. Miller

    John Fastabend
     
  • The IEEE8021Qaz is the IEEE standard version of CEE. The
    standard has had enough significant changes from the CEE
    version that many of the CEE attributes have no meaning
    in the new spec or do not easily map to IEEE standards.

    Rather then attempt to create a complicated mapping
    between CEE and IEEE standards this patch adds a nested
    IEEE attribute to the list of DCB attributes. The policy
    is,

    [DCB_ATTR_IFNAME]
    [DCB_ATTR_STATE]
    ...
    [DCB_ATTR_IEEE]
    [DCB_ATTR_IEEE_ETS]
    [DCB_ATTR_IEEE_PFC]
    [DCB_ATTR_IEEE_APP_TABLE]
    [DCB_ATTR_IEEE_APP]
    ...

    The following dcbnl_rtnl_ops routines were added to handle
    the IEEE standard,

    int (*ieee_getets) (struct net_device *, struct ieee_ets *);
    int (*ieee_setets) (struct net_device *, struct ieee_ets *);
    int (*ieee_getpfc) (struct net_device *, struct ieee_pfc *);
    int (*ieee_setpfc) (struct net_device *, struct ieee_pfc *);
    int (*ieee_getapp) (struct net_device *, struct dcb_app *);
    int (*ieee_setapp) (struct net_device *, struct dcb_app *);

    Signed-off-by: John Fastabend
    Signed-off-by: David S. Miller

    John Fastabend
     

29 Dec, 2010

1 commit


27 Dec, 2010

2 commits

  • Conflicts:
    net/ipv4/fib_frontend.c

    David S. Miller
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (42 commits)
    ipv4: dont create routes on down devices
    epic100: hamachi: yellowfin: Fix skb allocation size
    sundance: Fix oopses with corrupted skb_shared_info
    Revert "ipv4: Allow configuring subnets as local addresses"
    USB: mcs7830: return negative if auto negotiate fails
    irda: prevent integer underflow in IRLMP_ENUMDEVICES
    tcp: fix listening_get_next()
    atl1c: Do not use legacy PCI power management
    mac80211: fix mesh forwarding
    MAINTAINERS: email address change
    net: Fix range checks in tcf_valid_offset().
    net_sched: sch_sfq: fix allot handling
    hostap: remove netif_stop_queue from init
    mac80211/rt2x00: add ieee80211_tx_status_ni()
    typhoon: memory corruption in typhoon_get_drvinfo()
    net: Add USB PID for new MOSCHIP USB ethernet controller MCS7832 variant
    net_sched: always clone skbs
    ipv6: Fragment locally generated tunnel-mode IPSec6 packets as needed.
    netlink: fix gcc -Wconversion compilation warning
    asix: add USB ID for Logitec LAN-GTJ U2A
    ...

    Linus Torvalds
     

26 Dec, 2010

14 commits

  • In ip_route_output_slow(), instead of allowing a route to be created on
    a not UPed device, report -ENETUNREACH immediately.

    # ip tunnel add mode ipip remote 10.16.0.164 local
    10.16.0.72 dev eth0
    # (Note : tunl1 is down)
    # ping -I tunl1 10.1.2.3
    PING 10.1.2.3 (10.1.2.3) from 192.168.18.5 tunl1: 56(84) bytes of data.
    (nothing)
    # ./a.out tunl1
    # ip tunnel del tunl1
    Message from syslogd@shelby at Dec 22 10:12:08 ...
    kernel: unregister_netdevice: waiting for tunl1 to become free.
    Usage count = 3

    After patch:
    # ping -I tunl1 10.1.2.3
    connect: Network is unreachable

    Reported-by: Nicolas Dichtel
    Signed-off-by: Eric Dumazet
    Reviewed-by: Octavian Purdila
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • Joel Soete reported oopses during pppoe over sundance NIC, caused by
    a bug in skb allocation and dma mapping code, where skb_reserve()
    bytes weren't taken into account. As a followup to the patch:
    "sundance: Fix oopses with corrupted skb_shared_info" very similar
    code is fixed here for three other drivers.

    Signed-off-by: Jarek Poplawski
    Cc: Joel Soete
    Cc: Eric Dumazet
    Signed-off-by: David S. Miller

    Jarek Poplawski
     
  • Joel Soete reported oopses at the beginning of pppoe connections since
    v2.6.35. After debugging the bug was found in sundance skb allocation
    and dma mapping code, where skb_reserve() bytes aren't taken into
    account. This is an old bug, only uncovered by some change in 2.6.35.

    Initial debugging patch by: Eric Dumazet

    Reported-by: Joel Soete
    Tested-by: Joel Soete
    Signed-off-by: Jarek Poplawski
    Cc: Eric Dumazet
    Signed-off-by: David S. Miller

    Jarek Poplawski
     
  • David S. Miller
     
  • Signed-off-by: Debashis Dutt
    Signed-off-by: Rasesh Mody
    Signed-off-by: David S. Miller

    Rasesh Mody
     
  • Change Details:
    - Made IOC auto_recovery synchronized and not timer based.
    - Only one PCI function will attempt to recover and reinitialize
    the ASIC on a failure, that too after all the active PCI
    functions acknowledge the IOC failure.

    Signed-off-by: Debashis Dutt
    Signed-off-by: Rasesh Mody
    Signed-off-by: David S. Miller

    Rasesh Mody
     
  • Change Details:
    - Retrieve the VLAN configuration from the networking stack
    and apply it to the base interface during ifconfig up

    Signed-off-by: Debashis Dutt
    Signed-off-by: Rasesh Mody
    Signed-off-by: David S. Miller

    Rasesh Mody
     
  • Change Details:
    - Remove unused APIs and code cleanup

    Signed-off-by: Debashis Dutt
    Signed-off-by: Rasesh Mody
    Signed-off-by: David S. Miller

    Rasesh Mody
     
  • Change Details:
    - Added a check in ioc firmware lock function to see if IOC is
    in BFI_IOC_UNINIT state or not. If it is not in UNINIT state
    and the last IOC boot was not done by OS driver, force IOC state
    to BFI_IOC_UNINIT
    - Unused macro and API cleanup

    Signed-off-by: Debashis Dutt
    Signed-off-by: Rasesh Mody
    Signed-off-by: David S. Miller

    Rasesh Mody
     
  • Change Details:
    - Call netif_wake_queue() if we have freed up sufficient elements
    at the end of completion processing
    - Add netif_queue_stopped counter back to bnad_drv_stats {}
    - Get netif_queue_stopped value from stack
    - Remove BUG_ON() on value returned by pci_unmap_addr()

    Signed-off-by: Debashis Dutt
    Signed-off-by: Rasesh Mody
    Signed-off-by: David S. Miller

    Rasesh Mody
     
  • Change Details:
    - Enable reception of pure priority tagged packets by default by
    turning on VLAN Id = 0
    - Clear the promiscuous mode, all multicast mode flags when
    bna_rxf_uninit is called

    Signed-off-by: Debashis Dutt
    Signed-off-by: Rasesh Mody
    Signed-off-by: David S. Miller

    Rasesh Mody
     
  • Change Details:
    - Removed semaphore register dump from ethtool
    - Moved netif_carrier_off() call to before calling bna_init()

    Signed-off-by: Debashis Dutt
    Signed-off-by: Rasesh Mody
    Signed-off-by: David S. Miller

    Rasesh Mody
     
  • Change Details:
    - Fixed port enable/disable sync through a change in LL port state
    machine
    - Change txq->priority masking to 0x7 (3 bits) from 0x3 (2 bits)

    Signed-off-by: Debashis Dutt
    Signed-off-by: Rasesh Mody
    Signed-off-by: David S. Miller

    Rasesh Mody
     
  • Change Details:
    - Check HW ready condition before accessing h/w register in data-path
    - Postpone clean-up of data buffers to the data-path restart path and
    wait in the cleanup routines for in-flight DMA to complete
    - Separate out Tx completion processing from Rx poll routine

    Signed-off-by: Debashis Dutt
    Signed-off-by: Rasesh Mody
    Signed-off-by: David S. Miller

    Rasesh Mody
     

25 Dec, 2010

4 commits