mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-11-01 09:13:37 +00:00 
			
		
		
		
	RDMA/erdma: Add disassociate ucontext support
All IO pages mapped to user space are handled by rdma_user_mmap_io, so add empty stub for disassociate ucontext. Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com> Link: https://patch.msgid.link/20240902112920.58749-3-chengyou@linux.alibaba.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
		
							parent
							
								
									b24506f1c3
								
							
						
					
					
						commit
						b80330f105
					
				
					 3 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -490,6 +490,7 @@ static const struct ib_device_ops erdma_device_ops = {
 | 
			
		|||
	.dereg_mr = erdma_dereg_mr,
 | 
			
		||||
	.destroy_cq = erdma_destroy_cq,
 | 
			
		||||
	.destroy_qp = erdma_destroy_qp,
 | 
			
		||||
	.disassociate_ucontext = erdma_disassociate_ucontext,
 | 
			
		||||
	.get_dma_mr = erdma_get_dma_mr,
 | 
			
		||||
	.get_hw_stats = erdma_get_hw_stats,
 | 
			
		||||
	.get_port_immutable = erdma_get_port_immutable,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1701,6 +1701,10 @@ err_out_xa:
 | 
			
		|||
	return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void erdma_disassociate_ucontext(struct ib_ucontext *ibcontext)
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void erdma_set_mtu(struct erdma_dev *dev, u32 mtu)
 | 
			
		||||
{
 | 
			
		||||
	struct erdma_cmdq_config_mtu_req req;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -344,6 +344,7 @@ int erdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int mask,
 | 
			
		|||
		    struct ib_udata *data);
 | 
			
		||||
int erdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata);
 | 
			
		||||
int erdma_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata);
 | 
			
		||||
void erdma_disassociate_ucontext(struct ib_ucontext *ibcontext);
 | 
			
		||||
int erdma_req_notify_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags);
 | 
			
		||||
struct ib_mr *erdma_reg_user_mr(struct ib_pd *ibpd, u64 start, u64 len,
 | 
			
		||||
				u64 virt, int access, struct ib_udata *udata);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue