Skip to content

Sync up with Linus #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 111 commits into from
Mar 20, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
cd3bafc
xfrm6: Fix a offset value for network header in _decode_session6
thehajime Feb 4, 2015
044a832
xfrm: Fix local error reporting crash with interfamily tunnels
klassert Jan 12, 2015
ac37e25
xfrm: release dst_orig in case of error in xfrm_lookup()
Feb 11, 2015
54331db
iwlwifi: mvm: call ieee80211_scan_completed() even if scan abort fails
lucacoelho Feb 4, 2015
57bff14
iwlwifi: mvm: rs: fix BT Coex check to look at the correct ant
Feb 2, 2015
e7d3aba
iwlwifi: mvm: don't try to stop scans that are not running anymore
lucacoelho Feb 6, 2015
833d9b9
iwlwifi: mvm: Fix ROC removal
aotchere Feb 15, 2015
c9faccc
iwlwifi: mvm: disable beamformer unless FW supports it
Feb 23, 2015
540623c
iwlwifi: fix max_ht_ampdu_exponent for older devices
egrumbach Feb 23, 2015
0d27836
fuse: notify: don't move pages
Feb 26, 2015
aa991b3
fuse: set stolen page uptodate
Feb 26, 2015
cb26285
arch: sparc: kernel: traps_64.c: Remove some unused functions
Dec 20, 2014
8f765b8
arch: sparc: kernel: starfire.c: Remove unused function
Dec 20, 2014
94ab599
sparc64: fatal trap should stop all cpus
kleikamp Jan 7, 2015
9555b47
sparc: io_64.h: Replace io function-link macros
ribalda Jan 29, 2015
d0c2211
mac80211: drop unencrypted frames in mesh fwding
bcopeland Mar 2, 2015
aa75ebc
mac80211: disable u-APSD queues by default
Feb 10, 2015
0ff66cf
b43: fix support for 5 GHz only BCM43228 model
rmilecki Mar 2, 2015
c8f0345
rtlwifi: Improve handling of IPv6 packets
lwfinger Feb 24, 2015
53eb251
sparc: semtimedop() unreachable due to comparison error
Mar 3, 2015
40eeb11
Revert "pinctrl: consumer: use correct retval for placeholder functions"
linusw Mar 5, 2015
4cd4b50
iwlwifi: mvm: BT Coex - fix a NULL pointer exception
egrumbach Mar 5, 2015
f8323b6
pinctrl: baytrail: Relax GPIO request rules
westeri Feb 23, 2015
95f0972
pinctrl: baytrail: Clear interrupt triggering from pins that are in G…
westeri Feb 23, 2015
31e4329
pinctrl: baytrail: Rework interrupt handling
westeri Feb 23, 2015
fcc18de
pinctrl: baytrail: Save pin context over system sleep
westeri Feb 23, 2015
eb9f75d
Merge tag 'iwlwifi-for-kalle-2015-03-05' of https://git.kernel.org/pu…
Mar 6, 2015
3f16153
brcmfmac: Perform bound checking on vendor command buffer
Mar 6, 2015
8b04bab
Input: synaptics - split synaptics_resolution(), query first
bartsch Mar 9, 2015
9aff659
Input: synaptics - log queried and quirked dimension values
bartsch Mar 9, 2015
ac09793
Input: synaptics - query min dimensions for fw v8.1
bartsch Mar 9, 2015
b05f4d1
Input: synaptics - remove obsolete min/max quirk for X240
bartsch Mar 9, 2015
5b3089d
Input: synaptics - support min/max board id in min_max_pnpid_table
Mar 9, 2015
02e0749
Input: synaptics - skip quirks when post-2013 dimensions
bentiss Mar 9, 2015
dc5465d
Input: synaptics - fix middle button on Lenovo 2015 products
dtor Mar 9, 2015
ebc8084
Input: synaptics - handle spurious release of trackstick buttons
bentiss Mar 9, 2015
b57a712
Input: synaptics - do not retrieve the board id on old firmwares
bentiss Mar 9, 2015
06aa374
Input: synaptics - retrieve the extended capabilities in query $10
bentiss Mar 9, 2015
3adde1f
Input: synaptics - remove TOPBUTTONPAD property for Lenovos 2015
bentiss Mar 9, 2015
cdd9dc1
Input: synaptics - re-route tracksticks buttons on the Lenovo 2015 se…
bentiss Mar 9, 2015
860e6f7
Input: synaptics - remove X1 Carbon 3rd gen from the topbuttonpad list
bentiss Mar 9, 2015
8f004f3
Input: synaptics - remove X250 from the topbuttonpad list
bentiss Mar 9, 2015
5778d39
net_sched: fix struct tc_u_hnode layout in u32
congwang Mar 10, 2015
4736edc
ibmveth: enable interrupts after napi_complete()
yongbae Mar 10, 2015
5a3dba7
net: WIZnet drivers: enable interrupts after napi_complete()
yongbae Mar 10, 2015
549e783
pinctrl: update direction_output function of cherryview driver
qipengzha Mar 3, 2015
af5cbc9
net: fec: fix receive VLAN CTAG HW acceleration issue
Mar 10, 2015
e3d5073
cxgb4: fix coccinelle warnings
Mar 10, 2015
3f39d62
Merge tag 'wireless-drivers-for-davem-2015-03-10' of git://git.kernel…
davem330 Mar 10, 2015
7768eed
net: add comment for sock_efree() usage
hartkopp Mar 10, 2015
4363890
net: Handle unregister properly when netdev namespace change fails.
davem330 Mar 11, 2015
366c1bd
MAINTAINERS: Update my email address
Mar 11, 2015
9949afa
tcp: fix tcp_cong_avoid_ai() credit accumulation bug with decreases in w
nealcardwell Mar 10, 2015
d578e18
tcp: restore 1.5x per RTT limit to CUBIC cwnd growth in congestion av…
nealcardwell Mar 10, 2015
b1cb59c
net: sysctl_net_core: check SNDBUF and RCVBUF for min length
akodanev Mar 11, 2015
c8a4d29
xen-netback: notify immediately after pushing Tx response.
Mar 11, 2015
c29390c
xps: must clear sender_cpu before forwarding
edumazet Mar 12, 2015
3a8dd97
sock: fix possible NULL sk dereference in __skb_tstamp_tx
wdebruij Mar 11, 2015
f862e07
rds: avoid potential stack overflow
arndb Mar 11, 2015
ab3971b
virtio-net: correctly delete napi hash
jasowang Mar 12, 2015
b57578b
tulip_core.c : out-of-bounds check.
AmeenAli Mar 13, 2015
40fb70f
vxlan: fix wrong usage of VXLAN_VID_MASK
akodanev Mar 13, 2015
a2fe37b
Revert "net: fec: fix the warning found by dma debug"
Mar 13, 2015
c8e2c80
inet_diag: fix possible overflow in inet_diag_dump_one_icsk()
edumazet Mar 13, 2015
963a822
net: can: Enable xilinx driver for ARM64
Mar 9, 2015
a9dc960
can: kvaser_usb: Fix tx queue start/stop race conditions
Mar 14, 2015
07c2171
Merge tag 'linux-can-fixes-for-4.0-20150314' of git://git.kernel.org/…
davem330 Mar 14, 2015
4c906c2
bridge: reset bridge mtu after deleting an interface
venkatxvenkatsubra Mar 13, 2015
3eeff77
caif: fix MSG_OOB test in caif_seqpkt_recvmsg()
Mar 14, 2015
7d985ed
rxrpc: bogus MSG_PEEK test in rxrpc_recvmsg()
Mar 14, 2015
c105e86
nios2: Remove ucontext.h from exported arch headers
tklauser Mar 13, 2015
10640d3
isdn: icn: use strlcpy() when parsing setup options
Mar 15, 2015
6347e2a
nios2: mm: do not invoke OOM killer on kernel fault OOM
Mar 16, 2015
0f611d2
mac80211: count interfaces correctly for combination checks
aotchere Mar 12, 2015
70a3fd6
mac80211: ask for ECSA IE to be considered for beacon parse CRC
jmberg-intel Mar 12, 2015
496fcc2
nl80211: ignore HT/VHT capabilities without QoS/WMM
jmberg-intel Mar 12, 2015
f84eaa1
mac80211: ignore CSA to same channel
jmberg-intel Mar 12, 2015
6067fe5
Merge branch 'synaptics' into for-linus
dtor Mar 16, 2015
09d042a
Revert "Input: synaptics - use dmax in input_mt_assign_slots"
dtor Mar 16, 2015
ca00942
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
davem330 Mar 16, 2015
48b810d
Merge tag 'mac80211-for-davem-2015-03-16' of git://git.kernel.org/pub…
davem330 Mar 16, 2015
a8e0c24
bnx2x: fix encapsulation features on 57710/57711
michich Mar 16, 2015
ad41faa
netdevice.h: fix ndo_bridge_* comments
NicolasDichtel Mar 17, 2015
3735556
ip6_tunnel: fix error code when tunnel exists
NicolasDichtel Mar 16, 2015
cb7cf8a
inet: Clean up inet_csk_wait_for_connect() vs. might_sleep()
edumazet Mar 16, 2015
8d7d9cc
Revert "smc91x: retrieve IRQ and trigger flags in a modern way"
rjarzmik Feb 12, 2015
bd87337
pinctrl: at91: move lock/unlock_as_irq calls into request/release
Feb 8, 2015
ced585c
act_bpf: allow non-default TC_ACT opcodes as BPF exec outcome
borkmann Mar 17, 2015
bead55e
ovl: print error message for invalid mount options
Jan 15, 2015
6be4506
ovl: check lowerdir amount for non-upper mount
Jan 15, 2015
71cbad7
ovl: upper fs should not be R/O
Jan 15, 2015
ef6d24c
pinctrl: sun4i: GPIOs configured as irq must be set to input before r…
jwrdegoede Mar 8, 2015
217e8b1
IB/mlx4: Verify net device validity on port change event
monis410 Mar 18, 2015
a16f356
net/mlx4_en: Fix off-by-one in ethtool statistics display
Mar 18, 2015
61a3855
IB/mlx4: Saturate RoCE port PMA counters in case of overflow
majdmellanox Mar 18, 2015
39de961
net/mlx4_en: Set statistics bitmap at port init
Mar 18, 2015
2fc800f
Merge branch 'mlx4-net'
davem330 Mar 18, 2015
3c08158
sparc: Fix /proc/kcore
davem330 Mar 19, 2015
8d006e0
Revert "net: cx82310_eth: use common match macro"
Mar 18, 2015
8421596
ide_tape: convert jiffies with jiffies_to_msecs
Mar 3, 2015
6b7a783
mmc: pwrseq_simple: fix error path in mmc_pwrseq_simple_alloc
neilbrown Feb 21, 2015
94e4fe2
fuse: explicitly set /dev/fuse file's private_data
tomvanbraeckel Jan 12, 2015
47226fe
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
torvalds Mar 19, 2015
22283c8
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
torvalds Mar 19, 2015
a93fc15
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide
torvalds Mar 19, 2015
18eda52
Merge tag 'nios2-fixes-v4.0-rc5' of git://git.rocketboards.org/linux-…
torvalds Mar 19, 2015
01d62ee
Merge tag 'pinctrl-v4.0-2' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Mar 19, 2015
32dafb9
Merge tag 'mmc-v4.0-rc4' of git://git.linaro.org/people/ulf.hansson/mmc
torvalds Mar 19, 2015
e409ac3
Merge branch 'overlayfs-next' of git://git.kernel.org/pub/scm/linux/k…
torvalds Mar 19, 2015
1e744c9
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Mar 19, 2015
b314aca
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Mar 19, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ S: Maintained
F: drivers/net/ethernet/atheros/

ATM
M: Chas Williams <chas@cmf.nrl.navy.mil>
M: Chas Williams <3chas3@gmail.com>
L: linux-atm-general@lists.sourceforge.net (moderated for non-subscribers)
L: netdev@vger.kernel.org
W: http://linux-atm.sourceforge.net
Expand Down
1 change: 0 additions & 1 deletion arch/nios2/include/uapi/asm/Kbuild
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include include/uapi/asm-generic/Kbuild.asm

header-y += elf.h
header-y += ucontext.h

generic-y += ucontext.h
6 changes: 0 additions & 6 deletions arch/nios2/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long cause,
break;
}

survive:
/*
* If for any reason at all we couldn't handle the fault,
* make sure we exit gracefully rather than endlessly redo
Expand Down Expand Up @@ -220,11 +219,6 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long cause,
*/
out_of_memory:
up_read(&mm->mmap_sem);
if (is_global_init(tsk)) {
yield();
down_read(&mm->mmap_sem);
goto survive;
}
if (!user_mode(regs))
goto no_context;
pagefault_out_of_memory();
Expand Down
3 changes: 3 additions & 0 deletions arch/sparc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ config ARCH_DEFCONFIG
default "arch/sparc/configs/sparc32_defconfig" if SPARC32
default "arch/sparc/configs/sparc64_defconfig" if SPARC64

config ARCH_PROC_KCORE_TEXT
def_bool y

config IOMMU_HELPER
bool
default y if SPARC64
Expand Down
20 changes: 10 additions & 10 deletions arch/sparc/include/asm/io_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,16 +407,16 @@ static inline void iounmap(volatile void __iomem *addr)
{
}

#define ioread8(X) readb(X)
#define ioread16(X) readw(X)
#define ioread16be(X) __raw_readw(X)
#define ioread32(X) readl(X)
#define ioread32be(X) __raw_readl(X)
#define iowrite8(val,X) writeb(val,X)
#define iowrite16(val,X) writew(val,X)
#define iowrite16be(val,X) __raw_writew(val,X)
#define iowrite32(val,X) writel(val,X)
#define iowrite32be(val,X) __raw_writel(val,X)
#define ioread8 readb
#define ioread16 readw
#define ioread16be __raw_readw
#define ioread32 readl
#define ioread32be __raw_readl
#define iowrite8 writeb
#define iowrite16 writew
#define iowrite16be __raw_writew
#define iowrite32 writel
#define iowrite32be __raw_writel

/* Create a virtual mapping cookie for an IO port range */
void __iomem *ioport_map(unsigned long port, unsigned int nr);
Expand Down
1 change: 0 additions & 1 deletion arch/sparc/include/asm/starfire.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
extern int this_is_starfire;

void check_if_starfire(void);
int starfire_hard_smp_processor_id(void);
void starfire_hookup(int);
unsigned int starfire_translate(unsigned long imap, unsigned int upaid);

Expand Down
4 changes: 0 additions & 4 deletions arch/sparc/kernel/entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,7 @@ void sun4v_do_mna(struct pt_regs *regs,
void do_privop(struct pt_regs *regs);
void do_privact(struct pt_regs *regs);
void do_cee(struct pt_regs *regs);
void do_cee_tl1(struct pt_regs *regs);
void do_dae_tl1(struct pt_regs *regs);
void do_iae_tl1(struct pt_regs *regs);
void do_div0_tl1(struct pt_regs *regs);
void do_fpdis_tl1(struct pt_regs *regs);
void do_fpieee_tl1(struct pt_regs *regs);
void do_fpother_tl1(struct pt_regs *regs);
void do_ill_tl1(struct pt_regs *regs);
Expand Down
27 changes: 24 additions & 3 deletions arch/sparc/kernel/smp_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1406,11 +1406,32 @@ void __irq_entry smp_receive_signal_client(int irq, struct pt_regs *regs)
scheduler_ipi();
}

/* This is a nop because we capture all other cpus
* anyways when making the PROM active.
*/
static void stop_this_cpu(void *dummy)
{
prom_stopself();
}

void smp_send_stop(void)
{
int cpu;

if (tlb_type == hypervisor) {
for_each_online_cpu(cpu) {
if (cpu == smp_processor_id())
continue;
#ifdef CONFIG_SUN_LDOMS
if (ldom_domaining_enabled) {
unsigned long hv_err;
hv_err = sun4v_cpu_stop(cpu);
if (hv_err)
printk(KERN_ERR "sun4v_cpu_stop() "
"failed err=%lu\n", hv_err);
} else
#endif
prom_stopcpu_cpuid(cpu);
}
} else
smp_call_function(stop_this_cpu, NULL, 0);
}

/**
Expand Down
5 changes: 0 additions & 5 deletions arch/sparc/kernel/starfire.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ void check_if_starfire(void)
this_is_starfire = 1;
}

int starfire_hard_smp_processor_id(void)
{
return upa_readl(0x1fff40000d0UL);
}

/*
* Each Starfire board has 32 registers which perform translation
* and delivery of traditional interrupt packets into the extended
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/sys_sparc_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second
long err;

/* No need for backward compatibility. We can start fresh... */
if (call <= SEMCTL) {
if (call <= SEMTIMEDOP) {
switch (call) {
case SEMOP:
err = sys_semtimedop(first, ptr,
Expand Down
30 changes: 2 additions & 28 deletions arch/sparc/kernel/traps_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -2427,6 +2427,8 @@ void __noreturn die_if_kernel(char *str, struct pt_regs *regs)
}
user_instruction_dump ((unsigned int __user *) regs->tpc);
}
if (panic_on_oops)
panic("Fatal exception");
if (regs->tstate & TSTATE_PRIV)
do_exit(SIGKILL);
do_exit(SIGSEGV);
Expand Down Expand Up @@ -2564,41 +2566,13 @@ void do_cee(struct pt_regs *regs)
die_if_kernel("TL0: Cache Error Exception", regs);
}

void do_cee_tl1(struct pt_regs *regs)
{
exception_enter();
dump_tl1_traplog((struct tl1_traplog *)(regs + 1));
die_if_kernel("TL1: Cache Error Exception", regs);
}

void do_dae_tl1(struct pt_regs *regs)
{
exception_enter();
dump_tl1_traplog((struct tl1_traplog *)(regs + 1));
die_if_kernel("TL1: Data Access Exception", regs);
}

void do_iae_tl1(struct pt_regs *regs)
{
exception_enter();
dump_tl1_traplog((struct tl1_traplog *)(regs + 1));
die_if_kernel("TL1: Instruction Access Exception", regs);
}

void do_div0_tl1(struct pt_regs *regs)
{
exception_enter();
dump_tl1_traplog((struct tl1_traplog *)(regs + 1));
die_if_kernel("TL1: DIV0 Exception", regs);
}

void do_fpdis_tl1(struct pt_regs *regs)
{
exception_enter();
dump_tl1_traplog((struct tl1_traplog *)(regs + 1));
die_if_kernel("TL1: FPU Disabled", regs);
}

void do_fpieee_tl1(struct pt_regs *regs)
{
exception_enter();
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -2820,7 +2820,7 @@ static int __init report_memory(void)

return 0;
}
device_initcall(report_memory);
arch_initcall(report_memory);

#ifdef CONFIG_SMP
#define do_flush_tlb_kernel_range smp_flush_tlb_kernel_range
Expand Down
4 changes: 2 additions & 2 deletions drivers/ide/ide-tape.c
Original file line number Diff line number Diff line change
Expand Up @@ -1793,11 +1793,11 @@ static void idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor)
tape->best_dsc_rw_freq = clamp_t(unsigned long, t, IDETAPE_DSC_RW_MIN,
IDETAPE_DSC_RW_MAX);
printk(KERN_INFO "ide-tape: %s <-> %s: %dKBps, %d*%dkB buffer, "
"%lums tDSC%s\n",
"%ums tDSC%s\n",
drive->name, tape->name, *(u16 *)&tape->caps[14],
(*(u16 *)&tape->caps[16] * 512) / tape->buffer_size,
tape->buffer_size / 1024,
tape->best_dsc_rw_freq * 1000 / HZ,
jiffies_to_msecs(tape->best_dsc_rw_freq),
(drive->dev_flags & IDE_DFLAG_USING_DMA) ? ", DMA" : "");

ide_proc_register_driver(drive, tape->driver);
Expand Down
20 changes: 16 additions & 4 deletions drivers/infiniband/hw/mlx4/mad.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ enum {
#define GUID_TBL_BLK_NUM_ENTRIES 8
#define GUID_TBL_BLK_SIZE (GUID_TBL_ENTRY_SIZE * GUID_TBL_BLK_NUM_ENTRIES)

/* Counters should be saturate once they reach their maximum value */
#define ASSIGN_32BIT_COUNTER(counter, value) do {\
if ((value) > U32_MAX) \
counter = cpu_to_be32(U32_MAX); \
else \
counter = cpu_to_be32(value); \
} while (0)

struct mlx4_mad_rcv_buf {
struct ib_grh grh;
u8 payload[256];
Expand Down Expand Up @@ -806,10 +814,14 @@ static int ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
static void edit_counter(struct mlx4_counter *cnt,
struct ib_pma_portcounters *pma_cnt)
{
pma_cnt->port_xmit_data = cpu_to_be32((be64_to_cpu(cnt->tx_bytes)>>2));
pma_cnt->port_rcv_data = cpu_to_be32((be64_to_cpu(cnt->rx_bytes)>>2));
pma_cnt->port_xmit_packets = cpu_to_be32(be64_to_cpu(cnt->tx_frames));
pma_cnt->port_rcv_packets = cpu_to_be32(be64_to_cpu(cnt->rx_frames));
ASSIGN_32BIT_COUNTER(pma_cnt->port_xmit_data,
(be64_to_cpu(cnt->tx_bytes) >> 2));
ASSIGN_32BIT_COUNTER(pma_cnt->port_rcv_data,
(be64_to_cpu(cnt->rx_bytes) >> 2));
ASSIGN_32BIT_COUNTER(pma_cnt->port_xmit_packets,
be64_to_cpu(cnt->tx_frames));
ASSIGN_32BIT_COUNTER(pma_cnt->port_rcv_packets,
be64_to_cpu(cnt->rx_frames));
}

static int iboe_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
Expand Down
6 changes: 5 additions & 1 deletion drivers/infiniband/hw/mlx4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2697,8 +2697,12 @@ static void handle_bonded_port_state_event(struct work_struct *work)
spin_lock_bh(&ibdev->iboe.lock);
for (i = 0; i < MLX4_MAX_PORTS; ++i) {
struct net_device *curr_netdev = ibdev->iboe.netdevs[i];
enum ib_port_state curr_port_state;

enum ib_port_state curr_port_state =
if (!curr_netdev)
continue;

curr_port_state =
(netif_running(curr_netdev) &&
netif_carrier_ok(curr_netdev)) ?
IB_PORT_ACTIVE : IB_PORT_DOWN;
Expand Down
Loading