* [PATCH net-next] bnx2x: Fix compilation when CONFIG_BNX2X_SRIOV is not set
@ 2014-03-26 7:06 Yuval Mintz
2014-03-27 17:27 ` Eric Dumazet
2014-03-27 18:29 ` David Miller
0 siblings, 2 replies; 5+ messages in thread
From: Yuval Mintz @ 2014-03-26 7:06 UTC (permalink / raw)
To: netdev, davem; +Cc: Ariel.Elior, Yuval Mintz
Commit 370d4a26 "bnx2x: Create workqueue for IOV related tasks" breaks bnx2x
compilation when CONFIG_BNX2X_SRIOV is not set - "multiple definition of
`bnx2x_schedule_iov_task'".
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
---
Hi Dave,
Please accept this to net-next as it fixes our latest submission there.
Thanks,
Yuval
---
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
index db73a24..8bf7645 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
@@ -574,7 +574,7 @@ static inline int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs) {retur
static inline void bnx2x_iov_channel_down(struct bnx2x *bp) {}
static inline void bnx2x_iov_task(struct work_struct *work) {}
-void bnx2x_schedule_iov_task(struct bnx2x *bp, enum bnx2x_iov_flag flag) {}
+static inline void bnx2x_schedule_iov_task(struct bnx2x *bp, enum bnx2x_iov_flag flag) {}
#endif /* CONFIG_BNX2X_SRIOV */
#endif /* bnx2x_sriov.h */
--
1.8.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] bnx2x: Fix compilation when CONFIG_BNX2X_SRIOV is not set
2014-03-26 7:06 [PATCH net-next] bnx2x: Fix compilation when CONFIG_BNX2X_SRIOV is not set Yuval Mintz
@ 2014-03-27 17:27 ` Eric Dumazet
2014-03-27 18:29 ` David Miller
1 sibling, 0 replies; 5+ messages in thread
From: Eric Dumazet @ 2014-03-27 17:27 UTC (permalink / raw)
To: Yuval Mintz; +Cc: netdev, davem, Ariel.Elior
On Wed, 2014-03-26 at 09:06 +0200, Yuval Mintz wrote:
> Commit 370d4a26 "bnx2x: Create workqueue for IOV related tasks" breaks bnx2x
> compilation when CONFIG_BNX2X_SRIOV is not set - "multiple definition of
> `bnx2x_schedule_iov_task'".
>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
> ---
> Hi Dave,
>
> Please accept this to net-next as it fixes our latest submission there.
Right I got bitten by this, please David apply ;)
Acked-by: Eric Dumazet <edumazet@google.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] bnx2x: Fix compilation when CONFIG_BNX2X_SRIOV is not set
2014-03-26 7:06 [PATCH net-next] bnx2x: Fix compilation when CONFIG_BNX2X_SRIOV is not set Yuval Mintz
2014-03-27 17:27 ` Eric Dumazet
@ 2014-03-27 18:29 ` David Miller
1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2014-03-27 18:29 UTC (permalink / raw)
To: Yuval.Mintz; +Cc: netdev, Ariel.Elior
From: Yuval Mintz <Yuval.Mintz@qlogic.com>
Date: Wed, 26 Mar 2014 09:06:29 +0200
> Commit 370d4a26 "bnx2x: Create workqueue for IOV related tasks" breaks bnx2x
> compilation when CONFIG_BNX2X_SRIOV is not set - "multiple definition of
> `bnx2x_schedule_iov_task'".
>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH net-next] bnx2x: Fix compilation when CONFIG_BNX2X_SRIOV is not set
@ 2015-07-30 11:30 Yuval Mintz
2015-07-30 16:52 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Yuval Mintz @ 2015-07-30 11:30 UTC (permalink / raw)
To: davem, netdev; +Cc: fengguang.wu, Yuval Mintz, Ariel Elior
Commit 05cc5a39ddb7 ("bnx2x: add vlan filtering offload") has broken
compilation when CONFIG_BNX2X_SRIOV is not set.
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
---
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 2 ++
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index 96ad9ec..31c63aa 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -13091,8 +13091,10 @@ static int bnx2x_init_dev(struct bnx2x *bp, struct pci_dev *pdev,
bp->accept_any_vlan = true;
else
dev->hw_features |= NETIF_F_HW_VLAN_CTAG_FILTER;
+#ifdef CONFIG_BNX2X_SRIOV
} else if (bp->acquire_resp.pfdev_info.pf_cap & PFVF_CAP_VLAN_FILTER) {
dev->hw_features |= NETIF_F_HW_VLAN_CTAG_FILTER;
+#endif
}
dev->features |= dev->hw_features | NETIF_F_HW_VLAN_CTAG_RX;
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
index 01f3643..670a581 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
@@ -551,6 +551,11 @@ int bnx2x_set_vf_link_state(struct net_device *dev, int vf, int link_state);
int bnx2x_vfpf_update_vlan(struct bnx2x *bp, u16 vid, u8 vf_qid, bool add);
#else /* CONFIG_BNX2X_SRIOV */
+#define GET_NUM_VFS_PER_PATH(bp) 0
+#define GET_NUM_VFS_PER_PF(bp) 0
+#define VF_MAC_CREDIT_CNT 0
+#define VF_VLAN_CREDIT_CNT 0
+
static inline void bnx2x_iov_set_queue_sp_obj(struct bnx2x *bp, int vf_cid,
struct bnx2x_queue_sp_obj **q_obj) {}
static inline void bnx2x_vf_handle_flr_event(struct bnx2x *bp) {}
--
1.9.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] bnx2x: Fix compilation when CONFIG_BNX2X_SRIOV is not set
2015-07-30 11:30 Yuval Mintz
@ 2015-07-30 16:52 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2015-07-30 16:52 UTC (permalink / raw)
To: Yuval.Mintz; +Cc: netdev, fengguang.wu, Ariel.Elior
From: Yuval Mintz <Yuval.Mintz@qlogic.com>
Date: Thu, 30 Jul 2015 14:30:29 +0300
> Commit 05cc5a39ddb7 ("bnx2x: add vlan filtering offload") has broken
> compilation when CONFIG_BNX2X_SRIOV is not set.
>
> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
> Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Applied.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-30 16:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-26 7:06 [PATCH net-next] bnx2x: Fix compilation when CONFIG_BNX2X_SRIOV is not set Yuval Mintz
2014-03-27 17:27 ` Eric Dumazet
2014-03-27 18:29 ` David Miller
-- strict thread matches above, loose matches on Subject: below --
2015-07-30 11:30 Yuval Mintz
2015-07-30 16:52 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).