File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
drivers/net/ethernet/marvell/octeontx2/nic Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -396,8 +396,12 @@ static int otx2_tc_parse_actions(struct otx2_nic *nic,
396396 return - EOPNOTSUPP ;
397397 }
398398 req -> vf = priv -> pcifunc & RVU_PFVF_FUNC_MASK ;
399- req -> op = NIX_RX_ACTION_DEFAULT ;
400- return 0 ;
399+
400+ /* if op is already set; avoid overwriting the same */
401+ if (!req -> op )
402+ req -> op = NIX_RX_ACTION_DEFAULT ;
403+ break ;
404+
401405 case FLOW_ACTION_VLAN_POP :
402406 req -> vtag0_valid = true;
403407 /* use RX_VTAG_TYPE7 which is initialized to strip vlan tag */
@@ -433,6 +437,12 @@ static int otx2_tc_parse_actions(struct otx2_nic *nic,
433437 case FLOW_ACTION_MARK :
434438 mark = act -> mark ;
435439 break ;
440+
441+ case FLOW_ACTION_RX_QUEUE_MAPPING :
442+ req -> op = NIX_RX_ACTIONOP_UCAST ;
443+ req -> index = act -> rx_queue ;
444+ break ;
445+
436446 default :
437447 return - EOPNOTSUPP ;
438448 }
You can’t perform that action at this time.
0 commit comments