nfp: rename nfp_ccm_mbox_alloc()
We need the name nfp_ccm_mbox_alloc() for allocating the mailbox communication channel itself. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5bcb5c7e98
commit
d7053e0433
|
@ -112,7 +112,7 @@ nfp_ccm_communicate(struct nfp_ccm *ccm, struct sk_buff *skb,
|
|||
|
||||
bool nfp_ccm_mbox_fits(struct nfp_net *nn, unsigned int size);
|
||||
struct sk_buff *
|
||||
nfp_ccm_mbox_alloc(struct nfp_net *nn, unsigned int req_size,
|
||||
nfp_ccm_mbox_msg_alloc(struct nfp_net *nn, unsigned int req_size,
|
||||
unsigned int reply_size, gfp_t flags);
|
||||
int nfp_ccm_mbox_communicate(struct nfp_net *nn, struct sk_buff *skb,
|
||||
enum nfp_ccm_type type,
|
||||
|
|
|
@ -564,7 +564,7 @@ err_free_skb:
|
|||
}
|
||||
|
||||
struct sk_buff *
|
||||
nfp_ccm_mbox_alloc(struct nfp_net *nn, unsigned int req_size,
|
||||
nfp_ccm_mbox_msg_alloc(struct nfp_net *nn, unsigned int req_size,
|
||||
unsigned int reply_size, gfp_t flags)
|
||||
{
|
||||
unsigned int max_size;
|
||||
|
|
|
@ -94,7 +94,7 @@ nfp_net_tls_conn_remove(struct nfp_net *nn, enum tls_offload_ctx_dir direction)
|
|||
static struct sk_buff *
|
||||
nfp_net_tls_alloc_simple(struct nfp_net *nn, size_t req_sz, gfp_t flags)
|
||||
{
|
||||
return nfp_ccm_mbox_alloc(nn, req_sz,
|
||||
return nfp_ccm_mbox_msg_alloc(nn, req_sz,
|
||||
sizeof(struct nfp_crypto_reply_simple),
|
||||
flags);
|
||||
}
|
||||
|
@ -283,7 +283,7 @@ nfp_net_tls_add(struct net_device *netdev, struct sock *sk,
|
|||
if (err)
|
||||
return err;
|
||||
|
||||
skb = nfp_ccm_mbox_alloc(nn, req_sz, sizeof(*reply), GFP_KERNEL);
|
||||
skb = nfp_ccm_mbox_msg_alloc(nn, req_sz, sizeof(*reply), GFP_KERNEL);
|
||||
if (!skb) {
|
||||
err = -ENOMEM;
|
||||
goto err_conn_remove;
|
||||
|
|
Loading…
Reference in New Issue