diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2019-10-19 16:03:52 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-21 09:22:09 -0700 |
commit | c871195601793118ab081d82f7ddd987aa6c7da1 (patch) | |
tree | 8650ed0d38b1ec28268d10224becfff27f6c317a /drivers/net/usb/plusb.c | |
parent | 88b7c58c199dd231fd87703f4a6209eec60ab138 (diff) | |
download | linux-c871195601793118ab081d82f7ddd987aa6c7da1.tar.gz |
net: hns3: introduce ring_to_netdev() in enet module
There are a few places that need to access the netdev of a ring
through ring->tqp->handle->kinfo.netdev, and ring->tqp is a struct
which both in enet and hclge modules, it is better to use the
struct that is only used in enet module.
This patch adds the ring_to_netdev() to access the netdev of ring
through ring->tqp_vector->napi.dev.
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/plusb.c')
0 files changed, 0 insertions, 0 deletions