Tony Nguyen says: ==================== 100GbE Intel Wired LAN Driver Updates 2021-11-22 Shiraz Saleem says: Currently E800 devices come up as RoCEv2 devices by default. This series add supports for users to configure iWARP or RoCEv2 functionality per PCI function. devlink parameters is used to realize this and is keyed off similar work in [1]. [1] https://lore.kernel.org/linux-rdma/20210810132424.9129-1-parav@nvidia.com/ ====================
Showing the changes to include (2 of 10 files). Show all
Unified · Split
| @@ -26,6 +26,11 @@ enum iidc_reset_type { · 25 unmodified lines | ||
| 26 | 26 | IIDC_GLOBR, |
| 27 | 27 | }; |
| 28 | 28 | |
| 29 | +enum iidc_rdma_protocol { | |
| 30 | + IIDC_RDMA_PROTOCOL_IWARP = BIT(0), | |
| 31 | + IIDC_RDMA_PROTOCOL_ROCEV2 = BIT(1), | |
| 32 | +}; | |
| 33 | + | |
| 29 | 34 | #define IIDC_MAX_USER_PRIORITY 8 |
| 30 | 35 | |
| 31 | 36 | /* Struct to hold per RDMA Qset info */ |
| @@ -70,8 +75,6 @@ int ice_rdma_request_reset(struct ice_pf *pf, enum iidc_reset_type reset_type); · 38 unmodified lines | ||
| 70 | 75 | int ice_rdma_update_vsi_filter(struct ice_pf *pf, u16 vsi_id, bool enable); |
| 71 | 76 | void ice_get_qos_params(struct ice_pf *pf, struct iidc_qos_params *qos); |
| 72 | 77 | |
| 73 | −#define IIDC_RDMA_ROCE_NAME "roce" | |
| 74 | − | |
| 75 | 78 | /* Structure representing auxiliary driver tailored information about the core |
| 76 | 79 | * PCI dev, each auxiliary driver using the IIDC interface will have an |
| 77 | 80 | * instance of this struct dedicated to it. |
| @@ -485,6 +485,7 @@ enum devlink_param_generic_id { · 484 unmodified lines | ||
| 485 | 485 | DEVLINK_PARAM_GENERIC_ID_ENABLE_ETH, |
| 486 | 486 | DEVLINK_PARAM_GENERIC_ID_ENABLE_RDMA, |
| 487 | 487 | DEVLINK_PARAM_GENERIC_ID_ENABLE_VNET, |
| 488 | + DEVLINK_PARAM_GENERIC_ID_ENABLE_IWARP, | |
| 488 | 489 | |
| 489 | 490 | /* add new param generic ids above here*/ |
| 490 | 491 | __DEVLINK_PARAM_GENERIC_ID_MAX, |
| @@ -534,6 +535,9 @@ enum devlink_param_generic_id { · 43 unmodified lines | ||
| 534 | 535 | #define DEVLINK_PARAM_GENERIC_ENABLE_VNET_NAME "enable_vnet" |
| 535 | 536 | #define DEVLINK_PARAM_GENERIC_ENABLE_VNET_TYPE DEVLINK_PARAM_TYPE_BOOL |
| 536 | 537 | |
| 538 | +#define DEVLINK_PARAM_GENERIC_ENABLE_IWARP_NAME "enable_iwarp" | |
| 539 | +#define DEVLINK_PARAM_GENERIC_ENABLE_IWARP_TYPE DEVLINK_PARAM_TYPE_BOOL | |
| 540 | + | |
| 537 | 541 | #define DEVLINK_PARAM_GENERIC(_id, _cmodes, _get, _set, _validate) \ |
| 538 | 542 | { \ |
| 539 | 543 | .id = DEVLINK_PARAM_GENERIC_ID_##_id, \ |