aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_ethtool.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index 0461a72b1311..aa123f43fb8e 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
@@ -1513,11 +1513,16 @@ static int i40e_add_fdir_ethtool(struct i40e_vsi *vsi,
1513 1513
1514 input->fd_id = fsp->location; 1514 input->fd_id = fsp->location;
1515 1515
1516 if (fsp->ring_cookie == RX_CLS_FLOW_DISC)
1517 input->dest_ctl = I40E_FILTER_PROGRAM_DESC_DEST_DROP_PACKET;
1518 else
1519 input->dest_ctl =
1520 I40E_FILTER_PROGRAM_DESC_DEST_DIRECT_PACKET_QINDEX;
1521
1516 input->q_index = fsp->ring_cookie; 1522 input->q_index = fsp->ring_cookie;
1517 input->flex_off = 0; 1523 input->flex_off = 0;
1518 input->pctype = 0; 1524 input->pctype = 0;
1519 input->dest_vsi = vsi->id; 1525 input->dest_vsi = vsi->id;
1520 input->dest_ctl = I40E_FILTER_PROGRAM_DESC_DEST_DIRECT_PACKET_QINDEX;
1521 input->fd_status = I40E_FILTER_PROGRAM_DESC_FD_STATUS_FD_ID; 1526 input->fd_status = I40E_FILTER_PROGRAM_DESC_FD_STATUS_FD_ID;
1522 input->cnt_index = 0; 1527 input->cnt_index = 0;
1523 input->flow_type = fsp->flow_type; 1528 input->flow_type = fsp->flow_type;