From: Helin Zhang Date: Sun, 26 Jun 2016 15:46:18 +0000 (+0800) Subject: net/i40e: remove unsupported VF command X-Git-Tag: spdx-start~6348 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cfcf046653fa8875d2755489bf3b566207771856;p=dpdk.git net/i40e: remove unsupported VF command Delete 'case I40E_VIRTCHNL_OP_FCOE', as it is not necessary. The default case reports on all unsupported commands included this one. This also prevents warnings about a missing "break" at the end of the "case" block. Coverity issue: 13265 Fixes: 4861cde46116 ("i40e: new poll mode driver") Signed-off-by: Helin Zhang Acked-by: John McNamara --- diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c index ed1831f4f6..af94674824 100644 --- a/drivers/net/i40e/i40e_pf.c +++ b/drivers/net/i40e/i40e_pf.c @@ -997,11 +997,9 @@ i40e_pf_host_handle_vf_msg(struct rte_eth_dev *dev, PMD_DRV_LOG(INFO, "OP_CFG_VLAN_PVID received"); i40e_pf_host_process_cmd_cfg_pvid(vf, msg, msglen); break; - /* Don't add command supported below, which will - * return an error code. + /* Don't add command supported below, which will + * return an error code. */ - case I40E_VIRTCHNL_OP_FCOE: - PMD_DRV_LOG(ERR, "OP_FCOE received, not supported"); default: PMD_DRV_LOG(ERR, "%u received, not supported", opcode); i40e_pf_host_send_msg_to_vf(vf, opcode, I40E_ERR_PARAM,