This patch allows VF to get/update/reset pctype mapping info. Signed-off-by: Beilei Xing <beilei.x...@intel.com> --- v2 changes: - Allow VF update/reset pctype mapping.
drivers/net/i40e/rte_pmd_i40e.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e/rte_pmd_i40e.c index 7ae78e4..b3bdc61 100644 --- a/drivers/net/i40e/rte_pmd_i40e.c +++ b/drivers/net/i40e/rte_pmd_i40e.c @@ -2405,8 +2405,6 @@ int rte_pmd_i40e_flow_type_mapping_reset(uint16_t port) dev = &rte_eth_devices[port]; - if (!is_i40e_supported(dev)) - return -ENOTSUP; i40e_set_default_pctype_table(dev); @@ -2425,9 +2423,6 @@ int rte_pmd_i40e_flow_type_mapping_get( dev = &rte_eth_devices[port]; - if (!is_i40e_supported(dev)) - return -ENOTSUP; - ad = I40E_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private); for (i = 0; i < I40E_FLOW_TYPE_MAX; i++) { @@ -2453,9 +2448,6 @@ rte_pmd_i40e_flow_type_mapping_update( dev = &rte_eth_devices[port]; - if (!is_i40e_supported(dev)) - return -ENOTSUP; - if (count > I40E_FLOW_TYPE_MAX) return -EINVAL; -- 2.5.5