diff options
author | Miroslav Lichvar <mlichvar@redhat.com> | 2017-05-19 17:52:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-21 13:37:32 -0400 |
commit | 90b602f80397657429373ca009f98aec4dd3c553 (patch) | |
tree | b6ce4214ce48199983704bf95540370472b5da44 /virt | |
parent | e3412575488ac2408f737a14296cce34c9d8b4f8 (diff) | |
download | linux-stable-90b602f80397657429373ca009f98aec4dd3c553.tar.gz linux-stable-90b602f80397657429373ca009f98aec4dd3c553.tar.bz2 linux-stable-90b602f80397657429373ca009f98aec4dd3c553.zip |
net: add function to retrieve original skb device using NAPI ID
Since commit b68581778cd0 ("net: Make skb->skb_iif always track
skb->dev") skbs don't have the original index of the interface which
received the packet. This information is now needed for a new control
message related to hardware timestamping.
Instead of adding a new field to skb, we can find the device by the NAPI
ID if it is available, i.e. CONFIG_NET_RX_BUSY_POLL is enabled and the
driver is using NAPI. Add dev_get_by_napi_id() and also skb_napi_id() to
hide the CONFIG_NET_RX_BUSY_POLL ifdef.
CC: Richard Cochran <richardcochran@gmail.com>
Suggested-by: Willem de Bruijn <willemb@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions