diff options
| author | Jason Gunthorpe <jgg@mellanox.com> | 2018-08-16 16:13:03 -0400 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-08-16 16:21:29 -0400 |
| commit | 0a3173a5f09bc58a3638ecfd0a80bdbae55e123c (patch) | |
| tree | d6c0bc84863cca54dfbde3b7463e5d49c82af9f1 /include/linux/mlx5 | |
| parent | 92f4e77c85918eab5e5803d7e28ab89a7e6bd3a2 (diff) | |
| parent | 5c60a7389d795e001c8748b458eb76e3a5b6008c (diff) | |
Merge branch 'linus/master' into rdma.git for-next
rdma.git merge resolution for the 4.19 merge window
Conflicts:
drivers/infiniband/core/rdma_core.c
- Use the rdma code and revise with the new spelling for
atomic_fetch_add_unless
drivers/nvme/host/rdma.c
- Replace max_sge with max_send_sge in new blk code
drivers/nvme/target/rdma.c
- Use the blk code and revise to use NULL for ib_post_recv when
appropriate
- Replace max_sge with max_recv_sge in new blk code
net/rds/ib_send.c
- Use the net code and revise to use NULL for ib_post_recv when
appropriate
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/linux/mlx5')
| -rw-r--r-- | include/linux/mlx5/device.h | 13 | ||||
| -rw-r--r-- | include/linux/mlx5/driver.h | 5 | ||||
| -rw-r--r-- | include/linux/mlx5/fs.h | 2 | ||||
| -rw-r--r-- | include/linux/mlx5/mlx5_ifc.h | 13 | ||||
| -rw-r--r-- | include/linux/mlx5/mlx5_ifc_fpga.h | 1 | ||||
| -rw-r--r-- | include/linux/mlx5/vport.h | 2 |
6 files changed, 26 insertions, 10 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h index 0566c6a94805..11fa4e66afc5 100644 --- a/include/linux/mlx5/device.h +++ b/include/linux/mlx5/device.h | |||
| @@ -332,6 +332,13 @@ enum mlx5_event { | |||
| 332 | 332 | ||
| 333 | MLX5_EVENT_TYPE_FPGA_ERROR = 0x20, | 333 | MLX5_EVENT_TYPE_FPGA_ERROR = 0x20, |
| 334 | MLX5_EVENT_TYPE_FPGA_QP_ERROR = 0x21, | 334 | MLX5_EVENT_TYPE_FPGA_QP_ERROR = 0x21, |
| 335 | |||
| 336 | MLX5_EVENT_TYPE_DEVICE_TRACER = 0x26, | ||
| 337 | }; | ||
| 338 | |||
| 339 | enum { | ||
| 340 | MLX5_TRACER_SUBTYPE_OWNERSHIP_CHANGE = 0x0, | ||
| 341 | MLX5_TRACER_SUBTYPE_TRACES_AVAILABLE = 0x1, | ||
| 335 | }; | 342 | }; |
| 336 | 343 | ||
| 337 | enum { | 344 | enum { |
| @@ -939,9 +946,9 @@ enum { | |||
| 939 | }; | 946 | }; |
| 940 | 947 | ||
| 941 | enum { | 948 | enum { |
| 942 | MLX5_ESW_VPORT_ADMIN_STATE_DOWN = 0x0, | 949 | MLX5_VPORT_ADMIN_STATE_DOWN = 0x0, |
| 943 | MLX5_ESW_VPORT_ADMIN_STATE_UP = 0x1, | 950 | MLX5_VPORT_ADMIN_STATE_UP = 0x1, |
| 944 | MLX5_ESW_VPORT_ADMIN_STATE_AUTO = 0x2, | 951 | MLX5_VPORT_ADMIN_STATE_AUTO = 0x2, |
| 945 | }; | 952 | }; |
| 946 | 953 | ||
| 947 | enum { | 954 | enum { |
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 3723f6d4e2b7..7a452716de4b 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
| @@ -817,6 +817,9 @@ struct mlx5_clock { | |||
| 817 | struct mlx5_pps pps_info; | 817 | struct mlx5_pps pps_info; |
| 818 | }; | 818 | }; |
| 819 | 819 | ||
| 820 | struct mlx5_fw_tracer; | ||
| 821 | struct mlx5_vxlan; | ||
| 822 | |||
| 820 | struct mlx5_core_dev { | 823 | struct mlx5_core_dev { |
| 821 | struct pci_dev *pdev; | 824 | struct pci_dev *pdev; |
| 822 | /* sync pci state */ | 825 | /* sync pci state */ |
| @@ -848,6 +851,7 @@ struct mlx5_core_dev { | |||
| 848 | atomic_t num_qps; | 851 | atomic_t num_qps; |
| 849 | u32 issi; | 852 | u32 issi; |
| 850 | struct mlx5e_resources mlx5e_res; | 853 | struct mlx5e_resources mlx5e_res; |
| 854 | struct mlx5_vxlan *vxlan; | ||
| 851 | struct { | 855 | struct { |
| 852 | struct mlx5_rsvd_gids reserved_gids; | 856 | struct mlx5_rsvd_gids reserved_gids; |
| 853 | u32 roce_en; | 857 | u32 roce_en; |
| @@ -861,6 +865,7 @@ struct mlx5_core_dev { | |||
| 861 | struct mlx5_clock clock; | 865 | struct mlx5_clock clock; |
| 862 | struct mlx5_ib_clock_info *clock_info; | 866 | struct mlx5_ib_clock_info *clock_info; |
| 863 | struct page *clock_info_page; | 867 | struct page *clock_info_page; |
| 868 | struct mlx5_fw_tracer *tracer; | ||
| 864 | }; | 869 | }; |
| 865 | 870 | ||
| 866 | struct mlx5_db { | 871 | struct mlx5_db { |
diff --git a/include/linux/mlx5/fs.h b/include/linux/mlx5/fs.h index af0592400499..804516e4f483 100644 --- a/include/linux/mlx5/fs.h +++ b/include/linux/mlx5/fs.h | |||
| @@ -178,7 +178,7 @@ mlx5_add_flow_rules(struct mlx5_flow_table *ft, | |||
| 178 | struct mlx5_flow_spec *spec, | 178 | struct mlx5_flow_spec *spec, |
| 179 | struct mlx5_flow_act *flow_act, | 179 | struct mlx5_flow_act *flow_act, |
| 180 | struct mlx5_flow_destination *dest, | 180 | struct mlx5_flow_destination *dest, |
| 181 | int dest_num); | 181 | int num_dest); |
| 182 | void mlx5_del_flow_rules(struct mlx5_flow_handle *fr); | 182 | void mlx5_del_flow_rules(struct mlx5_flow_handle *fr); |
| 183 | 183 | ||
| 184 | int mlx5_modify_rule_destination(struct mlx5_flow_handle *handler, | 184 | int mlx5_modify_rule_destination(struct mlx5_flow_handle *handler, |
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index c2a5b480b156..f043d65b9bac 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h | |||
| @@ -672,7 +672,9 @@ struct mlx5_ifc_per_protocol_networking_offload_caps_bits { | |||
| 672 | u8 swp[0x1]; | 672 | u8 swp[0x1]; |
| 673 | u8 swp_csum[0x1]; | 673 | u8 swp_csum[0x1]; |
| 674 | u8 swp_lso[0x1]; | 674 | u8 swp_lso[0x1]; |
| 675 | u8 reserved_at_23[0x1b]; | 675 | u8 reserved_at_23[0xd]; |
| 676 | u8 max_vxlan_udp_ports[0x8]; | ||
| 677 | u8 reserved_at_38[0x6]; | ||
| 676 | u8 max_geneve_opt_len[0x1]; | 678 | u8 max_geneve_opt_len[0x1]; |
| 677 | u8 tunnel_stateless_geneve_rx[0x1]; | 679 | u8 tunnel_stateless_geneve_rx[0x1]; |
| 678 | 680 | ||
| @@ -1135,7 +1137,10 @@ struct mlx5_ifc_cmd_hca_cap_bits { | |||
| 1135 | 1137 | ||
| 1136 | u8 general_obj_types[0x40]; | 1138 | u8 general_obj_types[0x40]; |
| 1137 | 1139 | ||
| 1138 | u8 reserved_at_440[0x40]; | 1140 | u8 reserved_at_440[0x20]; |
| 1141 | |||
| 1142 | u8 reserved_at_460[0x10]; | ||
| 1143 | u8 max_num_eqs[0x10]; | ||
| 1139 | 1144 | ||
| 1140 | u8 reserved_at_480[0x3]; | 1145 | u8 reserved_at_480[0x3]; |
| 1141 | u8 log_max_l2_table[0x5]; | 1146 | u8 log_max_l2_table[0x5]; |
| @@ -3764,8 +3769,8 @@ struct mlx5_ifc_query_vport_state_out_bits { | |||
| 3764 | }; | 3769 | }; |
| 3765 | 3770 | ||
| 3766 | enum { | 3771 | enum { |
| 3767 | MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT = 0x0, | 3772 | MLX5_VPORT_STATE_OP_MOD_VNIC_VPORT = 0x0, |
| 3768 | MLX5_QUERY_VPORT_STATE_IN_OP_MOD_ESW_VPORT = 0x1, | 3773 | MLX5_VPORT_STATE_OP_MOD_ESW_VPORT = 0x1, |
| 3769 | }; | 3774 | }; |
| 3770 | 3775 | ||
| 3771 | struct mlx5_ifc_query_vport_state_in_bits { | 3776 | struct mlx5_ifc_query_vport_state_in_bits { |
diff --git a/include/linux/mlx5/mlx5_ifc_fpga.h b/include/linux/mlx5/mlx5_ifc_fpga.h index 64d0f40d4cc3..37e065a80a43 100644 --- a/include/linux/mlx5/mlx5_ifc_fpga.h +++ b/include/linux/mlx5/mlx5_ifc_fpga.h | |||
| @@ -576,6 +576,7 @@ struct mlx5_ifc_fpga_ipsec_sa { | |||
| 576 | enum fpga_tls_cmds { | 576 | enum fpga_tls_cmds { |
| 577 | CMD_SETUP_STREAM = 0x1001, | 577 | CMD_SETUP_STREAM = 0x1001, |
| 578 | CMD_TEARDOWN_STREAM = 0x1002, | 578 | CMD_TEARDOWN_STREAM = 0x1002, |
| 579 | CMD_RESYNC_RX = 0x1003, | ||
| 579 | }; | 580 | }; |
| 580 | 581 | ||
| 581 | #define MLX5_TLS_1_2 (0) | 582 | #define MLX5_TLS_1_2 (0) |
diff --git a/include/linux/mlx5/vport.h b/include/linux/mlx5/vport.h index 9208cb8809ac..7e7c6dfcfb09 100644 --- a/include/linux/mlx5/vport.h +++ b/include/linux/mlx5/vport.h | |||
| @@ -43,8 +43,6 @@ enum { | |||
| 43 | }; | 43 | }; |
| 44 | 44 | ||
| 45 | u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport); | 45 | u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport); |
| 46 | u8 mlx5_query_vport_admin_state(struct mlx5_core_dev *mdev, u8 opmod, | ||
| 47 | u16 vport); | ||
| 48 | int mlx5_modify_vport_admin_state(struct mlx5_core_dev *mdev, u8 opmod, | 46 | int mlx5_modify_vport_admin_state(struct mlx5_core_dev *mdev, u8 opmod, |
| 49 | u16 vport, u8 state); | 47 | u16 vport, u8 state); |
| 50 | int mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev, | 48 | int mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev, |
