]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/block/aoe/aoenet.c
aoe: whitespace cleanup
[mirror_ubuntu-jammy-kernel.git] / drivers / block / aoe / aoenet.c
index 162c6471275c6792454871732e1d4d21cefa04ac..2e47404ff008777f5777e1e826716c4e7cfe8a2b 100644 (file)
@@ -52,13 +52,18 @@ static struct sk_buff_head skbtxq;
 
 /* enters with txlock held */
 static int
-tx(void)
+tx(void) __must_hold(&txlock)
 {
        struct sk_buff *skb;
+       struct net_device *ifp;
 
        while ((skb = skb_dequeue(&skbtxq))) {
                spin_unlock_irq(&txlock);
-               dev_queue_xmit(skb);
+               ifp = skb->dev;
+               if (dev_queue_xmit(skb) == NET_XMIT_DROP && net_ratelimit())
+                       pr_warn("aoe: packet could not be sent on %s.  %s\n",
+                               ifp ? ifp->name : "netif",
+                               "consider increasing tx_queue_len");
                spin_lock_irq(&txlock);
        }
        return 0;
@@ -119,8 +124,8 @@ aoenet_xmit(struct sk_buff_head *queue)
        }
 }
 
-/* 
- * (1) len doesn't include the header by default.  I want this. 
+/*
+ * (1) len doesn't include the header by default.  I want this.
  */
 static int
 aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt, struct net_device *orig_dev)