usb: gadget: NCM: differentiate consumed packets from dropped packets
authorTorsten Polle <tpolle@de.adit-jv.com>
Mon, 19 Sep 2016 08:05:42 +0000 (10:05 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 3 Nov 2016 08:38:39 +0000 (10:38 +0200)
commit38314e59a901696e437c7ee6ea2831f9ecae977d
treef73adbda58d191b5828cdd0d2059198808cd805b
parent18d4689643b08c61e15b11bc78830e1d6d28df63
usb: gadget: NCM: differentiate consumed packets from dropped packets

dev_kfree_skb_any() is used to free packets that are dropped by the
network stack. Therefore the function should not be used for packets
that have been successfully processed by the network stack. Instead
dev_consume_skb_any() has to be used for such consumed packets.

This separation helps to identify dropped packets.

Signed-off-by: Torsten Polle <tpolle@de.adit-jv.com>
Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_ncm.c
drivers/usb/gadget/function/u_ether.c