RE: [PATCH 16/25] mlx4_core: boot sriov

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Liran Liss
Date: Thursday, November 5, 2009 - 9:21 am

I was also thinking about backports to older kernels without sriov at
all, which will probably be in our VMs in the near future.
For these kernels, we still want to the code to operate in slave mode...

Anyway, we can push the pci_enable_sriov() stub to the OFED backport
system as well, so I am fine.
10x,
--Liran


-----Original Message-----
From: Roland Dreier [mailto:rdreier@cisco.com] 
Sent: Thursday, November 05, 2009 5:57 PM
To: Liran Liss
Cc: Yevgeny Petrilin; linux-rdma@vger.kernel.org;
netdev@vger.kernel.org; Tziporet Koren
Subject: Re: [PATCH 16/25] mlx4_core: boot sriov


 > LL: I think that this won't pass -Wall when compiling against a
kernel  > with sriov compiled out.

Why not?  The sriov code provides stubs like:

static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) {
	return -ENODEV;
}

if CONFIG_PCI_IOV is not enabled.

 - R.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 16/25] mlx4_core: boot sriov, Yevgeny Petrilin, (Wed Nov 4, 8:31 am)
Re: [PATCH 16/25] mlx4_core: boot sriov, Roland Dreier, (Wed Nov 4, 12:55 pm)
RE: [PATCH 16/25] mlx4_core: boot sriov, Liran Liss, (Thu Nov 5, 6:26 am)
Re: [PATCH 16/25] mlx4_core: boot sriov, Roland Dreier, (Thu Nov 5, 8:57 am)
RE: [PATCH 16/25] mlx4_core: boot sriov, Liran Liss, (Thu Nov 5, 9:21 am)