01 Jan, 2011
1 commit
-
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
29 Dec, 2010
1 commit
-
This is just a cleanup to make the static checkers happy. We don't need
to check "own" twice.Signed-off-by: Dan Carpenter
Acked-by: Ram Vepa
Signed-off-by: David S. Miller
27 Dec, 2010
2 commits
-
Conflicts:
net/ipv4/fib_frontend.c -
* 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
...
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 = 3After patch:
# ping -I tunl1 10.1.2.3
connect: Network is unreachableReported-by: Nicolas Dichtel
Signed-off-by: Eric Dumazet
Reviewed-by: Octavian Purdila
Signed-off-by: David S. Miller -
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 -
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 -
Signed-off-by: Debashis Dutt
Signed-off-by: Rasesh Mody
Signed-off-by: David S. Miller -
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 -
Change Details:
- Retrieve the VLAN configuration from the networking stack
and apply it to the base interface during ifconfig upSigned-off-by: Debashis Dutt
Signed-off-by: Rasesh Mody
Signed-off-by: David S. Miller -
Change Details:
- Remove unused APIs and code cleanupSigned-off-by: Debashis Dutt
Signed-off-by: Rasesh Mody
Signed-off-by: David S. Miller -
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 cleanupSigned-off-by: Debashis Dutt
Signed-off-by: Rasesh Mody
Signed-off-by: David S. Miller -
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 -
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 calledSigned-off-by: Debashis Dutt
Signed-off-by: Rasesh Mody
Signed-off-by: David S. Miller -
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 -
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 -
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 routineSigned-off-by: Debashis Dutt
Signed-off-by: Rasesh Mody
Signed-off-by: David S. Miller
25 Dec, 2010
22 commits
-
The X540 introduces a new Virtual Function device ID so that the X540
VF device can be distinguished from the 82599 VF device. The X540 VF
device will have additional capability over the 82599 VF device so it
is necessary to be able to discern the difference.Signed-off-by: Greg Rose
Signed-off-by: Jeff Kirsher -
Add support for the anti-spoofing feature in the HW. Packets from
VF devices with spoofed MAC addresses or VLAN tags will be blocked
and a counter incremented. During the watchdog timer the spoofed
packet dropped counter is read and if it is non-zero then a warning
message is displayed on the host VMM's console.Signed-off-by: Greg Rose
Signed-off-by: Jeff Kirsher -
Add X540 specific feature support to X540
Signed-off-by: Greg Rose
Signed-off-by: Jeff Kirsher -
Print warnings to the system log when the VF attempts to override
MAC/VLAN settings that were configured by the VMM Host administrator
using the ip link set commands.Signed-off-by: Greg Rose
Signed-off-by: Jeff Kirsher -
Add support to igbvf for the new i350 virtual function device.
Signed-off-by: Mitch Williams
Signed-off-by: Jeff Kirsher -
This change forces the link down when a mailbox timeout has occurred.
Previously it was possible for a mailbox timeout to occur but for the
interface to stay up. The problem with this was that it became possible
for an interface to stay up and miss multiple requests resulting in a
possible issue since the interface will be running in an unknown state.Signed-off-by: Alexander Duyck
Signed-off-by: Jeff Kirsher -
Add support for the anti-spoofing feature in the HW. Packets from
VF devices with spoofed MAC addresses or VLAN tags will be blocked
and an event generated. When the watchdog task runs it will call a
function to check if any spoof events occurred. If an event was
detected then a warning message is dumped to the system log.Signed-off-by: Greg Rose
Signed-off-by: Jeff Kirsher -
This patch does the following:
1. Changes the existing supported device id's so now DH89xxCC is not supported when EEPROM is not read.
2. Adds two more device ids for DH89xxCC in backplane mode and SFP.
3. Driver now initializes previously possibly uninitialized value in igb_reset_mdicnfg_82580().Signed-off-by: Joseph Gasparakis
Signed-off-by: Jeff Kirsher -
Print a warning message to the system log when the VF attempts to
override administratively set MAC/VLAN configuration.Signed-off-by: Greg Rose
Signed-off-by: Jeff Kirsher -
The vf flags were being overwritten causing the flag that indicates
that the PF has set the VF MAC address to get cleared. This would
allow the VF to override the MAC address assigned by the Host VMM
using the ip link set command.Signed-off-by: Greg Rose
Signed-off-by: Jeff Kirsher -
WARNING: braces {} are not necessary for any arm of this statement
WARNING: braces {} are not necessary for single statement blocksSigned-off-by: Bruce Allan
Tested-by: Emil Tantilov
Signed-off-by: Jeff Kirsher -
ERROR: that open brace { should be on the previous line
Signed-off-by: Bruce Allan
Tested-by: Emil Tantilov
Signed-off-by: Jeff Kirsher -
ERROR: trailing statements should be on next line
Signed-off-by: Bruce Allan
Tested-by: Emil Tantilov
Signed-off-by: Jeff Kirsher -
ERROR: Macros with complex values should be enclosed in parenthesis
Signed-off-by: Bruce Allan
Tested-by: Emil Tantilov
Signed-off-by: Jeff Kirsher -
- Update the Intel Wired LAN documentation with the latest
URL for ethtool.- replace "Ethtool" with "ethtool"
Signed-off-by: Jeff Kirsher
Tested-by: Emil Tantilov -
* 'merge' of git://git.secretlab.ca/git/linux-2.6:
spi/mpc52xx-spi: fix annotation for remove()-pointer
spi/fsl_espi: fix wrong setting of the address in the command buffer
spi/fsl_espi: change the read behaviour of the SPIRF
of/i2c: Fix request module by alias
powerpc/mpc5200: include fs.h in mpc52xx_gpt.c -
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
libata: issue DIPM enable commands with LPM state updated
libata: no special completion processing for EH commands
pata_mpc52xx: driver needs BMDMA
pata_cs5536: Add support for non-X86_32 platforms
libata-sff: fix HSM_ST_ERR handling in __ata_sff_port_intr() -
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
percpu: print out alloc information with KERN_DEBUG instead of KERN_INFO
kthread_work: make lockdep happy -
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
[SCSI] fix up documentation for change in ->queuecommand to lockless calling
[SCSI] bfa: rename log_level to bfa_log_level -
Low level drivers may behave differently depending on the current
link->lpm_policy. During ata_eh_set_lpm(), DIPM enable commands are
issued after the successful completion of ap->ops->set_lpm(), which
means that the controller is already in the target state. This causes
DIPM enable commands to be processed with mismatching controller power
state and link->lpm_policy value.In ahci, link->lpm_policy is used to ignore certain PHY events if LPM
is enabled; however, as DIPM commands are issued with stale
link->lpm_policy, they sometimes end up triggering these conditions
and get aborted leading to LPM configuration failure.Fix it by updating link->lpm_policy before issuing DIPM enable
commands.Signed-off-by: Tejun Heo
Reported-by: Kyle McMartin
Cc: stable@kernel.org
Signed-off-by: Jeff Garzik -
ata_qc_complete() contains special handling for certain commands. For
example, it schedules EH for device revalidation after certain
configurations are changed. These shouldn't be applied to EH
commands but they were.In most cases, it doesn't cause an actual problem because EH doesn't
issue any command which would trigger special handling; however, ACPI
can issue such commands via _GTF which can cause weird interactions.Restructure ata_qc_complete() such that EH commands are always passed
on to __ata_qc_complete().stable: Please apply to -stable only after 2.6.38 is released.
Signed-off-by: Tejun Heo
Reported-by: Kyle McMartin
Cc: stable@kernel.org
Signed-off-by: Jeff Garzik -
Found by this build-error if BMDMA is disabled:
drivers/ata/pata_mpc52xx.c: In function 'mpc52xx_ata_init_one':
drivers/ata/pata_mpc52xx.c:662: error: 'ata_bmdma_interrupt' undeclared (first use in this function)
...Move the Kconfig entry to the proper location as needed since
9a7780c9acb821fe1c2b6fc53f74cc2556ff5364 (libata-sff: make BMDMA optional)Signed-off-by: Wolfram Sang
Signed-off-by: Jeff Garzik