ICE_BLK_FD and ICE_BLK_RSS are executing the same code so group the case
statements together instead of duplicating code for each block.
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
return status;
switch (params->blk) {
+ case ICE_BLK_FD:
case ICE_BLK_RSS:
- /* Only header information is provided for RSS configuration.
- * No further processing is needed.
- */
status = ICE_SUCCESS;
break;
case ICE_BLK_ACL:
if (status)
return status;
break;
- case ICE_BLK_FD:
- status = ICE_SUCCESS;
- break;
case ICE_BLK_SW:
default:
return ICE_ERR_NOT_IMPL;
e->priority = prio;
switch (blk) {
+ case ICE_BLK_FD:
case ICE_BLK_RSS:
- /* RSS will add only one entry per VSI per profile */
break;
case ICE_BLK_ACL:
/* ACL will handle the entry management */
if (status)
goto out;
- break;
- case ICE_BLK_FD:
break;
case ICE_BLK_SW:
case ICE_BLK_PE: