net/smc: consolidate function parameters
During initialization of an SMC socket a lot of function parameters need to get passed down the function call path. Consolidate the parameters in a helper struct so there are less enough parameters to get all passed by register. Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
598866974c
commit
bc36d2fc93
@@ -18,6 +18,7 @@
|
||||
|
||||
struct smc_ib_device;
|
||||
struct smcd_dev;
|
||||
struct smc_init_info;
|
||||
|
||||
/**
|
||||
* struct smc_pnettable - SMC PNET table anchor
|
||||
@@ -43,9 +44,7 @@ int smc_pnet_init(void) __init;
|
||||
int smc_pnet_net_init(struct net *net);
|
||||
void smc_pnet_exit(void);
|
||||
void smc_pnet_net_exit(struct net *net);
|
||||
void smc_pnet_find_roce_resource(struct sock *sk,
|
||||
struct smc_ib_device **smcibdev, u8 *ibport,
|
||||
unsigned short vlan_id, u8 gid[]);
|
||||
void smc_pnet_find_ism_resource(struct sock *sk, struct smcd_dev **smcismdev);
|
||||
void smc_pnet_find_roce_resource(struct sock *sk, struct smc_init_info *ini);
|
||||
void smc_pnet_find_ism_resource(struct sock *sk, struct smc_init_info *ini);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user