Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1484221
| From | Harish Jenny K N <harish_kandiga@mentor.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v1 2/3] usb: gadget: NCM: link socket buffers to the device for received packets |
| Date | 2016-09-15 16:30 +0200 |
| Message-ID | <shFPQ-88Q-9@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <sf3F0-3UY-11@gated-at.bofh.it> <sf3F0-3UY-13@gated-at.bofh.it> <sf3F0-3UY-15@gated-at.bofh.it> <sf3F0-3UY-17@gated-at.bofh.it> <shFPQ-88Q-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Torsten Polle <tpolle@de.adit-jv.com>
Socket buffers should be linked to the (network) device that allocated
the buffers. __netdev_alloc_skb performs this task.
Signed-off-by: Torsten Polle <tpolle@de.adit-jv.com>
Signed-off-by: Jim Baxter <jim_baxter@mentor.com>
Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
---
drivers/usb/gadget/function/u_ether.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c
index 8cb0803..d8593c7 100644
--- a/drivers/usb/gadget/function/u_ether.c
+++ b/drivers/usb/gadget/function/u_ether.c
@@ -224,7 +224,7 @@ static void defer_kevent(struct eth_dev *dev, int flag)
if (dev->port_usb->is_fixed)
size = max_t(size_t, size, dev->port_usb->fixed_out_len);
- skb = alloc_skb(size + NET_IP_ALIGN, gfp_flags);
+ skb = __netdev_alloc_skb(dev->net, size + NET_IP_ALIGN, gfp_flags);
if (skb == NULL) {
DBG(dev, "no rx skb\n");
goto enomem;
--
1.7.9.5
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v1 2/3] usb: gadget: NCM: link socket buffers to the device for received packets Harish Jenny K N <harish_kandiga@mentor.com> - 2016-09-15 16:30 +0200
Re: [PATCH v1 2/3] usb: gadget: NCM: link socket buffers to the device for received packets Yauheni Kaliuta <yauheni.kaliuta@redhat.com> - 2016-09-15 20:40 +0200
Re: [PATCH v1 2/3] usb: gadget: NCM: link socket buffers to the device for received packets Harish Jenny K N <harish_kandiga@mentor.com> - 2016-09-16 12:00 +0200
csiph-web