mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-06 05:45:20 +07:00
i40e: update error message when trying to add invalid filters
Re-word the error message displayed when adding a filter with an invalid flow type. Additionally, report a distinct error message when the IPv4 protocol is at fault. Change-ID: Iba3d85b87f8d383c97c8bdd180df34a6adf3ee67 Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
004eb614c4
commit
a346fb836c
@ -533,14 +533,15 @@ int i40e_add_del_fdir(struct i40e_vsi *vsi,
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* We cannot support masking based on protocol */
|
/* We cannot support masking based on protocol */
|
||||||
goto unsupported_flow;
|
dev_info(&pf->pdev->dev, "Unsupported IPv4 protocol 0x%02x\n",
|
||||||
|
input->ip4_proto);
|
||||||
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
unsupported_flow:
|
dev_info(&pf->pdev->dev, "Unsupported flow type 0x%02x\n",
|
||||||
dev_info(&pf->pdev->dev, "Could not specify spec type %d\n",
|
|
||||||
input->flow_type);
|
input->flow_type);
|
||||||
ret = -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The buffer allocated here will be normally be freed by
|
/* The buffer allocated here will be normally be freed by
|
||||||
|
Loading…
Reference in New Issue
Block a user