i40e: Support for NPAR iSCSI partition with DCB
Add parsing and reporting of iSCSI capability for a given device or function. Also add support for iSCSI partition type with DCB in NPAR mode. In this mode it is expected that software would configure both the LAN and iSCSI traffic classes for the iSCSI partition; whereas all the NIC type partitions will use LAN TC (TC0) only. Hence, the patch enables querying of DCB configuration in MFP mode and configures TCs for iSCSI partition type. Though NIC type partitions may not have more than 1 TC enabled for them the port may have multiple TCs enabled and hence I40E_FLAG_DCB_ENABLED will be set/reset on all the partitions based on number of TCs on the port. This is required as in DCB environment it is expected that all traffic will be priority tagged. Change-ID: I8c6e1cfd46c46d8a39c57d9020d9ff8d42ed8a7d Signed-off-by: Neerav Parikh <neerav.parikh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
4fda14ca0f
commit
63d7e5a413
@ -2360,6 +2360,7 @@ i40e_aq_erase_nvm_exit:
|
||||
#define I40E_DEV_FUNC_CAP_VSI 0x17
|
||||
#define I40E_DEV_FUNC_CAP_DCB 0x18
|
||||
#define I40E_DEV_FUNC_CAP_FCOE 0x21
|
||||
#define I40E_DEV_FUNC_CAP_ISCSI 0x22
|
||||
#define I40E_DEV_FUNC_CAP_RSS 0x40
|
||||
#define I40E_DEV_FUNC_CAP_RX_QUEUES 0x41
|
||||
#define I40E_DEV_FUNC_CAP_TX_QUEUES 0x42
|
||||
@ -2459,6 +2460,10 @@ static void i40e_parse_discover_capabilities(struct i40e_hw *hw, void *buff,
|
||||
if (number == 1)
|
||||
p->fcoe = true;
|
||||
break;
|
||||
case I40E_DEV_FUNC_CAP_ISCSI:
|
||||
if (number == 1)
|
||||
p->iscsi = true;
|
||||
break;
|
||||
case I40E_DEV_FUNC_CAP_RSS:
|
||||
p->rss = true;
|
||||
p->rss_table_size = number;
|
||||
|
Reference in New Issue
Block a user