aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-10-19 16:03:52 +0800
committerDavid S. Miller <davem@davemloft.net>2019-10-21 09:22:09 -0700
commitc871195601793118ab081d82f7ddd987aa6c7da1 (patch)
tree8650ed0d38b1ec28268d10224becfff27f6c317a /drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h
parentnet: hns3: minor optimization for barrier in IO path (diff)
downloadlinux-dev-c871195601793118ab081d82f7ddd987aa6c7da1.tar.xz
linux-dev-c871195601793118ab081d82f7ddd987aa6c7da1.zip
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/ethernet/hisilicon/hns3/hclge_mbx.h')
0 files changed, 0 insertions, 0 deletions