mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
In our test cases, we typically feed a packet sequence into the routing
code, then inspect the device's TXed skbs to assert specific behaviours.
Using dev_queue_xmit() for our TX path introduces a fair bit of
complexity between the test packet sequence and the test device's
ndo_start_xmit callback; which may mean that the skbs have not hit the
device at the point we're inspecting the TXed skb list.
Use dev_direct_xmit instead, as we want a direct a path as possible
here, and the test dev does not need any queueing, scheduling or flow
control.
Fixes:
|
||
|---|---|---|
| .. | ||
| route-test.c | ||
| sock-test.c | ||
| utils.c | ||
| utils.h | ||