aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnjali Singhai Jain <anjali.singhai@intel.com>2014-02-11 03:24:11 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-03-14 19:29:15 -0400
commit77e29bc6fc814a2283c9dda07d24f2efb53d585c (patch)
tree3909b95a75469821c1b344e271f940fcadb595ba
parent43fddb7576fbd543502b01f0c09a3a4171f7e038 (diff)
i40e/i40evf: Some flow director HW definition fixes
1) Fix a name of the error bit to correctly indicate the error. 2) Added a fd_id field in the 32 byte desc at the place(qw0) where it gets reported in the programming error desc WB. In a normal data desc the fd_id field is reported in qw3. Change-ID: Ide9a24bff7273da5889c36635d629bc3b5212010 Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com> Acked-by: Shannon Nelson <shannon.nelson@intel.com> Signed-off-by: Kevin Scott <kevin.c.scott@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>
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_type.h6
-rw-r--r--drivers/net/ethernet/intel/i40evf/i40e_type.h6
2 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_type.h b/drivers/net/ethernet/intel/i40e/i40e_type.h
index 181a825d3160..5c902f448b1d 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_type.h
+++ b/drivers/net/ethernet/intel/i40e/i40e_type.h
@@ -458,6 +458,10 @@ union i40e_32byte_rx_desc {
458 union { 458 union {
459 __le32 rss; /* RSS Hash */ 459 __le32 rss; /* RSS Hash */
460 __le32 fcoe_param; /* FCoE DDP Context id */ 460 __le32 fcoe_param; /* FCoE DDP Context id */
461 /* Flow director filter id in case of
462 * Programming status desc WB
463 */
464 __le32 fd_id;
461 } hi_dword; 465 } hi_dword;
462 } qword0; 466 } qword0;
463 struct { 467 struct {
@@ -698,7 +702,7 @@ enum i40e_rx_prog_status_desc_prog_id_masks {
698enum i40e_rx_prog_status_desc_error_bits { 702enum i40e_rx_prog_status_desc_error_bits {
699 /* Note: These are predefined bit offsets */ 703 /* Note: These are predefined bit offsets */
700 I40E_RX_PROG_STATUS_DESC_FD_TBL_FULL_SHIFT = 0, 704 I40E_RX_PROG_STATUS_DESC_FD_TBL_FULL_SHIFT = 0,
701 I40E_RX_PROG_STATUS_DESC_NO_FD_QUOTA_SHIFT = 1, 705 I40E_RX_PROG_STATUS_DESC_NO_FD_ENTRY_SHIFT = 1,
702 I40E_RX_PROG_STATUS_DESC_FCOE_TBL_FULL_SHIFT = 2, 706 I40E_RX_PROG_STATUS_DESC_FCOE_TBL_FULL_SHIFT = 2,
703 I40E_RX_PROG_STATUS_DESC_FCOE_CONFLICT_SHIFT = 3 707 I40E_RX_PROG_STATUS_DESC_FCOE_CONFLICT_SHIFT = 3
704}; 708};
diff --git a/drivers/net/ethernet/intel/i40evf/i40e_type.h b/drivers/net/ethernet/intel/i40evf/i40e_type.h
index 092aace2a76c..7189d6f08ddd 100644
--- a/drivers/net/ethernet/intel/i40evf/i40e_type.h
+++ b/drivers/net/ethernet/intel/i40evf/i40e_type.h
@@ -464,6 +464,10 @@ union i40e_32byte_rx_desc {
464 union { 464 union {
465 __le32 rss; /* RSS Hash */ 465 __le32 rss; /* RSS Hash */
466 __le32 fcoe_param; /* FCoE DDP Context id */ 466 __le32 fcoe_param; /* FCoE DDP Context id */
467 /* Flow director filter id in case of
468 * Programming status desc WB
469 */
470 __le32 fd_id;
467 } hi_dword; 471 } hi_dword;
468 } qword0; 472 } qword0;
469 struct { 473 struct {
@@ -704,7 +708,7 @@ enum i40e_rx_prog_status_desc_prog_id_masks {
704enum i40e_rx_prog_status_desc_error_bits { 708enum i40e_rx_prog_status_desc_error_bits {
705 /* Note: These are predefined bit offsets */ 709 /* Note: These are predefined bit offsets */
706 I40E_RX_PROG_STATUS_DESC_FD_TBL_FULL_SHIFT = 0, 710 I40E_RX_PROG_STATUS_DESC_FD_TBL_FULL_SHIFT = 0,
707 I40E_RX_PROG_STATUS_DESC_NO_FD_QUOTA_SHIFT = 1, 711 I40E_RX_PROG_STATUS_DESC_NO_FD_ENTRY_SHIFT = 1,
708 I40E_RX_PROG_STATUS_DESC_FCOE_TBL_FULL_SHIFT = 2, 712 I40E_RX_PROG_STATUS_DESC_FCOE_TBL_FULL_SHIFT = 2,
709 I40E_RX_PROG_STATUS_DESC_FCOE_CONFLICT_SHIFT = 3 713 I40E_RX_PROG_STATUS_DESC_FCOE_CONFLICT_SHIFT = 3
710}; 714};