From c0bd1181a8995e1c6a50f634c5bde0b3ca3d5acd Mon Sep 17 00:00:00 2001 From: Rasesh Mody Date: Wed, 4 Jan 2017 23:03:53 -0800 Subject: [PATCH] net/qede: remove unused struct member Remove b_hw_channel from struct ecore_dev. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h | 2 -- drivers/net/qede/base/ecore_vf.c | 10 ---------- drivers/net/qede/qede_main.c | 5 ++--- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/net/qede/base/ecore.h b/drivers/net/qede/base/ecore.h index f8307782cb..71ce24ba7d 100644 --- a/drivers/net/qede/base/ecore.h +++ b/drivers/net/qede/base/ecore.h @@ -711,8 +711,6 @@ struct ecore_dev { /* SRIOV */ struct ecore_hw_sriov_info *p_iov_info; #define IS_ECORE_SRIOV(p_dev) (!!(p_dev)->p_iov_info) - bool b_hw_channel; - unsigned long tunn_mode; bool b_is_vf; diff --git a/drivers/net/qede/base/ecore_vf.c b/drivers/net/qede/base/ecore_vf.c index 4c44ee7ab9..17ba4d1087 100644 --- a/drivers/net/qede/base/ecore_vf.c +++ b/drivers/net/qede/base/ecore_vf.c @@ -83,16 +83,6 @@ ecore_send_msg2pf(struct ecore_hwfn *p_hwfn, /* need to add the END TLV to the message size */ resp_size += sizeof(struct channel_list_end_tlv); - if (!p_hwfn->p_dev->b_hw_channel) { - rc = OSAL_VF_SEND_MSG2PF(p_hwfn->p_dev, - done, - p_req, - p_hwfn->vf_iov_info->pf2vf_reply, - sizeof(union vfpf_tlvs), resp_size); - /* TODO - no prints about message ? */ - return rc; - } - /* Send TLVs over HW channel */ OSAL_MEMSET(&trigger, 0, sizeof(struct ustorm_trigger_vf_zone)); trigger.vf_pf_msg_valid = 1; diff --git a/drivers/net/qede/qede_main.c b/drivers/net/qede/qede_main.c index 45773d84ab..e827200a92 100644 --- a/drivers/net/qede/qede_main.c +++ b/drivers/net/qede/qede_main.c @@ -51,10 +51,9 @@ qed_probe(struct ecore_dev *edev, struct rte_pci_device *pci_dev, ecore_init_struct(edev); qdev->protocol = protocol; - if (is_vf) { + if (is_vf) edev->b_is_vf = true; - edev->b_hw_channel = true; /* @DPDK */ - } + ecore_init_dp(edev, dp_module, dp_level, NULL); qed_init_pci(edev, pci_dev); -- 2.20.1