nfp: rename nfp_ccm_mbox_alloc()
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 11 Jun 2019 04:40:04 +0000 (21:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jun 2019 19:22:26 +0000 (12:22 -0700)
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>
drivers/net/ethernet/netronome/nfp/ccm.h
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
drivers/net/ethernet/netronome/nfp/crypto/tls.c

index 01efa779ab3163e09cb9f143542c3754fe79021d..c905898ab26e83db88f3e018d021e8e4650347e5 100644 (file)
@@ -112,8 +112,8 @@ 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,
-                  unsigned int reply_size, gfp_t flags);
+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,
                             unsigned int reply_size,
index e5acd96c3335c1518f575bc6cd59329b9f0f7630..53995d53aa3f6f9b25e5d769557eab77d2961643 100644 (file)
@@ -564,8 +564,8 @@ err_free_skb:
 }
 
 struct sk_buff *
-nfp_ccm_mbox_alloc(struct nfp_net *nn, unsigned int req_size,
-                  unsigned int reply_size, gfp_t flags)
+nfp_ccm_mbox_msg_alloc(struct nfp_net *nn, unsigned int req_size,
+                      unsigned int reply_size, gfp_t flags)
 {
        unsigned int max_size;
        struct sk_buff *skb;
index c638223e9f60956bec0f3b689b204bb44a1d4c3d..b7d7317d71d12481e5f6a62ab36f004a8f4d1002 100644 (file)
@@ -94,9 +94,9 @@ 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,
-                                 sizeof(struct nfp_crypto_reply_simple),
-                                 flags);
+       return nfp_ccm_mbox_msg_alloc(nn, req_sz,
+                                     sizeof(struct nfp_crypto_reply_simple),
+                                     flags);
 }
 
 static int
@@ -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;