drivers: net: loopback: Allocate the loopback packet from proper poll
Use the new function to allocate a packet for the RX path from the RX packet poll. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
22f970b97f
commit
e80a662ac7
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ static int loopback_send(const struct device *dev, struct net_pkt *pkt)
|
|||
* must be dropped. This is very much needed for TCP packets where
|
||||
* the packet is reference counted in various stages of sending.
|
||||
*/
|
||||
cloned = net_pkt_clone(pkt, K_MSEC(100));
|
||||
cloned = net_pkt_rx_clone(pkt, K_MSEC(100));
|
||||
if (!cloned) {
|
||||
res = -ENOMEM;
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue