@@ -375,6 +375,11 @@ static inline void make_tx_data_wr(struct cxgbi_sock *csk, struct sk_buff *skb,
}
}
+static void arp_failure_skb_discard(struct t3cdev *dev, struct sk_buff *skb)
+{
+ kfree_skb(skb);
+}
+
/**
* push_tx_frames -- start transmit
* @c3cn: the offloaded connection
@@ -385,12 +390,6 @@ static inline void make_tx_data_wr(struct cxgbi_sock *csk, struct sk_buff *skb,
* connection's lock held. Returns the amount of send buffer space that was
* freed as a result of sending queued data to T3.
*/
-
-static void arp_failure_skb_discard(struct t3cdev *dev, struct sk_buff *skb)
-{
- kfree_skb(skb);
-}
-
static int push_tx_frames(struct cxgbi_sock *csk, int req_completion)
{
int total_size = 0;
@@ -886,11 +885,6 @@ static int alloc_cpls(struct cxgbi_sock *csk)
return -ENOMEM;
}
-/**
- * release_offload_resources - release offload resource
- * @c3cn: the offloaded iscsi tcp connection.
- * Release resources held by an offload connection (TID, L2T entry, etc.)
- */
static void l2t_put(struct cxgbi_sock *csk)
{
struct t3cdev *t3dev = (struct t3cdev *)csk->cdev->lldev;
@@ -902,6 +896,11 @@ static void l2t_put(struct cxgbi_sock *csk)
}
}
+/**
+ * release_offload_resources - release offload resource
+ * @c3cn: the offloaded iscsi tcp connection.
+ * Release resources held by an offload connection (TID, L2T entry, etc.)
+ */
static void release_offload_resources(struct cxgbi_sock *csk)
{
struct t3cdev *t3dev = (struct t3cdev *)csk->cdev->lldev;
Move documentation for push_tx_frames near the push_tx_frames function, and likewise for release_offload_resources. Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> --- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-)