diff options
author | Anjali Singhai Jain <anjali.singhai@intel.com> | 2014-03-06 04:00:00 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2014-03-28 09:53:59 -0400 |
commit | 35a91fdd52cc3890764ed429d7aed816aa54f65f (patch) | |
tree | f2cb2c5a23baf33d248fe742b37c713ec2673b72 /drivers/net/ethernet/intel | |
parent | 1eaa3840b786ac9294e9ed8e8dc3fdca29dc9091 (diff) |
i40e: Add functionality for FD SB to drop packets
With this change we can drop a flow if we wanted to.
Change-ID: I222b1ae960e61a31965bafe3159a95099e70c7d2
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel')
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 7 |
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; |